Pages: [1]   Go Down
Author Topic: Transistor Newb needs help.  (Read 831 times)
0 Members and 1 Guest are viewing this topic.
0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Hacking since the 70s
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Howdy all. I'd like an Arduino to monitor the charging of 2 3-packs of NiMH cells by reading their voltages independently.
When the charger is connected to a steady supply of coulombs (i.e., the wall wart is plugged in) the atmega (a 328 in my case, though that's probably immaterial) will join the packs together, and an LM317 will juice up the 6 cells.
To read the voltages, I'd like to split the battery of 6 cells into two batteries of 3 cells, and then read the voltages directly on an analog pin.
Here's the circuit (which doesn't work) that I designed.

When the digital signal goes high, the not gate drops to like 38 milivolts.
What I'd like to happen is this:
Digital Signal goes High, Ground Splitter stops conducting, Ground joiner starts conducting, and A5 Protector starts conducting.
But that doesn't happen.

I don't understand transistors very well.

Help?

Thanks.
Oh, the transistors are all 3055 NPN in TO220 packages, if that makes any difference.


Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 619
Posts: 33989
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I don't understand transistors very well.
Yep, and having looked at that circuit I am not sure I do either any more!

A transistor is not a switch, it can look like a switch only under certain wiring conditions. The idea behind Q3 switching the voltage to A4 will simply not work. When a transistor turns on the collector / emitter has about 1V across it anyway.
Transistors control the flow of current.
What you are trying to do basically won't work. You can't split the ground and switch like this unless you use relay contacts.
Logged

0
Offline Offline
Newbie
*
Karma: 0
Posts: 25
Hacking since the 70s
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I guess I could put a servo on an SPDT...

smiley

Logged

Manchester (England England)
Offline Offline
Brattain Member
*****
Karma: 619
Posts: 33989
Solder is electric glue
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

You would not do it with a SPDT you need a DPDT switch, because you need to switch the ground as well. You can get DPDT relays, it's much easier than putting a servo to a switch..
Logged

Pages: [1]   Go Up
Jump to: