Can Someone Give Me Hand
JustSomeGuy
Posts: 8
First off I'd like to state that I'm new to microcontrollers and fairly new to electronics. Now,·I've made a simple Transistor On/Off circuit identical to the one on page 265 of the "What's a Microcontroller?" book. This circuit works well, however when I use external batteries in place of Vdd and Vss my circuit doesn't work. The difference between the Vdd and Vss terminals I believe is 5v, so I've tried 1.5v, 3v, 6v, and 9v batteries, none of which has produced any results. Ive tried two types of transistors 2N3904 (the one included with the kit) and some I picked up from radioshack labeled "NPN type switching transistors". Eventually I will use this circuit with the 6v battery (4 AA batteries in series) to drive a small dc motor, however I'm currently troubleshooting on an led.
I've spent about an entire day working on this little problem and any help would be much appreciated. I've been researching transistor circuits and searching this forum looking for some snippet to help me but have not found my problem.
Thanks in advance
·
I've spent about an entire day working on this little problem and any help would be much appreciated. I've been researching transistor circuits and searching this forum looking for some snippet to help me but have not found my problem.
Thanks in advance
·
Comments
Do you have the grounds connected together ? That is the ground of the power supply for the stamp and the ground of the battery power supply ? I assume you are using two different power sources ?
Bean.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"SX-Video·Module" Now available from Parallax for only $28.95
http://www.parallax.com/detail.asp?product_id=30012
"SX-Video OSD module" Now available from Parallax for only·$49.95
http://www.parallax.com/detail.asp?product_id=30015
Product web site: www.sxvm.com
Forget about the past, plan for the future, and live for today.
·
That worked
I've spent an entire day on a problem that you helped fix in 1 minute.
I do not usually like to ask for help, but in this case it was definitely worth it.
O well, I've learned alot today, off to figure out why this worked. Would you care to elaborate on·why exactly the grounds need to be connected?
As I've said I am fairly new to this
Thanks
-Spencer
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
So I was a bit quick to assume that this was my last problem. This made my circuit work with a 3v battery and an led, however when I changed the led with the motor leads and the 3v for a 6v the circuit no longer works,·do motors have any special properties im not aware of. I've tried directly connecting the motor to the 6v battery and it runs, so the battery and the connection are good.
Any Ideas?
·
Any help is appreciated.
I'm so close to being done.
Thanks for your time
·· Once again there is no indication of what you have connected where so we can see what's going on?··· Perhaps if you cannot draw a schematic you should describe your connections in detail.· Otherwise it's all guess work.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
' {$STAMP BS2}
' {$PBASIC 2.5}
PAUSE 1000
HIGH 1
PAUSE 4000
LOW 1
PAUSE 1000
end
heres how I was testing this circuit
Any Ideas?
Thank you
-Spencer
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
So I've replaced the (2) 100K resistors with (1) 1K and still no luck. The only change is that when I try the led and motor circuit (bottom left in previous schematic picture, but with 1K) I get a single led flicker at the beginning of the "HIGH 1" command but this does not last the duration that pin 1 is receiving 5v.
Should I buy a larger transistor maybe?
Although the one I'm currently using is rated Max: 30v / 800mA
Also you mentioned bias current in your previous post so I have been reading up on them. I am using two different power sources and have the grounds connected, am I missing something?
Thanks
JSG
Change the base resistor to a 1K.· As I see it, you still need to have a diode in parallel with the motor (kind of like you did with the LED, only place it reverse-biased -- with the cathode to + and the anode to the collector.)
Also, see if your motor works with the 3V all by itself (no STAMPs or transistors.)
N.B. It's either a motor OR an LED, but not both.
see schematic/pic
Post Edited (PJ Allen) : 12/24/2005 2:53:30 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
My problem was that not enough current was reaching the base of the transistor. Even wiring the I/O pin directly to the base did not provide enough current, I believe this is because I'm using the homework board which has built in resistors. I finally got the motor to run by making a darlington pair (something I've read about from day 1 while researching my problem).
Anyways Thank you Bean, Chris Savage, and PJ Allen for your help.