Arduino FINAL Presentation... AGS
Arduino FINAL Presentation... AGS
AND TECHNOLOGY
It is used for writing code, compiling the code to check if any errors are
there and uploading the code to the Arduino.
When a user writes code and compiles, the IDE will generate a Hex file for the code. (Hex
file are Hexa Decimal files which are understood by Arduino) and then sent to the board
using a USB cable. Every Arduino board is integrated with a microcontroller, the
microcontroller will receive the hex file and runs as per the code written.
ARDUINO UNO
FIG: IR SENSOR
THERMISTOR
FIG:THERMISTOR
POTENTIOMETER
POTENTIOMETER
DISPLAY UNIT (LCD)
Liquid crystal displays (LCD) are widely used in
recent years as compares to LEDs.
LCD
LCD PIN DESCRIPTION
INTRODUCTION TO ARDUINO
PROGRAMMING.
A program written in the Arduino Programming Language is
called sketch. A sketch is normally saved with the .ino extension (from
Arduino).
The main difference from “normal” C or C++ is that you wrap all your
code into 2 main functions. You can have more than 2, of course, but
any Arduino program must provide at least those 2.
LIST OF PROGRAMS DONE
Here is a list of some of the basic programs that we have done in our training –
Blinking of LED
Rotation of LED’s from left to right
Glowing of alternate LED’S
Writing “HELLO WORLD” on 16*2 LCD.
Mini project on Person counter using LCD.
Running DC motor in clockwise and anti clockwise direction
Light intensity based street lights
Controlling of DC motor speed using temperature sensor that will sense the heat and
accordingly increases or decreases the speed of fan. Etc
Mini project on EVM using LCD
PROGRAM (LED Blink)
PROGRAM (hello, world)
LCD PROGRAM
// include the library code:
#include <LiquidCrystal.h>
void setup() {
// set up the LCD's number of columns and rows:
lcd.begin(16, 2);
// Print a message to the LCD.
lcd.print("hello, world!");
}
{
Void loop() {
}
}
INTERFACING OF DC MOTOR
A DC motor is any of a class of rotary electrical motors that
converts direct current electrical energy into mechanical energy
COMPONENTS USED:
Various components that we have used in our circuit are-
1. Arduino UNO
2. L293D MOTOR DRIVER
3. DC MOTOR
4. 9V BATTERY
5. Connecting wires
L293D MOTOR DRIVER-Pin description
L293D is a typical Motor driver or Motor Driver IC which allows DC motor to drive on
either direction.
The VSS is where the power supply is given. IN4 and IN3 will be used for direction control.
OUT4 and OUT3 will be connected to the DC motor.
The 12 and 13 GND pin will be grounded.
Enable2 (EN2) is used to control the speed of the
DC motor.
CIRCUIT
CIRCUIT DESCRIPTION
The power terminal that is VSS is connected to the positive terminal of the
breadboard which is further connected to the 5v of the Arduino board.
The input 4 (IN4) is connected to the 4th
pin of the Arduino chip, while the OUT Vss(power
output 4 (OUT4) pin is connected 4 terminal)
to the DC motor.
5V of Arduino
GROUND
PINS
External
Both the ground pins are power
grounded on the negative terminal. supply
PROGRAM
MINI PROJECT-EVM
.
PROGRAM
THANK YOU