Posts

Showing posts from March, 2019

arduino program for servo motor

Image
ARDUINO WITH SERVO MOTOR TOOLS-  1. arduino uno r3  2. servo motor ( 0 degree to 180 degree rotation)  3.jumping wires CODES-  #include <Servo.h>     // Header file for servo motor Servo m ;                   //  defined name of servo motor as m. void setup() {   m.attach(9) ;             // attach the data wire of servo to arduino 9th pin   } void loop() {   m.write(0);                //  servo motor will go to 0 degree   delay(10);   m.write(90);             //    servo motor will go to 90 degree   delay(10);   m.write(0);   delay(10);   m.write(180) ;           // servo motor will go to 180 degree   delay(10);   m.write(0);   }    link-...

arduino uno program for ir sensor

Image
ARDUINO UNO WITH IR SENSOR  Hardware for this project-  1. IR sensor 2. arduino uno r3 3. jumping wires 4. led (to show output)  All Coding will done in arduino software. CODING- void setup() { Serial.begin(9600);          // using serial monitor to check the outputs.Serial monitor is on top right of arduino  pinMode(6,INPUT);                            software.Initially the value will 0 of IR sensor.   pinMode(7,OUTPUT);                        If it detect object then value will be zero. when object will detect led   }                                                          will glow.   void loop() {  int a=digitalRead(6);  ...

SESSION 2- (IR SENSOR WITH 8051 MICRO-CONTROLLER)

Image
8051 MICRO-CONTROLLER   WITH IR SENSOR Tools required- * AT89C51 (8051 micro controller) *Bread board *Jumping wires *IR sensor *Led @details all given below in pictures PROGRAM-                                   Keil compiler using for coding for 8051.