Hardware Reference
In-Depth Information
2. Enter a value, for example, 255 , and then click on Send . Your motor should
speed up. Now, enter another number, for example, 0 , and then click on Send .
Your motor should stop. Numbers between these two should adjust the speed of
your DC motor. Unfortunately, the motor can only go in one direction. The value
255 sends an output to the motor controller that should drive it to its maximum
speed, whereas the value 0 sends an output that corresponds with a speed of 0.
The next example will provide a solution if you'd like bidirectional control for your DC
motor.
Search WWH ::




Custom Search