Monday, May 8, 2017

How to make a graphical thermometer using arduino & nokia 5100 LCD

It is simple arduino  thermometer project

You Need--

Arduino UNO or any other arduino board

Nokia 5100 LCD Module

Analog Temperature sensor LM-35

Jumper wires

Bread board or vero board

battery


here I use nokia  pcd 8544 - 1.4.3 library ( download library )

after add library You can get code in sample of 8544 library



                                               Schematic of this project






Friday, May 5, 2017

How to Decode any IR remote ( TV,DVD,AC any other)


Decoding IR remote



Using this tutorial you can decode any Ir remote Hex code.and we can apply it our project also like home automation,robot control etc.

You need-

Arduino Uno or any other arduino board

TSOP 1738 or 1838

small bread board

jumper wire

& for test a LED


At first you have to add a library ( Download from here)


after download unzip it & paste folder to arduino library folder




connect IR sensor to arduino like above  Schematic


Now upload first code to arduino

First code--

#include <IRremote.h>

int IRpin = 8;
IRrecv irrecv(IRpin);
decode_results results;


void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn(); // Start the receiver
}  
void loop() 

{   
  if (irrecv.decode(&results)) 
    {
     Serial.println(results.value); // Print the Serial 'results.value'
      delay(10);

     irrecv.resume();   // Receive the next value
    }
}    



After this press any key on remote ,Hex code will show on serial monitor

copy hex code of any key in your choice


Now upload second code to arduino

Second code--




#include <IRremote.h>


int IRpin = 8;
IRrecv irrecv(IRpin);
decode_results results;


void setup()
{
  Serial.begin(9600);
  irrecv.enableIRIn();
  pinMode(13,OUTPUT);

}

  
void loop() 

{   
  if (irrecv.decode(&results)) 
    {
     Serial.println(results.value);
      delay(10);
      if(results.value==Your remote hex value)
      digitalWrite(13,HIGH); 
      delay(500);
      digitalWrite(13,LOW);
     irrecv.resume(); 
    }
}    


Put your coped hex code to hex value


and insert a LED to digital pin 13 of arduino like bellow  Schematic


 Now press key of your remote LED will blink