Monday, June 6, 2016

Temperature sensor robot with arduino

Temperature sensor  robot

This robot sense where the heat is more and goes near it  when the temperature crosses the default temperature  it stops and plays a siren/buzzes . I have given it 30 degrees Celsius as the default temperature  .Where ever it senses heat /fire it goes there . This can be used by the fire fighters.

Tools needed -

  • Arduino board
  • bread board 
  • lm35
  • wires
  • buzzer
  • A motor driver circuit 
  • 12v battery


You can make the robot in your own design

The temperature sensor looks likes this

We can use IC L293D  for the motor driver

these are the connections for the L293D

The program for the robot is -


int ml=5;
int mr=4;
int sl=A0;
int sr=A1;
int buzz=3;
int ldata;
int rdata;
int temp=27 ;


void setup() {
 Serial.begin (9600);
 pinMode(ml,OUTPUT);
 pinMode(mr,OUTPUT);
 pinMode(buzz,OUTPUT);
}


void loop() 
{
   int lsense=analogRead(sl)*5/10;
   int rsense=analogRead(sr)*5/10;
   Serial.println(rsense);
   Serial.println(lsense);

   delay(1000);
 if (temp>=lsense && temp>=rsense){
  digitalWrite(ml,HIGH);
  digitalWrite(mr,HIGH);
  digitalWrite(buzz,LOW);  
}

else if (temp < lsense && temp >= rsense){
  digitalWrite(ml,HIGH);
  digitalWrite(mr,LOW);
  digitalWrite(buzz,LOW);  
}
else if (temp >= lsense && temp < rsense){
    digitalWrite(ml,LOW);
    digitalWrite(mr,HIGH);
    digitalWrite(buzz,LOW);    
}
else if (temp < lsense && temp < rsense){
  digitalWrite(ml,LOW);
  digitalWrite(mr,LOW);
  digitalWrite(buzz,HIGH); 
}
}

Monday, May 30, 2016

Understanding Basic Electronics

It is mandatory to understand the basic electronics for  Robotics. I've joined EduRobo sessions to learn Arduino programming.

Types of materials

  • Metals are good conductors for electricity and heat
  • non-metals are insulators
Elements of Electricity

Voltage: It is the pressure need for the current to pass.
volts : It is unit for measuring the voltage.

Current: It is the flow of electrons
Ampere: It is the unit of current, in short amp

Power: It is a combination of Voltage and current. in other words Voltage * Current = Power
Watt: It is the unit of power.

Voltage Regulator-
 It is a device which takes n high voltage and gives out required amount of voltage.The voltage regulator IC which I used is known as 7805. It has 3 terminals input , ground , output.


This is a voltage regulator
This is the voltage regulator which I used




Popular Posts