PWMOUT / H-Bridge
This circuit uses a PicAxe 08M2 to drive an H-Bridge chip that in turn controls the
12-VCD motor.
Blue jumper wires are connected to the common (0) and green jumpers connect to
the voltage coming from the power supply, not the 5VDC power. This allows the
motor to be run on any voltage up to the power supply voltage.
The H-Bridge is capable of running two motors buy this is set up for just one.
Wiring Connections:
H-bridge leg 1 to PicAxe pin 2 (motor 1 enable pin used with pwmout)
H-bridge leg 2 to PicAxe pin 1 (one of two pins needed for reverse and stop, motor 1)
H-bridge leg 3 to motor1
H-bridge leg 4 to ground (blue breadboard rail) (also used as a heat sink)
H-bridge leg 5 to ground (blue breadboard rail) (also used as a heat sink)
H-bridge leg 6 to motor 1
H-bridge leg 7 to PicAxe pin 4 (one of two pins needed for reverse and stop, motor 1)
H-bridge leg 8 to input voltage + (red input breadboard rail)
(up the other side)
H-bridge leg 9 no connection (motor 2 enable pin used with pwmout)
H-bridge leg 10 no connection (one of two pins needed for reverse and stop, motor 2)
H-bridge leg 11 no connection (motor 2)
'stopped time
low 1
high 4
low 1
low 4
Pause 1000
goto main
' do it again