You are on page 1of 5

Experiment No.: 2.

Student Name: Anurag Gupta UID: 21BCS1294


Branch: CSE Section/Group: 402B
Semester: 2 Date of Performance: 1/04/2022
Subject Name: BEEE LAB Subject Code: 21ELH-101

1. Aim: To design simple DC motor control circuit.

2.Apparatus: ARDUINO UNO, DC motor, L293D, connecting wires. potentiometer.

3. Circuit diagram:

4. Tinkercad Simulation:
Fig.1- Circuit Diagram

Fig.2- Circuit Diagram with Code


4.Program Code:

void setup(){

pinMode(11, OUTPUT);

pinMode(12, OUTPUT);

void loop()

digitalWrite(11,LOW);

delay(2000);

digitalWrite(12,HIGH);

delay(2000);

digitalWrite(11,HIGH);

delay(2000);

digitalWrite(12,LOW);

delay(2000);

digitalWrite(11,LOW);

delay(2000);

digitalWrite(12,LOW);
delay(2000);

digitalWrite(11,HIGH);

delay(2000);

digitalWrite(12,HIGH);

delay(2000); }

5.Result:

Designing of simple DC motor control circuit using arduino is verified after uploading the program.

6.Learning outcomes (What I have learnt):

1.Use of DC motor.

2.How to make DC motor circuit using Arduino.

Evaluation Grid:

Sr. No. Parameters Marks Obtained Maximum Marks


1. Worksheet completion including writing 10
learning objectives/Outcomes.(To be
submitted at the end of the day).
2. Post Lab Quiz Result. 5
3. Student Engagement in 5
Simulation/Demonstration/Performance
and Controls/Pre-Lab Questions.
Signature of Faculty (with Date): Total Marks Obtained:

You might also like