0% found this document useful (0 votes)
2 views

Practical 2

The document outlines a control system for two DC motors using an Arduino UNO R3 and two switches, detailing the motor movements based on switch positions. It includes a modification to add a third switch that alters the operation of the motors according to a new table. The movements include directions such as clockwise, anti-clockwise, and various robot movements based on the switch configurations.

Uploaded by

pritesh saxena
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

Practical 2

The document outlines a control system for two DC motors using an Arduino UNO R3 and two switches, detailing the motor movements based on switch positions. It includes a modification to add a third switch that alters the operation of the motors according to a new table. The movements include directions such as clockwise, anti-clockwise, and various robot movements based on the switch configurations.

Uploaded by

pritesh saxena
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

DC Motor Control using Digital

Switches
⚫ Two switches and two DC motor are connected with
Arduino UNO R3. Write a code to control DC motor
as per given table.
Switch 2 Switch 1 Motor1 Motor2 Robot
Movement
0 0 CW CW Forward
0 1 OFF CW Left
1 0 CW OFF Right
1 1 ACW ACW Backward

CW – clockwise direction
ACW – Anti-clockwise direction
Modification
⚫ Connect a third switch to modify as per given table

Switch3 Switch 2 Switch 1 Motor1 Motor2 Robot


Movement
0 None of the motor should be operated irrespective of status of
switch
1 0 0 CW CW Forward
1 0 1 OFF CW Left
1 1 0 CW OFF Right
1 1 1 ACW ACW Backward

You might also like