Wednesday, March 17, 2010

Arduino Motor Control

Well, last night, the basic breadboard for class 3 was wired. Tonight, the H-bridge was added and wired. The H-bridge will control two motors for the class and will use four of the PWM pins on the Arduino. Two more Arduino pins are used to enable the motors. Currently, LEDs are used on the motor circuits to indicate direction or disabled. The cathode of two LEDs will sit on Arduino pins to indicate when the pin is LOW and therefore indicate which motor has been disabled. The LEDs will remain when the motors are actually added.

For some great content, my friend Dale sent me a treatise on PWM that explains it in simple terms. It will make a great addition to Class-1.

The remaining Arduino received from Sparkfun does not have the red marking that the other Arduino chips have. To test, it will be inserted into a known working circuit and a program will be loaded. If it works, it is merely missing the red mark. If it does not work, then perhaps it is missing the Arduino boot loader. That's what testing is for.

That is enough for tonight.