Posts

JOYSTICK Controlled Robot Car using Arduino

CODE :  DOWNLOAD CIRCUIT :

interfacing fingerprint sensor with arduino

Image
            OPTICAL FINGERPRINT SENSOR Optical fingerprint sensors take low-resolution snapshots of the tip of a finger and create arrays of identifiers that are then used to uniquely identify a given fingerprint.  RED          >  5V BLACK     >  Gnd YELLOW  >  2 WHITE      >  3 install Adafruit fingerprint library  go to manage the library and search fingerprint and click on Adafruit fingerprint library ENROLLING FINGERTIP IMPRESSION : FINGERPRINT LED CONTROLLING : CODE FOR LED : #include <Adafruit_Fingerprint.h> // For UNO and others without hardware serial, we must use software serial... // pin #2 is IN from sensor (YELLOW wire) // pin #3 is OUT from arduino (WHITE wire) // comment these two lines if using hardware serial SoftwareSerial mySerial(11,10); Adafruit_Fingerprint finger = Adafruit_Fingerprint(&mySerial); void setup() { Serial.begin(9600); while (!Serial); // For Yun/Leo/Micro/Zero/... delay(100); Serial.println("\n\nAdafruit f

RFID SERVO and LED

Image
Interfacing RFID with Servo and LED  click here for codes

Interfacing MFRC522 RFID Reader with Arduino

Image
                         MFRC522 RFID RFID means radio-frequency identification. RFID uses electromagnetic fields to transfer data over short distances, RFID is useful to identify people, to make transactions  you can use the RFID system to open a door. for example, only the person with the right information on his card or tag is allowed to enter. An RFID system uses : tags attached to the object to be identified, we have an electromagnetic card. each tag has its own identification (UID) the  reader, that sends a signal to the tag and read its response Specifications : 1. input voltage is 3.3v 2. Frequency 13.56Mhz Library : RFID Library Here PIN LAYOUT : RES   - D9 SDA   - D10 MOSI - D11 MISO - D12 SCK   - D13 3.3V   - 3.3V GND  - GND CODE :   LED AND SERVO #include "SPI.h" #include "MFRC522.h" // LibrARY #define SS_PIN 10 #define RST_PIN 9 #define SP_PIN 8 MFRC522 rfid(SS_PIN, RST_PIN); MFRC522::MIFARE_Key key; void setup() { Serial.begin(9600); SPI.

Interfacing LCD 16*2 with Arduino

Image
                          16x2 LCD Display The LCD (Liquid Crystal Display) a  16x2 means it can display 16 characters per line and there are 2 such lines, in his LCD each character is displayed in a 5x7 pixel matrix. A  register select (RS) pin that controls were in the LCDs memory you're writing data to A  Read/Write (R/W) pin that selects reading mode or writing mode  An Enable pin that enables writing to the registers  8 data pins (D0-D7) .  The states of these pins (high or low)are the bits that you're writing to a register when you write or the values you're reading when you read  there is also a display contrast pin (v0), power supply pins (+5v and Gnd ), and LED backlight (+a,-k) pins that you can use to power the LCD, control the display contrast and turn on and off the LED backlight, respectively the Liquid Crystal Library  <LiquidCrystal.h>  Interfacing 16x2 LCD with Arduino code   #include <LiquidCrystal.h> // includes the LiquidCrystal Library  Liq

Interfacing Ultrasonic Sensor with Arduino

Image
                          Ultrasonic Sensor The Ultrasonic sensor is an electric device that measures the distance of a target object by emitting ultrasonic sound waves and converts the reflected sound into an electrical signal. Ultrasonic waves travel faster than the speed of audible sound. Ultrasonic sensors have two main components ; 1.the transmitter (which emits the sound using piezoelectric crystals ) 2. the receiver (which encounters the sound after it has traveled from the target in order to calculate the distance between the sensor and the object, the sensor measures the time taken between the emission of sound by the transmitter to its contact with the receiver  Formula :-  D=1/2 T * C D = distance , T = time , C = speed of sound wave (~343 m/s) it has a total of four pins  VCC > 5V GND>GND TRIG>(transmitter pin)  ECHO>(receiver pin) Interfacing Ultrasonic Sensor with Arduino Circuit :  VCC > 5V GND>GND TRIG>11  ECHO>12 CODE : /* * Ultrasonic Sensor

Interfacing Servo Motor with Arduino

Image
                        SERVO MOTOR A Servo motor is an electrical device that can push or rotate an object with great precision. if you want to rotate an object at some specific angles or distance, then we use a servo motor .it is just made of a simple motor that runs through a servo mechanism  Signal pin (yellow or orange ) receives the PWM signal from an Arduino's pin the servo motor has 3 wires : Red                      - 5v Brown                  - GND orange or yellow  - Signal pin or PWM pin   Interfacing Servo Motor with Arduino Circuit : RED          - 5V BROWN    - GND ORANGE  -  9 Go to flie > Example > Servo > Knob  include <servo.h> after #include in below program #include Servo myservo; // create servo object to control a servo int potpin = 0; // analog pin used to connect the potentiometer int val; // variable to read the value from the analog pin void setup() { myservo.attach(9); // attaches the servo on pin 9 to the servo object } v