Monday, June 9, 2014

Arduino and Motors, Part (Not) 2 (Far)

Started breadboarding the first exercise in the #5 Jeremy Blum 'Arduino Basics' video tutorial; it talks about motors and transistors.

Didn't get too far. Got all my electronic components out and sorted through them to find the parts needed for the first Arduino/motor exercise. Got the 1k ohm resistor and the 1 microfarad capacitor. Found a 1N4004 diode, the Arduino Uno, the breadboard and jumper wires. But then I
ran into transistor problems.

The parts list that accompanies Jeremy's #5 video says to use a 2N7052 NPN transistor. Well, the
Element14 page for that component says they're no longer manufactured. I've got a BC547B NPN transistor and a 2N2222A NPN transistor, but I don't know enough about transistors to know if one of the two transistors I have should work fine instead of the 2N7052. The specs aren't quite the same, and I haven't yet figured out how to figure that out. Will work on that more tomorrow.

To try and learn a bit more about motors and microcontrollers before the Humboldt Microcontrollers Group meeting this Thursday, I looked at a few more related pages online tonight. One of the topics I'm interested in is motor shields for Arduino. I'd like to understand when a shield is used, and when the motor is just hooked up to the Arduino without using a shield. Adafruit has a pretty interesting looking shield, the Adafruit Motor/Stepper/Servo Shield for Arduino v2 Kit. It appears to be a pretty versatile component that could be used for a variety of projects.

Well, that's all for tonight. Ran out of time to figure out anything else. Need to learn more about transistors...


No comments:

Post a Comment