F3 - Turn DC motor on/off
- Create a circuit with the DC motor.
More comfortable with diagrams?
- Create a program that turns the motor ON when UP arrow key is pressed and OFF when DOWN arrow key is pressed.
-
Press the Up and Down arrow keys.
What happens to the motor?
-
⭐BONUS⭐ Modify the programme to control the motor speed by pressing 1 to 5!
With DIGITAL output, we can only turn the motor ON or OFF.
However, with ANALOG output, we can adjust the motor speed.