Posts

Showing posts from April, 2020

lcd i2c module with arduino

Hello guys today lets interface i2c lcd to arduino. It is vary easy to use i2c lcd module with arduino. you just need to connect only 4 wire in stand of tons of wire from lcd to arduino. here is circuit diagram I2C LCD PIN          ARDUINO PIN vcc ---                                5v GND ---                             GND SDA   ---                            A4 SCL ---                              A5 and it is done now what you need just download i2c lcd library and insert library to arduino download library   from  hare   here is the code for printing anything on display ....... --------------------------------------...

Basics of arduino

Arduino is vary famous microcontroller. vary easy to control it here is codes which i use in videos. for digital input output.. .. /*  * simple digital input output test code  *   * ER BROS    *   * https://www.youtube.com/channel/UCY6KA8oFk1s36fyPiFEmedQ  *   * http://erbros1.blogspot.com/?m=1  */ int val; // create a variable void setup() {   pinMode(13, OUTPUT); // define 13 number pin as output   pinMode(8, INPUT); // define 8 number pin as input   digitalWrite(13, LOW); // make 13 number pin by default low } void loop() {   val = digitalRead(8); // this function will chack either HIGH or LOW   if(val == HIGH) {    // use if esle statment     digitalWrite(13, HIGH);    }   else {     digitalWrite(13, LOW);   } } for analog inputs /*  * simple digital input output test code  *   *...

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