Spin Direction Control
Spin Direction Control
Tools:
Components Quantity
Arduino UNO R3 1
DC Motor 1
Breadboard 1
Method:
To set up the presentation, we began by connecting 5V and the ground of the IC
to 5V and the GND of Arduino, respectively. The DC motor connects to pins 1 and 2 of
the IC. Input 1 of the IC is di to digital pin 8 of the Arduino. On the other hand, input 2 of
the IC is joined to the digital pin 9 of the Arduino. The EN 1&2 of IC is associated with
digital pin 2 of the Arduino. The power of the IC corresponds to the positive terminal of
the breadboard to the 5V of the Arduino. Otherwise, the GND of the IC cooperated with
the negative terminal of the breadboard into the GND of the Arduino. The Arduino USB
cable connects and uploads the program to Arduino using Tinkercad software. The
power supply, battery, or USB cable is the need to provide power to Arduino.
This figure indicates the negative rpm of the DC motor in spin direction control.
The armature shaft stops in a 3 second after it rotates in the positive lead then the motor
rotates in the opposite direction if the lead switches.
Tools:
Components Quantity
Arduino Uno R3 1
Servo Motor 1
Potentiometer 1
10kΩ Resistor 1
Method:
Constructing the schematic of controlling a servo motor using potentiometer, the
pins are specified. The 10kΩ resistor connects to the positive and negative power
terminal of the breadboard to the 5V and GND of the Arduino. There are three terminals
of the potentiometer. The terminal 1 of the potentiometer connects to the GND while the
terminal 2 is connected to the 5V of the Arduino. On the other hand, the wiper terminal of
the potentiometer is directed to the digital pin A0 of the Arduino. Since the availability of
the ULN2003 driving IC were not in the Tinkercad, the L293D H-Bridge Motor Driver is
used. The power of the L293D H-Bridge Motor Driver is connected to the 5v of the
Arduino. The power and GND of the servo motor are connected to the 5V and GND of
the Arduino, respectively. Hence, the signal terminal of the servo motor is associated to
the digital pin ~9 of the Arduino. Even if the code is provided, we are urged to manually
write it out in order to improve our abilities. After that, launch the simulation by clicking
on the button in the upper right corner of the screen. Check to see if the specifications of
the project and codes were followed after entering the code. You are prepared to upload
if there are no mistakes
The first figure shows that the servo motor is at rest, and the simulation is not
ready. When the simulation begins, the servo motor changes its angle depending on the
net open position.