ARDUINO
ARDUINO
to the DC motor.
IN4
5V of Arduino
Both the ground pins are grounded on the negative terminal.
There is an external power supply(9v)
GROUND
used because Arduino alone cannot handle
PINS
the DC motor. The positive terminal of the
power supply is connected to the positive
External
of the breadboard which further is power
connected to the VS of the DC motordriver supply
for extra power.
The negative terminal of the power supply
is connected to the ground of the
breadboard
PROGRAM-To drive dc motor in clockwise and anti
clockwise direction
MINI PROJECT-EVM
.
DESCRIPTION OF PINS USED
SWITCHES- Three switches SW1,SW2 &SW3 are connected with the digital
pins 10,9,8 of the Arduino board.
LCD PINS-
1) Enable pin-The enable pin is used by the LCD to latch information
presented to its data pins. This pin is connected to pin no. 11 on the Arduino
board.
2) RS (register select)-There are two important registers inside the LCD. The
RS pin is used for their selection as follows. If RS=0, the instruction command
code register is selected, then allowing to user to send a command such as clear
display, cursor at home etc.. If RS=1, the data register is selected, allowing the
user to send data to be displayed on the LCD.
3) D0-D4 (data lines)-The 8-bit data pins, D0-D4, are used to send
information to the LCD or read the contents of the LCD’s internal registers.
These data lines are connected to the digital pins 5,4,3&2 of the Arduino
board.
4)Potentiometer- A potentiometer is also used. By varying the resistance of
the potentiometer we can vary the screen brightness or the screen contrast
of the LCD
PROGRAM
THANK YOU