Skip to main content

Posts

Showing posts from May, 2021

How To Make a 5V Relay Module At Home and Check using Arduino

How To Make a 5V Relay Module At Home and Check using Arduino One of the most useful things you can do with an  Arduino  is control higher voltage (120-240V) devices like fans, lights, heaters, and other household appliances. Since the Arduino operates at 5V it can’t control these higher voltage devices directly, but you can use a 5V relay to switch the 120-240V current and use the Arduino to control the relay. Pin details The relay module consists of six pins as a normally open pin, normally closed, common, signal, Vcc, and ground pins.  Signal Pin : It is used to control the relay. This pin can be active low or active high. In case of active low, the relay will activate when we apply an active low signal to the signal pin. On the contrary, in the case of an active high, the relay will activate when we apply an active high signal to the signal pin. But usually, these modules work on an active high signal. This signal will energize the relay coil to make contact with the common termina

How To Blink Led Using Arduino Nano

  How To Blink Led Using Arduino Nano View this video :  https://youtu.be/Rbdl2Ii10b0 Component: Arduino Nano  Led 5mm Resistor 330ohm Jumper wire Breadboard Code: // the setup function runs once when you press reset or power the board void setup() {   // initialize digital pin LED_BUILTIN as an output.   pinMode(LED_BUILTIN, OUTPUT); } // the loop function runs over and over again forever void loop() {   digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)   delay(1000);                       // wait for a second   digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW   delay(1000);                       // wait for a second }

"LED shifting using push-button and Arduino nano"

   "LED shifting using push-button and Arduino nano" This project uses an Arduino Nano in 3 Different colors Led and Push-Button to Shifting led on. This use to Decoration Lights and toys etc. you use to 3 to more Led this project. * Circuit Diagram : Link get Blowe View this video.     https://youtu.be/9uNiHqaziqs Code: int ledy=10; int ledw=9; int ledr=8; int buttonpin=2; int stateOfPin=0; int oldStateOfPin=0; int buttonState=0; void setup() {     pinMode(ledy,OUTPUT);     pinMode(ledw,OUTPUT);     pinMode(ledr,OUTPUT);     pinMode(buttonpin,INPUT); } void loop() {     buttonState = digitalRead(buttonpin);     if (buttonState == 1)     {         delay(50);         buttonState=digitalRead(buttonpin);         if(buttonState==0)         {             stateOfPin=oldStateOfPin+1;         }     }     else     {         delay(50);     }     switch(stateOfPin)     {         case 1:         digitalWrite(ledy,HIGH);         delay(200);         digitalWrite(ledy,LOW);         delay(20