Posts

Showing posts from 2018

raspberry gpio tutorial 7...ultrasonic and LCD display working in tamil

Image
that LCD coding is not available in internet. so that rare coding. so if you want download that..or copy that Coding for ultrasonic with LCD import RPi.GPIO as GPIO import time def get_distance():     GPIO.output(trig, True)     time.sleep(0.0001)     GPIO.output(trig, False)     srt = 0     fsh = 0     while GPIO.input(echo) == False:         srt = time.time()     while GPIO.input(echo) == True:         fsh = time.time()     dif = fsh - srt     dis_cm = dif/0.000058     return dis_cm # Define GPIO to LCD mapping LCD_RS = 26 LCD_E  = 19 LCD_D4 = 13 LCD_D5 = 6 LCD_D6 = 5 LCD_D7 = 11 trig = 4 echo = 18 # Define some device constants LCD_WIDTH = 16    # Maximum characters per line LCD_CHR = True LCD_CMD = False LCD_LINE_1 = 0x80 # LCD RAM address for the 1st line LCD_LINE_2 = 0xC0 # LCD RAM address for the 2nd line # Timing constants E_PULSE = 0.0005 E_DELAY = 0.0005 def main():   # Main program block

raspberry gpio tutorial 5...control LED using ultrasonic in tamil

python codings import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) led = 17 echo = 4 trig = 18 GPIO.setup(echo , GPIO.IN) GPIO.setup(led , GPIO.OUT) GPIO.setup(trig , GPIO.OUT) while 1:     GPIO.output(trig ,True)     time.sleep(0.00001)     GPIO.output(trig ,False)     while GPIO.input(echo) == False:         srt = time.time()     while GPIO.input(echo) == True:         end  = time.time()     duration = end - srt     distance_cm = duration/0.000058     print distance_cm     if distance_cm < 10:         GPIO.output(led , GPIO.HIGH)     else :         GPIO.output(led , GPIO.LOW)     time.sleep(.1) ************************************************************ copy that and upload in your python idle

raspberry gpio tutorial 4..distance measuring using ultrasonic

python codings import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) trig = 4 echo = 18 GPIO.setup(trig , GPIO.OUT) GPIO.setup(echo , GPIO.IN) while 1:     GPIO.output(trig, True)     time.sleep(0.0001)     GPIO.output(trig, False)     while GPIO.input(echo) == False:         srt = time.time()     while GPIO.input(echo) == True:         fsh = time.time()     dif = fsh - srt     #for cm :     dis_cm = dif/0.000058     dis_inch = dif/0.000148     print('distance: {}cm'.format(dis_cm))     time.sleep(.5) ********************************************************************************* copy that and paste in your python idle

raspberry gpio tutorial 2.. getting input using switch in tamil

python codings import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(17,GPIO.IN) while 1:     if GPIO.input(17):         print 'button pressed'         time.sleep(1)     else:         print 'button not pressed'         time.sleep(1)          *************************************************************************************************************** copy that and paste in your python idle

raspberry gpio tutorial 3..control LED using button in tamil

python codings      import RPi.GPIO as GPIO import time GPIO.setmode(GPIO.BCM) GPIO.setwarnings(False) GPIO.setup(17,GPIO.IN) GPIO.setup(27,GPIO.OUT) while 1:     if GPIO.input(17):         GPIO.output(27,GPIO.LOW)         print 'led off'         time.sleep(1)     else:         GPIO.output(27,GPIO.HIGH)         print 'led on'         time.sleep(1) ********************************************************************************* copy that and paste in your python idle

arduino controlled motor and servo in tamil

Image
if you want my app dowload here: https://docs.google.com/uc?export=download&id=1hZIQLwD-Ou2L5EhuSKH4Tmn6ECjB-kJ_ codings #include <SoftwareSerial.h>  #include <Servo.h> Servo servo;  int bluetoothTx = 10; // bluetooth tx to 10 pin int bluetoothRx = 11; // bluetooth rx to 11 pin SoftwareSerial bluetooth(bluetoothTx, bluetoothRx); int motorpas = 5; //connect passitive pin of motor in 5 int motorneg = 6; //connect negative pin of motor in 6 int servoPin = 9; //connect servo signal pin in 9 int level = 0; void setup() {  Serial.begin(9600);  bluetooth.begin(9600);  pinMode(motorpas,OUTPUT);  pinMode(motorneg,OUTPUT);  servo.attach(servoPin); } void loop() {   if(bluetooth.available()>0)   {     unsigned int cmt;     cmt = bluetooth.read();     Serial.write(cmt);     Serial.println();     if(cmt == 'a')     {       servo.write(0);     }     else if(cmt == 'b')     {       serv

arduino controlled motor and servo in tamil

Image
if you want my app dowload here: https://docs.google.com/uc?export=download&id=1hZIQLwD-Ou2L5EhuSKH4Tmn6ECjB-kJ_ codings #include <SoftwareSerial.h>  #include <Servo.h> Servo servo;  int bluetoothTx = 10; // bluetooth tx to 10 pin int bluetoothRx = 11; // bluetooth rx to 11 pin SoftwareSerial bluetooth(bluetoothTx, bluetoothRx); int motorpas = 5; //connect passitive pin of motor in 5 int motorneg = 6; //connect negative pin of motor in 6 int servoPin = 9; //connect servo signal pin in 9 int level = 0; void setup() {  Serial.begin(9600);  bluetooth.begin(9600);  pinMode(motorpas,OUTPUT);  pinMode(motorneg,OUTPUT);  servo.attach(servoPin); } void loop() {   if(bluetooth.available()>0)   {     unsigned int cmt;     cmt = bluetooth.read();     Serial.write(cmt);     Serial.println();     if(cmt == 'a')     {       servo.write(0);     }     else if(cmt == 'b')     {       servo.write(45);     }     else if(cmt == 'c')     {       servo.write(90)

RFID attendance system review in tamil

Image
this video is my 100th video in youtube to get my app click here before uploading change the uid code of the your RFID tag... then upload that code coding for that video  /* PINOUT: RC522 MODULE    Uno/Nano     MEGA SDA             D10          D9 SCK             D13          D52 MOSI            D11          D51 MISO            D12          D50 IRQ             N/A          N/A GND             GND          GND RST             D9           D8 3.3V            3.3V         3.3V */ /* Include the standard Arduino SPI library */ #include <SPI.h> /* Include the RFID library */ #include <MFRC522.h> #include <LiquidCrystal.h> LiquidCrystal lcd(2,3,4,5,6,7);//rs,e,d0,d1,d2,d3 String rfid = ""; bool id1 = false; bool id2 = false; int successRead; /* Define the DIO used for the SDA (SS) and RST (reset) pins. */ #define SDA_DIO 10 #define RESET_DIO 9 /* Create an instance of the RFID library */ MFRC522

arduino with ultra sonic and RGB led in tamil

codings for this video #define trig 8 #define echo 9 int red = 10, green = 11,blue = 12; void setup() {   Serial.begin(9600);   pinMode(trig,OUTPUT);   pinMode(echo,INPUT);   pinMode(red,OUTPUT);   pinMode(blue,OUTPUT);   pinMode(green,OUTPUT); } void loop() {   long duration , distance;      digitalWrite(trig,LOW);   delay(2);   digitalWrite(trig,HIGH);   delay(2);   digitalWrite(trig,LOW);      duration= pulseIn(echo,HIGH);   distance=(duration/2)/29.1;   Serial.println(distance);   if(distance <= 10)   {     digitalWrite(red,LOW);     digitalWrite(blue,LOW);     digitalWrite(green,HIGH);   }   else if(distance <= 15)   {     digitalWrite(red,LOW);     digitalWrite(blue,HIGH);     digitalWrite(green,LOW);   }   else if(distance <= 20)   {     digitalWrite(red,HIGH);     digitalWrite(blue,LOW);     digitalWrite(green,LOW);    }   else   {     digitalWrite(red,LOW);     digitalWrit

MIT APP INVERTOR #14 user sign up and sign in app review and working in...

Image
my own sign in and sign up app.visit my channel to watch my video. how is this working and how that block are arranging...  and give your support. thank you for visit my blog .

specification of raspberry pi and difference between raspberry pi versio...

Image
My second raspberry pi video. Whatch this. This is must usefull for you. Raspberry pi videos are only uploaded in saturday. Don't miss this. and thq for visit my blog.

using RFID control led in tamil

Image
codings for this video  /* PINOUT: RC522 MODULE    Uno/Nano     MEGA SDA             D10          D9 SCK             D13          D52 MOSI            D11          D51 MISO            D12          D50 IRQ             N/A          N/A GND             GND          GND RST             D9           D8 3.3V            3.3V         3.3V */ #include <MFRC522.h> #include <SPI.h> MFRC522 rfid(10,9);  //ss pin(SDA pin) and rst pin String id = ""; bool type = false; int successRead; void setup() {   pinMode(8,OUTPUT);   Serial.begin(9600);   SPI.begin();   rfid.PCD_Init();   Serial.println("scaning"); } void loop() {  type = !type;  do{     successRead = getID();   }   while (!successRead);      if(id == "9D 22 B5 2D")   {     if(type == true)     {      digitalWrite(8,HIGH);      }     else if(type == false)     {      digitalWrite(8,LOW);      }   }   delay(1000);   id = ""; } int getID() {      if ( ! rfid.PICC_IsNewCardPresent()) {      retu

how to get HEX code or UID code from RF tag in tamil

Image
codings for this video /* PINOUT: RC522 MODULE    Uno/Nano     MEGA SDA             D10          D9 SCK             D13          D52 MOSI            D11          D51 MISO            D12          D50 IRQ             N/A          N/A GND             GND          GND RST             D9           D8 3.3V            3.3V         3.3V */ #include <MFRC522.h> #include <SPI.h> MFRC522 rfid(10,9);  //ss pin(SDA pin) and rst pin void setup() {   Serial.begin(9600);   SPI.begin();   rfid.PCD_Init();   Serial.println("scaning"); } void loop() {   if(!rfid.PICC_IsNewCardPresent())   {     return;   }   if(!rfid.PICC_ReadCardSerial())   {     return;  }     rfid.PICC_DumpToSerial(&(rfid.uid)); } ******************************************************************************* copy the codings and upload 

using ir remote control leds in tamil

Image
codings for control leds using tsop1738 #include <IRremote.h> int RECV_PIN = 4; // int output1 = 8; int output2 = 9; int output3 = 10; int output4 = 11; int itsONled[] = {0,0,0,0,0}; #define code1  0xE0E020DF // #define code2  0xE0E0A05F // #define code3  0xE0E0609F // #define code4  0xE0E010EF #define power  0xE0E040BF IRrecv irrecv(RECV_PIN); decode_results results; void setup() {  Serial.begin(9600);   //  irrecv.enableIRIn();  //  pinMode(output1, OUTPUT);  pinMode(output2, OUTPUT);  pinMode(output3, OUTPUT);  pinMode(output4, OUTPUT); } void loop() {  if (irrecv.decode(&results)) {    unsigned int value = results.value;    switch(value) {       case code1:         if(itsONled[1] == 1) {                 digitalWrite(output1, LOW);            itsONled[1] = 0;                  } else {                                  digitalWrite(output1, HIGH);             itsONled[1] = 1;                  }  

how to play music using arduino in tamil

Image
the codings for this video is there: codings for play songs /*The circuit:  * SD card attached to SPI bus as follows:  **speaker - pin 10  ** MOSI - pin 11  ** MISO - pin 12  ** CLK - pin 13  ** CS - pin 10 (for MKRZero SD: SDCARD_SS_PIN)*/ //TMRpcm library is needed #include <SD.h> #define SD_ChipSelectPin 10 #include <TMRpcm.h> #include <SPI.h> TMRpcm tmrpcm; void setup() { tmrpcm.speakerPin=9; Serial.begin(9600); if(!SD.begin(SD_ChipSelectPin)) {   Serial.println("SD fail");   return; } tmrpcm.setVolume(6); tmrpcm.play("Faded.wav"); } void loop() {   // put your main code here, to run repeatedly: }

arduino with RFID and LCD project overview in tamil

Image
this is the simple projec for arduino with RFID and LCD display... here the name of student only displayed in LCD display.... we can sent that to cloud to online attendance using esp8266 or using lab with python....                                  The code is here /* PINOUT: RC522 MODULE    Uno/Nano     MEGA SDA             D10          D9 SCK             D13          D52 MOSI            D11          D51 MISO            D12          D50 IRQ             N/A          N/A GND             GND          GND RST             D9           D8 3.3V            3.3V         3.3V */ /* Include the standard Arduino SPI library */ #include <SPI.h> /* Include the RFID library */ #include <MFRC522.h> #include <LiquidCrystal.h> LiquidCrystal lcd(2,3,4,5,6,7);//rs,e,d0,d1,d2,d3 String rfid = ""; bool id = true; int successRead; /* Define the DIO used for the SDA (SS) and RST (reset) pins. */ #define SDA_DIO 10 #define RE

codings for ultrasonic sensor

                      codings for ultrasonic sensor #define trig 5 #define echo 6 void setup() {   Serial.begin(9600);   pinMode(trig,OUTPUT);   pinMode(echo,INPUT);   pinMode(13,OUTPUT); } void loop() {   long duration , distance;      digitalWrite(trig,LOW);   delay(2);   digitalWrite(trig,HIGH);   delay(2);   digitalWrite(trig,LOW);      duration= pulseIn(echo,HIGH);   distance=(duration/2)/29.1;   if(distance <= 10)   {     digitalWrite(13,HIGH);   }   else   {     digitalWrite(13,LOW);   }     delay(1000);    } ---------------------------***********----------------------------***************------------------ This is the codings for ultrasonic sensor...  For reference watch my  youtube channel .. youtube  ultrasonic sensor video part1 youtube  ultrasonic sensor video part2 Comments

programing part for petrol level measuring in tamil

Image
this is coding part for petrol measuring project.How the codes are working and how is run.All details are told in this video.This is fully tamil video.So you will learn easily.                                 code for this project #define trig 5 #define echo 6 #include <LiquidCrystal.h> LiquidCrystal LCD(8,9,10,11,12,13); //(en ,rs,d0,d1,d2,d3) void setup() {   Serial.begin(9600);   LCD.begin(16,2);   pinMode(trig,OUTPUT);   pinMode(echo,INPUT);   pinMode(13,OUTPUT);   pinMode(4,OUTPUT);   digitalWrite(4,HIGH); } void loop() {   digitalWrite(trig,LOW);   delay(2);   digitalWrite(trig,HIGH);   delay(2);   digitalWrite(trig,LOW);      long t= pulseIn(echo,HIGH);   float cm=t/29/2;   LCD.setCursor(0,0);   LCD.print("petrollevel:");   LCD.setCursor(12,0);   LCD.print(24-cm);   LCD.setCursor(14,0);   LCD.print("cm");   float WL,lits;   WL = 24 - cm;   lits = (3.14 * 49 * WL)/1000 ;//1 cm cub

Introduction

                                      I ntroduction Hai everyone welcome friends this blog for you.. I upload arduino codings for you . Then you easily copy that and then upload in your arduino... REFERENCE:  youtube channel .. My important project is home automation.. If you have an great ideas about home automation plz comment in comment box... And also comment my drawbacks.. 

home automation using iot

This is the codings for home automation program Here we control 4 relays ,water level induction ,thermal and humanity  , motion detection and it is send to could (adafruit io) and it also receive the codings using python program. the arduino program is below....... for reference visit the video.... my automation video (youtube video link)                              arduino program #include <dht.h> #define dht_apin A0 dht DHT; int data; int LED=13; int fan=5; int motor = 9; int light, waterup, waterdown, PIR, thermal,humidity; //output of pir pin2 and light sensor pin6 //waterup output A1 and waterdown A2 //thermal output A0 void setup() {    Serial.begin(9600);                               //initialize serial COM at 9600 baudrate   pinMode(LED, OUTPUT); //totally free pins are 3,4,7,8;   pinMode(12, OUTPUT);   pinMode(11, OUTPUT);   pinMode(10, OUTPUT);   pinMode(motor, OUTPUT);   pinMode(fan, OUTPUT);   pinMode(6, INPUT);   pinM