Posts

radar using arduino and ultrasonic sensor

Image
                   Radar Using Arduino and Ultrasoic Sensor                     circuit : arduino code : // Includes the Servo library #include <Servo.h>.  // Defines Tirg and Echo pins of the Ultrasonic Sensor const int trigPin = 10; const int echoPin = 11; // Variables for the duration and the distance long duration; int distance; Servo myServo; // Creates a servo object for controlling the servo motor void setup() {   pinMode(trigPin, OUTPUT); // Sets the trigPin as an Output   pinMode(echoPin, INPUT); // Sets the echoPin as an Input   Serial.begin(9600);   myServo.attach(12); // Defines on which pin is the servo motor attached } void loop() {   // rotates the servo motor from 15 to 165 degrees   for(int i=15;i<=165;i++){     myServo.write(i);   delay(30);   distance = calculateDistance();// Calls a function for ...

circuit diagram and code for distance measuring using arduino

Image
   Distance measuring using Arduino UNO and Ultrasonic sensor  Arduino code :  /* HC-SR04 Ultrasonic Sensor with LCD dispaly HC-SR04 Ultrasonic Sensor   VCC to Arduino 5V   GND to Arduino GND   Echo to Arduino pin 12   Trig to Arduino pin 13 LCD Display (I used JHD162A)    VSS to Arduino GND   VCC to Arduino 5V   VEE to Arduino GND   RS to Arduino pin 11   R/W to Arduino pin 10   E to Arduino pin 9   DB4 to Arduino pin 2   DB5 to Arduino pin 3   DB6 to Arduino pin 4   DB7 to Arduino pin 5   LED+ to Arduino 5V   LED- to Arduino GND    Modified by Ahmed Djebali (June 1, 2015). */ #include <LiquidCrystal.h> //Load Liquid Crystal Library LiquidCrystal LCD(11,10,9,2,3,4,5);  //Create Liquid Crystal Object called LCD #define trigPin 13 //Sensor Echo pin connected to Arduino pin 13 #define echoPin 12 //Sensor Trip pin connected to Arduino pin 12 //Simple program just fo...

circuit and code for led chaser

Image
 LED CHASER USING ARDUINO  CODE :  /* A simple program to sequentially turn on and turn off 12 LEDs */  int LED1 = 13; int LED2 = 12; int LED3 = 11; int LED4 = 10; int LED5 = 9; int LED6 = 8; int LED7 = 7; int LED8 = 6; int LED9 = 5; int LED10 = 4; int LED11 = 3; int LED12 = 2; void setup() {    pinMode(LED1, OUTPUT);    pinMode(LED2, OUTPUT);    pinMode(LED3, OUTPUT);    pinMode(LED4, OUTPUT);    pinMode(LED5, OUTPUT);    pinMode(LED6, OUTPUT);    pinMode(LED7, OUTPUT);    pinMode(LED8, OUTPUT);    pinMode(LED9, OUTPUT);    pinMode(LED10, OUTPUT);    pinMode(LED11, OUTPUT);    pinMode(LED12, OUTPUT); } void loop() {   digitalWrite(LED1, HIGH);    // turn on LED1    delay(100);                  // wait for 200ms   digitalWrite(LED2, HIGH);    // turn on LED2   ...

Barters deal

Image
                              BARTERS DEAL           Link to download the    app                        https://play.google.com/store/apps/details?       id=com.barter_india                        Website link                                 https://bartersdeal.com/ Barters Deal provides you a one stop exchange, where you can  purchase or sell your different products or services. Apart from just  doing barter exchanges, you can take our membership plans for  doing bulk deals and enjoy premium services and barter coins for  many more benefits. We cover the top and most sought after 8 categories for your barter exchanges -  1. Constru...

Best attitude captions for girls

Image
  Best Attitude captions for Girls • If you stumble, make it part of the dance. • People laugh at me because I am different and I laugh because they all are same. • I meant to burn down the Earth and Graffiti the sky! • I am too busy working on my own grass to notice if yours is greener. • When someone treats you like an option, help them narrow their choices by removing yourself from the equation. It is that simple. • I am not anti-social. I am just anti-bullshit. • Don't like me? Cool, I don't wake up every day to impress you. • My attitude is like a mirror, only reflects what is presented in front of me. • You want to be at my level? Climb bitch! • Sometimes a Queen has to remind fools why she is a Queen. • When people ask what I do, I say whatever it takes. • In a room full of art, you would still stare at me. • I am strong, I am beautiful, I am enough. • No one can be just like me anyway. • Armed with coffee, contour and confidence. • I am no beauty queen; I am just beauti...

instagram caption for boys attitude

Image
       Instagram caption for boys attitude     §   “My Attitude Is Based On The Way You Treat Me.” §   “Born As Poor But Die Like A King.” §   “You Don’t Know About Me, You Only What I Allow You To Know.” §   “Smile Because Nobody Cares About Your Tears.” §   “I Am Silent Because I Hate Drama.” §   §   “Hell Is Empty And All The Devils Are Here.” §   “I Hate Two Faced People It’s Too Hard To Decide Which Face To Slap First.” §   “Before You Ask Someone Hates You, Ask Yourself Why You Even Give A Fuck.” §   “A Gentleman Is Simply A Patient Wolf.’” §   “Don’t Judge My Past, I Don’t Live There Anymore.” §   “Don’t Follow Your Dreams, Follow Me.” §   “When You Build In Silence, They Don’t Know What To Attack.“ §   “There Is Nothing To Create Just Manifest.” §   “I’m The Writer Of My Own Story And One Day The Whole World Will Read It.” §   “It’s ...

Best Instagram captions for selfies

Image
75+ Good Instagram Captions For Selfies Good Captions For Selfies “Some days start better than others.” “Today I will be as useless as the ‘g’ in lasagna.” “Life is like a box of chocolates; sometimes you just dig out the good center parts and leave all the undesirable rest to waste.” “There is no such thing as a perfect person, but someone’s heart can have a perfect intention.” “Throw sass around like confetti.” “Hella heart eyes for you.” “Decluttering my life like Marie Kondo.” “Life is simple. It’s just not easy.” “You can’t live a full life on an empty stomach.” “Get out there and live a little.” “I’m not high maintenance, you’re just low effort.” “Whatever is good for your soul, do that.” “The way you speak to yourself matters the most.” “You can regret a lot of things but you’ll never regret being kind.” “Being happy never goes out of style.” “A little contour and confidence.” “Smile a little more, regret a little less.” “Grow through what you go through.” “I don’t know where I’...