Magimedia
Posts: 33
Joined: Sun Feb 22, 2015 8:31 pm

I2C and Logic Level shift, or different FETs?

Mon Jun 20, 2016 6:15 pm

I've got one of the 16 channel PWM modules that I intend to control RGB strips with. I'm not sure on the current draw per strip, but I think it's around 600mA per channel.

I have some IRL520N MOSFET that I have used before to control the strips... but that was on a 5V system, and the Pi I2C is 3.3V

This leaves me with a dilemma... would it be better to use a logic-level shift and move the I2C up to 5V, or should I replace the FETs with something that has a lower Vgs? The logic level shift seems to be the cheaper option, but do they work with I2C ok? I know they say they do on the eBay listings, but that's always to be taken with a pinch of salt...

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13009
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: I2C and Logic Level shift, or different FETs?

Mon Jun 20, 2016 6:37 pm

If you use the level shifters Philips invented for I2C then they will work fine

User avatar
FTrevorGowen
Forum Moderator
Forum Moderator
Posts: 5590
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: I2C and Logic Level shift, or different FETs?

Mon Jun 20, 2016 7:00 pm

FWIW, I've tried the level-shifting modules linked-to below - some of which are (marketed as) I2C safe. There are further links to circuit schematics etc. for the uses I've put them to within that webpage.
https://www.cpmspectrepi.uk/raspberry_p ... dules.html
Trev.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Magimedia
Posts: 33
Joined: Sun Feb 22, 2015 8:31 pm

Re: I2C and Logic Level shift, or different FETs?

Tue Jun 21, 2016 12:59 am

Thanks - I got a generic level shifter (looks like your D, but came from eBay) - seems to be working ok with I2C as I can use the clock module ok as a test.

Return to “Interfacing (DSI, CSI, I2C, etc.)”