Arduino Programming
NETAJI SUBHASH ENGG. COLLEGE
DECEMBER, 2020-2021
Prepared By:
Prof. SUMITESH MAJUMDER
HOD, AEIE Department
NSEC
What do you need?
To get started you need the following:
• PC (Windows, Mac, Linux)
• Arduino UNO (~200 NOK) or a
Starter Kit (~800 NOK)
• Software (free)
• Electrical components (wires,
resistors, etc.)
Switch
Equipment Resistors
Temperature sensor
Arduino
Potentiometer USB cable LEDs
Light sensor
wires
Thermistor Multimeter
Breadboard
Introduction to Arduino
Arduino Uno R3
Reset button
Pin 13 LED
USB
connector Digital pins header
ATmega328 MCU
Barrel jack
Analog pins header
Power-ground header
Crystal
Oscillator
ATmega328 Microcontroller
Pin number
Pin name
Special
function
Connect your Arduino to your PC
Other component
Other component
Other component
Other component
Other component
Arduino Development
Environment
Arduino.cc
Arduino.cc
Arduino.cc
Program
Example
Example
Example
Example
Example
Serial monitor
Serial monitor
Serial monitor
Arduino
Examples
We need the following
•Arduino UNO •Breadboard
•+
• + LEDs, Resistors, Wires, etc.
•The Breadboard is used to connect components and electrical circuits
Breadboard Example
Electrical
Components
Breadboard
Wires used to connect the electrical components together to a closed circuit
Sensors and Actuators
• A Sensor is a converter that measures a physical size and
converts it to a signal that can be read by an instrument, data
acquisition device, or an Arduino.
Examples: temperature sensor, pressure sensor, etc.
• An Actuator is a kind of motor that moves or controls a
mechanism or system. It is powered by an energy source, typical
electric current, hydraulic fluid pressure, or air pressure, and
converts this energy into motion.
Examples: Engine, Pump, Valve, etc.