Close

F3 - Turn DC motor on/off

  1. Create a circuit with the DC motor

    F3 - Turn Motor on-off schematics.png

    More comfortable with diagrams?
    D1 Class - Motor-1.png
     



  2. Create a program that turns the motor ON when UP arrow key is pressed and OFF when DOWN arrow key is pressed.

    DC Motor key press digital pin-1.png    



  3. Press the Up and Down arrow keys.

    What happens to the motor?

    H2 Class - Press key.png H2 Class - DC Motor.png



  4. BONUS⭐ Modify the programme to control the motor speed by pressing 1 to 5!

    DC Motor key press analog pin-1-1.png   

    H2 Class - analog_vs_digital.png

    With DIGITAL output, we can only turn the motor ON or OFF. 

    However, with ANALOG output, we can adjust the motor speed.