Arduino-Step by Step
Arduino-Step by Step
ON
Arduino
Input/ Output Pins Digital Pins 0 - 13 Can be used as input or output pins.
Serial 0(Rx), 1(Tx) Used to receive and transmit TTL serial data.
Components Required:
1 × Arduino Uno R3
1 × LED
1 × 330Ω Resistor
2 × Jumper Wires
Arduino Code:
void setup()
{
pinMode(12, OUTPUT);
}
void loop()
{
digitalWrite(12, HIGH);
delay(1000); // Wait for 1000
millisecond(s)
digitalWrite(12, LOW);
delay(1000); // Wait for 1000
millisecond(s)
}
Controlling Brightness of LED
The brightness of LED can be controlled by using a
potentiometer. A potentiometer is a three-
terminal resistor with a sliding or rotating contact
Arduino Code:
void setup()
{
Serial.begin(9600); //baud rate
pinMode(6,OUTPUT);
}
void loop()
{ Potentiometer
Serial.println(analogRead(A0));
int potvalue=analogRead(A0);
int mappedvalue=map(potvalue,0,1023,0,255);
analogWrite(6,mappedvalue);
Introduction to Ultrasonic Distance Sensor
An ultrasonic sensor can convert electrical energy
into acoustic waves and vice versa. The acoustic
wave signal is an ultrasonic wave traveling at a
frequency above 18kHz.m The famous HC SR04
ultrasonic sensor generates ultrasonic waves at
40kHz frequency.
1. Smart Homes Motion sensors, outlet control, temperature sensors, blower control, garage
door control, air flow control, sprinkler control
7. Data Mining Health care, Industries, Defence and other automation sectors
8. Body Control Hand Sight, Heart Rate Monitor, Muscle Activity, Temperature, Respiration,
Electrodermal Activity, Facial Expression, Eye Tracking
Project work
Conclusion
Arduino is the physical programmable board. Among all the other Arduino boards, Arduino UNO
is the commonly used board that is also known as classic Arduino
A wide array of sensors can be attached with this board and many third-party libraries can be
linking with an Arduino sketch. Arduino hardware components are cheaper in relation with other
controller architecture and programming language is easy. Arduino has greater academic
applications
Arduino boards are playing very important roles in many disciplines today.
Thank you