Im trying the most basic motor circuit and I've tried with 3 different motors, admittedly bought from the same supplier in ebay
Code copied straight from the book, I think I have the circuit right. Photos of all attached
There is definitely some power there, if I replace the motor with an LED it lights up
The diagram calls for 2.2k resistor, I've used 2*1k instead as that's what I have
The diode band has rubbed off, but the band is to the left hand side of the circuit. I don't know much about what the diode is... That would be the issue? I'm clutching at straws as I am clueless
Don't post pictures of text! Post code as text.
Please use code tags when you post code or warning/error messages. To do this, click the </> button on the forum toolbar, then paste the text you want to be in the code tags. Finally, move the cursor out of the code tags before adding any additional text you don't want to be in the code tags. If your browser doesn't show the posting toolbar, then you can manually add the code tags like this: [code]``[color=blue]// your code is here[/color]``[/code]
The reason for doing this is that, without code tags, the forum software can interpret parts of your code as markup, leading to confusion, wasted time, and a reduced chance for you to get help with your problem. This will also make it easier for us to read your code and to copy it to the IDE or editor.
Using code tags and other important information is explained in the "How to use this forum" post. Please read it.
kiki_soton:
Im trying the most basic motor circuit and I've tried with 3 different motors, admittedly bought from the same supplier in ebay
Code copied straight from the book, I think I have the circuit right. Photos of all attached
What book?
There is definitely some power there, if I replace the motor with an LED it lights up
The diagram calls for 2.2k resistor, I've used 2*1k instead as that's what I have
Totally wrong. 150 ohms might work. Not impressed by this book! Motors need lots of current
(0.5 to 2A is common range for small motors) and the transistor needs at least 5% of that current to the base to control the load.
The diode band has rubbed off, but the band is to the left hand side of the circuit. I don't know much about what the diode is... That would be the issue? I'm clutching at straws as I am clueless
Any help much appreciated
The nature of the diode is pretty irrelevant so long as it can handle the current without failing. The transistor however must have a high current rating and a low saturation voltage.