1
\$\begingroup\$

I'm trying to get a sn74hc595n working with an arduino Due, eventually I will be hooking up each output to an NPN to drive Nixie tubes (I am switching my design from a due to using a esp8266 so I need to cut back on the pin use, hence the shift register).

I have been using this https://learn.adafruit.com/adafruit-arduino-lesson-4-eight-leds/breadboard-layout as the schematic to get working (except using 3.3V isntead of 5V since I'm using a due). When set up according to the schematic nothing works (I'm using the same code too), however when reversing the polarity of the LEDs and hooking them up to high, it works, so the 74hc595 is working fine as a sink, but it doesn't seem to be sourcing.

Am I missing something to make it source? Thanks!

Edit: To make things clearer, here is what I have set up (currently only using 1 LED just to make sure things work)

enter image description here

And here is it set up with the 74HC595 as a source (which is not currently working). enter image description here

\$\endgroup\$
  • \$\begingroup\$ make a single channel schematic \$\endgroup\$ – Sunnyskyguy EE75 Mar 10 at 23:57
  • \$\begingroup\$ @SunnyskyguyEE75 I'm not familiar with what a single channel schematic is (unless it's just a normal schematic like you'd make in altium) \$\endgroup\$ – soup Mar 11 at 0:12
  • 1
    \$\begingroup\$ using the lame circuit editor herer or ASCII dwg here to show the CMOS driver supply voltages, LED, ,NPN , nixie tube and when/where your fault is.. something clearer than your explanation \$\endgroup\$ – Sunnyskyguy EE75 Mar 11 at 0:15
  • \$\begingroup\$ @SunnyskyguyEE75 Ok post updated with schematic, and what I am trying to set up \$\endgroup\$ – soup Mar 11 at 0:27
  • \$\begingroup\$ That will work fine. You need to look at the data sheet from TI, and it lists the output voltage in both source and sink modes for different currents. Go do some research. \$\endgroup\$ – WhatRoughBeast Mar 11 at 0:29
0
\$\begingroup\$

It looks like we’ve encountered some resistance.

enter image description here

The Pch and Nch have a wide tolerance for Vt near 1.25V and if the Vt of Pch is higher than the Nch this would explain the inability to drive the LED.

Although rated for 2~6V for the 74HC' CMOS family, the worst case specs for (Vdd-Voh) match Vol so it is the symmetrical worst case but typically, one may expect slightly weaker Pch or higher Vt thresholds. enter image description here However the guaranteed IC std. test currents are as follows;
at 2V @ 25'C, Vol/Iol = 0.1V/20uA = 5k Ω = Ron " RdsOn "
at 4.5V @ 25'C, Vol/Iol = 0.26V/4mA = 65 Ω
at 6.0V @ 25'C, Vol/Iol = 0.26V/7.8mA = 33 Ω
Thus interpolating to 3.3V I expect RdsOn may 400~500 Ohms enter image description here is wishful thinking.

Conclusion:

For your prototype, you can bypass the 1K resistor.

For reliable LED driving 3.3V RdsOn performance, you can switch to the 74VHC' CMOS family 74VHC595 which is 360mV/4mA= 90 Ohms @ Vdd=3.0V

\$\endgroup\$
  • \$\begingroup\$ Thanks for this, I'm going to order some 74VHC595's and see if that works instead. I tried bypassing the 1K resistor, however the LED still can't be driven. \$\endgroup\$ – soup Mar 11 at 3:23
  • \$\begingroup\$ What voltage is across LED? 1.6? I assume you cannot invert the signal in Duo? \$\endgroup\$ – Sunnyskyguy EE75 Mar 11 at 4:19
  • \$\begingroup\$ As a sink 1.7V (while using the 1K resistor). As a source with the 1K resistor, 56mV (but not changing when it should be set high).Without the 1K, 92mV again not changing even when set high. When I probe the pin voltage when it's set up as a source, it never registers at 3.3V relative to ground. \$\endgroup\$ – soup Mar 11 at 4:47
  • \$\begingroup\$ One other question, If I understand correctly, the issue is that the internal resistance is too high, so I don't have the necissary voltage to drive the LED, however I would expect there to still be some voltage to ground. When I replace the LED and 1K resistor with a voltmeter then, the reading should be about 3.3V since the voltmeter has a much higher resistance, however the voltmeter in this case still reads 0V (actually about 3mV when sent a 0 and 0mV when sent a 1). \$\endgroup\$ – soup Mar 11 at 23:47
  • 1
    \$\begingroup\$ Got the 74VHC595, everything is working well now, thanks! \$\endgroup\$ – soup Mar 12 at 16:18

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.