Procedure
- Source
- Target
NOTE: First make the connections, then move to code compilation.
1. Drag and drop BreadBoard, Arduino and all other Components first.
2. Connect Pin 1 of Breadboard with Pin 12 of Arduino.
3. Connect Pin 2 of Breadboard with Pin 11 of Arduino.
4. Connect Pin 3 of Breadboard with Pin Ter1 of DC Motor.
5. Connect Pin 4 of Breadboard with Pin 8 of Breadboard.
6. Connect Pin 5 of Breadboard with Pin Ter2 of DC Motor.
7. Connect Pin 6 of Breadboard with Pin 10 of Arduino.
8. Connect Pin 7 of Breadboard with Pin 12 of Breadboard.
9. Connect Pin 15 of Breadboard with Pin 13 of Breadboard.
10. Connect Pin 17 of Breadboard with Pin 10 of Breadboard.
11. Connect Pin 16 of Breadboard with Pin (A1) of Arduino.
12. Connect Any Pin of PushButton with Pin 9 of Breadboard.
13. Connect Any Pin of PushButton with Pin 2 of Arduino.
14. After connections click on the CHECK button to check the connections.
15. For the code compiler:
- Set the pinMode of in1Pin as "OUTPUT".
- Set the pinMode of in2Pin as "OUTPUT".
- Set the pinMode of enablePin as "OUTPUT".
- Set the pinMode of statusPin as "OUTPUT".
- Set the digitalWrite of statusPin to "HIGH".
16. Now, click on "COMPILE" button to run and check the code.
17. Click on "PushButton",to change the direction of DC Motor.
18. Click on "Potentiometer",the rate of DC Motor.
19. Click on "RESET" button to reload the webpage.
