Embedded Systems
Embedded Systems
321114312008: Ch.Sravanthi
321114312033: K.Mounika
321114312038: M.Vasavi
321114312040: M.Pravallika
321114312041: M.Akhila
321114312046: P.Siri Keerthika
321114312049: P.Hema
● BUZZER:
It is a digital component that can be connected to
digital outputs, and emits a tone when the output
is HIGH.The buzzer produces the same noisy
sound irrespective of the voltage variation
applied to it.The piezo, also known as the buzzer,
is a component that is used for generating sound.
● SWITCH:
Pushbuttons or switches connect two open terminals
in a circuit. The first input device we will study is the
switch. It allows the human to input binary
information into the computer. This example turns
on the LED on pin 12 when you press the pushbutton
switch connected to pin 3.LED is turned ON when
the pushbutton is pressed and OFF when it is
released.
● BUTTONS:
The buttons are similar to switches that create and
break electrical connections in the circuits. The
button plays a transition between ON and OFF state.
A single press turns the state ON, while another
press turns the state OFF. Button
Pushbuttons or switches connect two points in a
circuit when you press them. This example turns on
the built-in LED on pin 13 when you press the
button.
ARDUINO CODE USING LED,BUZZER AND A SWITCH
int swt = 3;
int led = 12;
int buz = 7;
void setup() {
// Setup code runs once when the Arduino is powered up or reset
pinMode(swt, INPUT_PULLUP); // Set pin 3 as input with pull-up resistor
pinMode(led, OUTPUT); // Set pin 12 as output
pinMode(buz, OUTPUT); // Set pin 7 as output
}
void loop() {
// Main code runs repeatedly
if (digitalRead(swt) == 0) {
// If the switch is pressed (LOW), turn on the LED and turn off the buzzer
digitalWrite(led, HIGH);
digitalWrite(buz, LOW);
} else {
// If the switch is not pressed (HIGH), turn off the LED and turn on the buzzer
digitalWrite(led, LOW);
digitalWrite(buz, HIGH);
}
}
WHAT IS A RELAY?
● A relay is an small electrically operated
switch that uses a small electric current to
control a larger one.
● It typically consists of an electromagnet
that when energized causes a switch to
open or close.
● Relays are commonly used to control high
voltage circuits with low voltage signals
providing a safe and efficient way to
manage electrical power in various
application.
● Relays are used because they provide a safe
way to control high power devices using low
power signals.
● Common used in automation electrical
protection and communication systems.
RELAY
Uses:
● Making machines work automatically in factories.
● Protecting electronics from too much electricity.
● Managing signals in communication systems.
Advantages:
● Keeps you safe because the button and the light are electrically
separated.
● Let's you control a big light with a small button.
Disadvantage:
● Can be a bit slow like a traditional light switch.
● Over time the switch might need replacement.
MOTOR DRIVERS
A motor driver is an electronic device that acts as
intermediate device between a microcontroller a powe
supply or Batteries and the motors.A motor driver in
Arduino is a device or modulate that controls and
manages the movement of motors.
Uses:
● Controlling motors:Motor driver interface
between Arduino and motors providing the
necessary power.
Advantage:
● Precise control
● Current regulation
Disadvantage:
● Cost
● Complexity
LIQUID CRYSTAL DISPLAY I2C
Lcd is a type of flat panel display which uses liquid crystal in its primary
form of operation.Lcd works on the principle of blocking light.Lcd
produces a picture with the help of backlight.Lcd consumes less energy
than led.
● 1st pin : Ground
● 2nd pin: VCC
● 3rd pin: Brightness
● 4th pin: Register Select Pin
● 5th pin: Read/Write
● 6th pin: Enable
● 7-14 pins: D0-D7 pin
● 15th pin: Anode
● 16th pin:Cathode
LIQUID CRYSTAL DISPLAY I2C PIN DESCRIPTION
IR sensor:
1. IR sensor is an electronic device that emits
the light in order to sense some objects of
the surroundings. It is also measure the heat
of an object as well as detects the motion.
Applications :
1. Flame detectors
IR sensor
2. Gas warning devices
3. Gas analyzer
4. Tv's
SENSORS AND ITS TYPES
Ultrasonic sensor:
2.
An ultrasonic sensor is an electronic
device that measures the distance of
target objects by emitting ultrasonic
sound waves and convert the reflected
sound into an electrical signal.
Applications :
Ultrasonic sensor
1. Loop control
2. People detection for counting
SENSORS AND IT’S TYPES
Applications :
1. Environmental science
Soil Moisture sensor 2. Horticulture
SENSORS AND IT’S TYPES
DHT/Humidity sensor:
4. It is an electronic device to measure the humidity and
temperature.
There are 2 types of dht sensor:DHT11,DHT22
DHT11 andDHT22 are two digital temperature and
humidity sensor is a basic,ultra low cost digital temperature
and humidity sensor.It uses a capacitive humidity sensor
and a thermistor to measure the surrounding air and send a
digital signal on the data pin.The main difference between
DHT11 and DHT22 is their accuracy and range. DHT22 is
more accurate and has a wider temperature and humidity
DHT sensor measurement range compared to dht11. DHT22 also tends
to be slightly more exprensive so many application we use
DHT11.
WEATHER MONITORING SYSTEM USING ARDUINO UNO
WEATHER MONITORING SYSTEM
A weather monitoring system using Arduino is a project that involves the use of Arduino
microcontrollers to collect, process, and display weather-related data. Arduino is a popular open-source
hardware and software platform that is widely used in the field of electronics and embedded systems.
With various sensors and modules, you can create a simple yet effective weather monitoring system.
Components Needed:
❖ Arduino Board:The heart of the system. Arduino Uno is a commonly used choice for beginners.
❖ Weather Sensors:
➢ Temperature Sensor (e.g., DHT11 or DHT22): Measures ambient temperature.
➢ Humidity Sensor (e.g., DHT11 or DHT22): Measures the relative humidity in the air
❖ Display Module:
➢ LCD Display or OLED Display: To visualize the collected data.
❖ Power Supply:
➢ A suitable power supply for the Arduino board and sensors.
❖ Connecting Wires and Breadboard:
➢ For connecting the components and creating a prototype.
WEATHER MONITORING SYSTEM CODE
#include <dht.h>
#include <Wire.h>
#include <LiquidCrystal_I2C.h>
Int rs=12,en=11,d4=5,d5=4,d6=3,d7=2;
LiquidCrystal_I2C lcd(rs,en,d4,d5,d6,d7);
dht DHT;
#define DHT11_PIN 4
void setup(){
lcd.begin(16, 2); }
void loop() {
int d = DHT.read11(DHT11_PIN);
lcd.setCursor(0,0);
lcd.print("Temp: ");
lcd.print(DHT.temperature);
lcd.print((char)223);
lcd.print("C");
lcd.setCursor(0,1);
Readings on LCD:
lcd.print("Humidity: ");
lcd.print(DHT.humidity); Temperature: 28.00°C
lcd.print("%"); Humidity: 14.00%
delay(1000);
}
WEATHER MONITORING SYSTEM