Posts

Showing posts from 2020

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 USBASP / AVR programmer

Image
Hello guys You will find circuit diagram, firmware , and other necessary information the link, which is given below.   here is main link of this project : https://www.fischl.de/usbasp/ Here is the diagram for basic microcontroller circuit : THANK YOU

GESTURE control with arduino

Image
 HELLO guys. what we need :- Arduino uno apds-9960 Breadboard  Jumper wires here is the connection :- here is the code link :- https://github.com/vivek-chauhan7/APDS9960 here is the library :-  https://github.com/sparkfun/APDS-9960_RGB_and_Gesture_Sensor

seven segment display with arduino

Image
Hi ---------------------------------------------------------  here is the circuit diagram ---------------------------------------------------------- HERE is the code for without library -------------------------------------------------------------------------------------- /*  * ER BROS LAB  */ #define a 6 #define b 7 #define c 8 #define d 9 #define e 10 #define f 11 #define g 12 #define dp 13 void setup() {   pinMode(a, OUTPUT);   pinMode(b, OUTPUT);   pinMode(c, OUTPUT);   pinMode(d, OUTPUT);   pinMode(e, OUTPUT);   pinMode(f, OUTPUT);   pinMode(g, OUTPUT);   pinMode(dp, OUTPUT); } void n0() {   digitalWrite(a,LOW);   digitalWrite(b,LOW);   digitalWrite(c,LOW);   digitalWrite(d,LOW);   digitalWrite(e,LOW);   digitalWrite(f,LOW);   digitalWrite(g,HIGH);   digitalWrite(dp,HIGH); } void n1() {   digitalWrite(...

timer switch

Image
Hi here is the simple and very useful project. parts list ATMEGA8 (you can use atmrga328p, or any other arduino) - 1 22pf capacitor -2 16MHz crystal - 1 10K resistor - 1 100E resistors -8 push button - 1 rotary encoder with push button - 1 4 digit seven segment display - 1 relay- 1 bc547 transistor - 2 buzzer - 1 zero pcb - 1 10uf capacitor - 1 100nf capacitor - 1 some wires and male or female header pins here is the  schematic diagram here is the code link https://github.com/vivek-chauhan7/Timer-Switch YOUTUBE LINK https://www.youtube.com/channel/UCY6KA8oFk1s36fyPiFEmedQ

PIR sensor with and without arduino

Image
Hello guys here you can see how interface PIR sensor with and without arduino board. use of this sensor is very easy , by connecting some wires as shown in diagram you can use this sensor. here is circuit diagram :- After connection as per diagram you need to upload this simple code :- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- #define pir 10 #define op 13 int val; void setup() {   pinMode(pir, INPUT);   pinMode(op, OUTPUT); } void loop() {   val = digitalRead(pir);   if(val == HIGH) {     digitalWrite(op, HIGH);   }   else {     digitalWrite(op, LOW);   } } -----------------------------------------------------------------------------------------------------------------------...

Simple Home Automation

Image
Hi This is the simplest home automation using HC-05 Bluetooth module. parts you need...              components                                                                                  buy link Arduino Uno (any arduino works)                                 https://amzn.to/2MUYONt Bluetooth module                                                           https://amzn.to/2AyfN5t Relay module                                ...

Bluetooth car

Image
Hello guys... To make Bluetooth robot you need         parts                                                                                     buy links Arduino Uno (any arduino works)                                 https://amzn.to/2MUYONt Bluetooth modules                                                        https://amzn.to/2AyfN5t l298N motor driver module                                            https://amzn....

Mosquito bat circuit

Image
hello guys..!! Today we will reverse engineering of mosquito bat. This mosquito bat can generate 2000v to 4000v so be careful. It can harm you. Do not touch circuit during operation.  here is the  circuit diagram here is how this circuit works:   The joule thief concept is used in this circuit, wherein only a single NPN transistor and a center-tapped transformer execute sustainable oscillation across the two winding of the transformer. This part if circuit converts the low direct voltage to high alternating voltage. There is high frequency transformer is used. Working frequency of transformer is around 1KHz to 200KHz. After that voltage multiplayer circuit is used. In our case it is voltage trippler circuit. So the output will be approx three times the peak input voltage.This is how mosquito bat circuit works.  here is the charging circuit diagram  :- THANK YOU for watching.

SIM800L GSM/GPRS Module interface with Arduino

Image
HELLO guys SIM800L gsm/gprs module is 2G gsm module. Working voltage range is 3.7v to 4.2v. Use 3.3 logic level. here is the pins of module :- What you need:----                     parts                                                                    buy links   Arduino uno                                                            https://amzn.to/3gPxePi    sim800l gsm/gprs module                                        https://amzn.to/3duMA9U breadboard      ...

AC DIMMER

Image
Hello friends.... here is the schematic diagram of simple basic ac dimmer. thank you for watching YouTube channel --- subscribe now https://www.youtube.com/channel/UCY6KA8oFk1s36fyPiFEmedQ/?sub_confirmation=1

Binary Clock

Image
Hello friends..... here is how you can read binary clock ... here you can see 1,2,4,8 assigned for column. in the picture you can see in HH section first column first led is on so it is one,second column all led is off so 0 SO HERE HOUR IS 10. Now in MM section two led is on so add the assigned numbers. in picture add (1+2=3) and add(1+2+4=7) SO MINUTE IS 37. Then second (SS)  is 49. what you need....                     components                                                                           buy link  Arduino pro mini (you can use any arduino)                              https://amzn.to/2X7O8Qh ftdi programmer       ...