Help with hooking up a 5V logic converter

The official pyboard running MicroPython.
This is the reference design and main target board for MicroPython.
You can buy one at the store.
Target audience: Users with a pyboard.
chrismas9
Posts: 152
Joined: Wed Jun 25, 2014 10:07 am

Re: Help with hooking up a 5V logic converter

Post by chrismas9 » Sat Jan 06, 2018 3:34 pm

@felixsc1, What is the device you are trying to drive? What is the actual spec for logic 1 voltage? Many CMOS devices are 0.7 VCC or 3.5V with 5v supply. These work fine with the greater than 4V from USB and V+ pin.

If you only want a 5V output there is no benefit from using the Sparkfun level translator. It relies on a 10k pull-up to HV to get a high level. You will get the same result by programming the pin as Open Drain and adding a pull-up resistor to 5V or V+.

felixsc1
Posts: 5
Joined: Tue Jan 02, 2018 10:31 am

Re: Help with hooking up a 5V logic converter

Post by felixsc1 » Mon Jan 08, 2018 1:09 am

chrismas9 wrote:
Sat Jan 06, 2018 3:34 pm
@felixsc1, What is the device you are trying to drive? What is the actual spec for logic 1 voltage? Many CMOS devices are 0.7 VCC or 3.5V with 5v supply. These work fine with the greater than 4V from USB and V+ pin.

If you only want a 5V output there is no benefit from using the Sparkfun level translator. It relies on a 10k pull-up to HV to get a high level. You will get the same result by programming the pin as Open Drain and adding a pull-up resistor to 5V or V+.
More specifically, I want to trigger this device: http://www.ampi.co.il/isoflex.html
Unfortunately, I don't have the datasheet, but it says that the input voltage should be 5-10V. It will generate a current output for the duration of the TTL pulse. I tried triggering it with the pyboard 3.3V output without success (at least I am pretty sure it didnt work, but it could be that I didn't measure the current output properly , since I don't have any experience with these things, I am a a biologist).

User avatar
pythoncoder
Posts: 5956
Joined: Fri Jul 18, 2014 8:01 am
Location: UK
Contact:

Re: Help with hooking up a 5V logic converter

Post by pythoncoder » Mon Jan 08, 2018 6:21 am

In the absence of any electrical data it's impossible to be sure. I'd suggest defining the output as open drain and supplying a pullup resistor to 5V. Start with a value of 1KΩ. If that doesn't work try reducing the value but don't go below 220Ω.
Peter Hinch
Index to my micropython libraries.

Post Reply