Offline
Newbie
Karma: 0
Posts: 4
|
 |
« on: December 27, 2012, 12:14:43 am » |
I'm new to adruino and the forums. Looking forward to many exchanges in the future. I'm starting simple...building ARDX samples and trying to learn from them. I got to the spinning motor exercise and for whatever reason can't get it to work properly. This is the exercise: http://www.oomlout.com/oom.php/products/ardx/circ-03Everything I've read is for problems getting it to spin, mine is the opposite... it won't stop spinning. I built it exactly according to the layout: http://ardx.org/src/circ/CIRC03-sheet-OOML.pdf and and even copy/pasted the code after second guessing myself a few times. But still I have zero control on motor. In fact, even removing PIN9 entirely has no effect; it continues to spin. The obvious is that the wiring is wrong but I don't know enough yet to second guess the layout. Plus I haven't found a single post anywhere of this same issue. Assuming the wiring is right, my only last suspicion is a bad transistor but I'm no expert and after hours of reading I'm not any smarter on the subject or closer to solving this. Please help.
|
|
|
|
« Last Edit: December 27, 2012, 12:24:59 am by MadMike »
|
Logged
|
|
|
|
|
Indiana, US
Offline
Full Member
Karma: 12
Posts: 161
|
 |
« Reply #1 on: December 27, 2012, 12:43:07 am » |
Hi MadMike In fact, even removing PIN9 entirely has no effect; it continues to spin. Try grounding the lead to see what it does. But my money is on the transistor. Double check which side of the transistor you connected it to. You may be grounding the motor and bypassing the Q altogether. Pat.
|
|
|
|
|
Logged
|
There are 10 types of people in the world, those that understand binary, and those that don't.
|
|
|
|
SE USA
Offline
Faraday Member
Karma: 33
Posts: 3623
@ssh0le
|
 |
« Reply #2 on: December 27, 2012, 01:02:04 am » |
Hi MadMike In fact, even removing PIN9 entirely has no effect; it continues to spin. Try grounding the lead to see what it does. But my money is on the transistor. Double check which side of the transistor you connected it to. You may be grounding the motor and bypassing the Q altogether. Pat. your probably right,turn the transistor around see what happens
|
|
|
|
|
Logged
|
http://arduino.cc/forum/index.php?action=unread;boards=2,3,4,5,67,6,7,8,9,10,11,66,12,13,15,14,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,86,87,89,1;ALL
|
|
|
|
Indiana, US
Offline
Full Member
Karma: 12
Posts: 161
|
 |
« Reply #3 on: December 27, 2012, 10:01:18 am » |
If you wired the motor to the wrong side, the motor should still spin if you pull the transistor off the board. Try that...
|
|
|
|
|
Logged
|
There are 10 types of people in the world, those that understand binary, and those that don't.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #4 on: December 27, 2012, 10:21:32 am » |
Whether I turn the transistor around or pull it out entirely, the motor does stop spinning. It's not that I have control though, it's just unresponsive. I also tried wiring the motor to the other side during each of these tests but there was no difference.
With the ARDX kit, I only got 1 transistor so it's tough to test/isolate it as the problem. I'll make a special trip to get some new supplies today. Only a foot of snow on the ground, this should be fun (yes, I am that obsessed to figuring this out).
Patduino, I'm not sure what you mean by ground the lead. Do you mean taking the +5v lead and putting it directly to GND to complete the circuit?
...and thank you for the suggestions!
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Offline
Edison Member
Karma: 29
Posts: 1569
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #5 on: December 27, 2012, 10:30:21 am » |
Could you post a picture or your schematic? What type of transistor are you using, PNP, or NPN?
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #6 on: December 27, 2012, 11:36:28 am » |
Could you post a picture or your schematic? What type of transistor are you using, PNP, or NPN?
The schematic is http://ardx.org/src/circ/CIRC03-sheet-OOML.pdf. Mine is exact - sorry can't post photo right now, but trust me, I even pinned the schematic to the breadboard just to be absolutely sure I wasn't making a mistake. According to the listed parts, the transistor is an NPN and these are the specs I found: http://www.futureelectronics.com/en/Technologies/Product.aspx?ProductID=P2N2222AGONSEMICONDUCTOR9557430&IM=0 The part number was not on the transistor which is also one of the reasons I suspect it is either faulty or just plain wrong. This is the part# I plan on buying (I can't be sure it's what I was sent).
|
|
|
|
|
Logged
|
|
|
|
|
Queens, New York
Offline
Edison Member
Karma: 29
Posts: 1569
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
|
 |
« Reply #7 on: December 27, 2012, 12:18:35 pm » |
Is this your setup?
wow... I didn't think it would be that big, sorry.
|
|
|
|
|
Logged
|
UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino
Arduino Tutorials, coming soon.
"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown
|
|
|
|
California
Offline
Edison Member
Karma: 41
Posts: 1869
|
 |
« Reply #8 on: December 27, 2012, 12:28:53 pm » |
Do you mean taking the +5v lead and putting it directly to GND to complete the circuit?
Dear god don't do that. I think he meant take the lead that is connected to the Arduino digital pin and plug it directly into ground. That should "turn off" the transistor, preventing current from passing through it (and thus, the motor).
|
|
|
|
|
Logged
|
|
|
|
|
Indiana, US
Offline
Full Member
Karma: 12
Posts: 161
|
 |
« Reply #9 on: December 27, 2012, 01:12:30 pm » |
Patduino, I'm not sure what you mean by ground the lead. Do you mean taking the +5v lead and putting it directly to GND to complete the circuit? Sorry if I was unclear, ground the transistor base. Arrch is right - that'll disable the transistor to help narrow down the problem space. Don't ground your +5v! Unless that foot of snow knocked out your power and you are looking to heat your place... For a few milliseconds !
|
|
|
|
« Last Edit: December 27, 2012, 01:14:12 pm by patduino »
|
Logged
|
There are 10 types of people in the world, those that understand binary, and those that don't.
|
|
|
|
Offline
Newbie
Karma: 0
Posts: 4
|
 |
« Reply #10 on: December 27, 2012, 04:50:28 pm » |
Problem solved! It was the transistor. I can't tell if it was faulty or was the wrong part (as I said, I couldn't read the part#). Thank you everyone for helping troubleshoot... so glad this forum exists. This will be my second home for the next little while and so I hope to pay it back sometime. Cheers!
|
|
|
|
|
Logged
|
|
|
|
|
|