Posts

Showing posts with the label electronics project

all about Ultrasonic sensor

Image
 Hi friends. here is the diagram :-  here is code :- ---------------------------------------------------- /*  * Distance measurement using HC SR04 ultrasonic sensor and i2c 16x2 lcd  * ER BROS LAB  */ #include <Wire.h> #include <LiquidCrystal_I2C.h> #define trigger 12 #define echo 13 LiquidCrystal_I2C lcd(0x27, 16, 2); float t = 0, distance = 0; void setup() {   lcd.begin();   lcd.backlight();   delay(100);   pinMode(trigger, OUTPUT);   pinMode(echo, INPUT);   lcd.print("Ultra sonic");   lcd.setCursor(0, 1);   lcd.print("Distance Meter");   delay(2000);   lcd.clear();   lcd.print("ER BROS LAB");   delay(2000); } void loop() {   lcd.clear();   digitalWrite(trigger, LOW);   delayMicroseconds(2);   digitalWrite(trigger, HIGH);   delayMicroseconds(10);   digitalWrite(trigger, LOW);   delayMicroseconds(2);   t = pulseIn(echo, HIGH);   distance = t * ...

DIY PWM generator

Image
This PWM generator is based on NE555 timer ic  Frequency range is 1Hz to 200kHz . 😍   voltage range is ~ 5v to 16v  here is the part list NE555 ic --  1 ic stand --  1 10K trimmer POT --  2 jumper --  1 male header pin -- 4 100uF capacitor -- 2 100nF capacitor -- 2 1uF capacitor --  1 1nF capacitor -- 1 1K resistor -- 1 LED -- 1  and here we go............... schematic diagram here is actual circuit  

Arduino Alarm Clock with Temperature sensor

Image
Hello Friends,                  If you make alarm clock please read it carefully because of some important things you have to follow for your device safety. CIRCUIT DIAGRAM for library click  here SOURCE CODE  -------------------------------------------------------------------------------------------------------------------------- #include <Wire.h> #include <LiquidCrystal_I2C.h> #include <DS1302.h> LiquidCrystal_I2C lcd(0x3F, 16, 2); int Hour; int Min; int pset = 8; // pushbutton for setting alarm int phour = 9; // pushbutton for hour int pmin = 10; // pushbutton for minutes int pexit = 11; // pushbutton for exit of set alarm int buzzer = 6; int h; int m; int buttonforset = 0; // pushbutton state for setting alarm int buttonforhour = 0; // pushbutton state for hour int buttonformin = 0;// pushbutton state for minutes int buttonforexit = 0; // pushbutton sta...