Welcome
Username or Email:

Password:


Missing Code




[ ]
[ ]
Online
  • Guests: 58
  • Members: 0
  • Newest Member: omjtest
  • Most ever online: 396
    Guests: 396, Members: 0 on 12 Jan : 12:51
Members Birthdays:
One birthday today, congrats!
Th3_uN1Qu3 (33)


Next birthdays
06/19 sio2 (50)
06/20 Sparrow338 (35)
06/20 oxodoes (34)
Contact
If you need assistance, please send an email to forum at 4hv dot org. To ensure your email is not marked as spam, please include the phrase "4hv help" in the subject line. You can also find assistance via IRC, at irc.shadowworld.net, room #hvcomm.
Support 4hv.org!
Donate:
4hv.org is hosted on a dedicated server. Unfortunately, this server costs and we rely on the help of site members to keep 4hv.org running. Please consider donating. We will place your name on the thanks list and you'll be helping to keep 4hv.org alive and free for everyone. Members whose names appear in red bold have donated recently. Green bold denotes those who have recently donated to keep the server carbon neutral.


Special Thanks To:
  • Aaron Holmes
  • Aaron Wheeler
  • Adam Horden
  • Alan Scrimgeour
  • Andre
  • Andrew Haynes
  • Anonymous000
  • asabase
  • Austin Weil
  • barney
  • Barry
  • Bert Hickman
  • Bill Kukowski
  • Blitzorn
  • Brandon Paradelas
  • Bruce Bowling
  • BubeeMike
  • Byong Park
  • Cesiumsponge
  • Chris F.
  • Chris Hooper
  • Corey Worthington
  • Derek Woodroffe
  • Dalus
  • Dan Strother
  • Daniel Davis
  • Daniel Uhrenholt
  • datasheetarchive
  • Dave Billington
  • Dave Marshall
  • David F.
  • Dennis Rogers
  • drelectrix
  • Dr. John Gudenas
  • Dr. Spark
  • E.TexasTesla
  • eastvoltresearch
  • Eirik Taylor
  • Erik Dyakov
  • Erlend^SE
  • Finn Hammer
  • Firebug24k
  • GalliumMan
  • Gary Peterson
  • George Slade
  • GhostNull
  • Gordon Mcknight
  • Graham Armitage
  • Grant
  • GreySoul
  • Henry H
  • IamSmooth
  • In memory of Leo Powning
  • Jacob Cash
  • James Howells
  • James Pawson
  • Jeff Greenfield
  • Jeff Thomas
  • Jesse Frost
  • Jim Mitchell
  • jlr134
  • Joe Mastroianni
  • John Forcina
  • John Oberg
  • John Willcutt
  • Jon Newcomb
  • klugesmith
  • Leslie Wright
  • Lutz Hoffman
  • Mads Barnkob
  • Martin King
  • Mats Karlsson
  • Matt Gibson
  • Matthew Guidry
  • mbd
  • Michael D'Angelo
  • Mikkel
  • mileswaldron
  • mister_rf
  • Neil Foster
  • Nick de Smith
  • Nick Soroka
  • nicklenorp
  • Nik
  • Norman Stanley
  • Patrick Coleman
  • Paul Brodie
  • Paul Jordan
  • Paul Montgomery
  • Ped
  • Peter Krogen
  • Peter Terren
  • PhilGood
  • Richard Feldman
  • Robert Bush
  • Royce Bailey
  • Scott Fusare
  • Scott Newman
  • smiffy
  • Stella
  • Steven Busic
  • Steve Conner
  • Steve Jones
  • Steve Ward
  • Sulaiman
  • Thomas Coyle
  • Thomas A. Wallace
  • Thomas W
  • Timo
  • Torch
  • Ulf Jonsson
  • vasil
  • Vaxian
  • vladi mazzilli
  • wastehl
  • Weston
  • William Kim
  • William N.
  • William Stehl
  • Wesley Venis
The aforementioned have contributed financially to the continuing triumph of 4hv.org. They are deserving of my most heartfelt thanks.
Forums
4hv.org :: Forums :: General Science and Electronics
« Previous topic | Next topic »   

I am bad at electronics, help with ULN2803 darlington arrays...

1 2 
Move Thread LAN_403
AndrewM
Mon Sept 29 2014, 05:07PM Print
AndrewM Registered Member #49 Joined: Thu Feb 09 2006, 04:05AM
Location: Bigass Pile of Penguins
Posts: 362
I can't figure out what is going on with this project!!!

I have the following circuit mocked up, IC1 and IC2 are ULN2803A's:

PspNspN

Basically I'm trying to switch my twelve loads (R_load) using 8x signals from my Arduino. To do so, I switch on either B1 or B2 to "select" the proper ULN2803, and then switch on the proper C1 through C6 line to select the load. I simulated this is Pspice and LTSpice and it works beautifully.

However nothing works right on the breadboard.

Initially I didn't have the 12x diodes present, because I didn't think I needed them. But in practice turning on any "C" line made every load on that ULN2803 turn on. So I added the diodes and that appeared to help...

... except now when I look at the voltage at point A, I see some influence from other channels:
W6GrhIS

None of this was expected in Pspice. Pulse width as shown is about 5us. I tried adding a pull down resistor to each base of the darlington, it lowers the height of the extraneous peaks, but doesn't eliminate them.

What am I doing wrong??


Back to top
Steve Conner
Mon Sept 29 2014, 05:36PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
I think what you're doing wrong is switching the ground pin of the ULN. :P

When the MOSFET is off and any of the control lines is high it will act like an emitter follower and pull its ground pin up to 5V less a few diode drops. This voltage will then feed back to all the other input pins through the ULN's internal pulldown resistors. It might look ugly, but it should work. I can't see any reason why it wouldn't. Inductive loads might be sketchy, I recommend connecting the ULN's diode pin to the positive rail to catch any spikes.
Back to top
AndrewM
Mon Sept 29 2014, 05:55PM
AndrewM Registered Member #49 Joined: Thu Feb 09 2006, 04:05AM
Location: Bigass Pile of Penguins
Posts: 362
OK. Well.

a) the problem I'm having only occurs when the MOSFET is on.

b) if switching the ground is sketchy, how would you gang multiple ULN2803's together?
Back to top
Steve Conner
Mon Sept 29 2014, 07:55PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
What is the problem then? You never specified. Does it fail to switch the loads somehow?

I would gang multiple ULN2803s by driving each one off an octal latch like the 74HC573, or an I2C to GPIO expander chip like the PCF8574. Or simply a bigger micro with more GPIO pins.

We use the PCF8574+ULN2803 combo at work for driving relays off I2C. Be aware that the PCF8574 can't source much current and needs pullup resistors.

If you look at the schematic on page 2 of the datasheet Link2 you can see why the inputs would crosstalk when the MOSFET was off, but I can't see why they would crosstalk when the MOSFET was on. What MOSFET are you using? Is the Rds(on) low enough?
Back to top
Patrick
Mon Sept 29 2014, 08:13PM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
I dont see how this can work at all, maybe you Pspice'd it wrong?

As steve said, turning the mosfet off should cuase things to get pulled up to V+
Back to top
AndrewM
Mon Sept 29 2014, 10:59PM
AndrewM Registered Member #49 Joined: Thu Feb 09 2006, 04:05AM
Location: Bigass Pile of Penguins
Posts: 362
Something is causes my loads to burn out (they're very sensitive to duty cycle), and I suspect the "extra" pulses I see are the culprit.

But.

I see what you're saying about the crosstalk with the mosfet off. I think I need to investigate further.

----------

Steve you nailed it... apparently it was only floating when the mosfet was off...

So now I have no idea why I blew my load.

Snicker.

Back to top
Patrick
Tue Sept 30 2014, 03:24AM
Patrick Registered Member #2431 Joined: Tue Oct 13 2009, 09:47PM
Location: Chico, CA. USA
Posts: 5639
what king of load are they?
if there in the linear mode, half-on, half-off maybe they die more easily.
Back to top
mbd
Tue Sept 30 2014, 12:06PM
mbd Registered Member #43278 Joined: Sat Feb 22 2014, 09:18AM
Location: Sydney
Posts: 9
Turning back to the OP, why did you decide to 'switch' the darlington arrays by controlling their ground pins? Wouldn't it have been more straightforward to use one array rather than two, in a multiplexed configuration, with two mosfets (or BJTs) switching the +24V side of the loads? (You would eliminate one array and the diodes on the inputs but would probably need diodes on the outputs to prevent back circuits.)

MBD
Back to top
Steve Conner
Tue Sept 30 2014, 12:19PM
Steve Conner Registered Member #30 Joined: Fri Feb 03 2006, 10:52AM
Location: Glasgow, Scotland
Posts: 6706
The problem with that is that if you put the switches in the 24V rail, you need a high-side driver for them. Not really that complicated (PNP BJT switches would make it particularly simple) but not trivial either.
Back to top
AndrewM
Tue Sept 30 2014, 04:22PM
AndrewM Registered Member #49 Joined: Thu Feb 09 2006, 04:05AM
Location: Bigass Pile of Penguins
Posts: 362
More importantly, my loads have a common +24V rail. Thus my "solution."

I'm replacing all the blow stuff tonight and will give it another try to see if it blows again. As far as I can tell everything is working properly..........
Back to top
1 2 

Moderator(s): Chris Russell, Noelle, Alex, Tesladownunder, Dave Marshall, Dave Billington, Bjørn, Steve Conner, Wolfram, Kizmo, Mads Barnkob

Go to:

Powered by e107 Forum System
 
Legal Information
This site is powered by e107, which is released under the GNU GPL License. All work on this site, except where otherwise noted, is licensed under a Creative Commons Attribution-ShareAlike 2.5 License. By submitting any information to this site, you agree that anything submitted will be so licensed. Please read our Disclaimer and Policies page for information on your rights and responsibilities regarding this site.