Posts

LEDs controle using IR remote and node mcu

Image
LEDs controle using IR remote and node mcu (Code for the project.)  #include <IRrecv.h> #define BLYNK_PRINT Serial #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h> uint16_t RECV_PIN = D5; IRrecv irrecv(RECV_PIN); decode_results results; int LED1 = D0;  int LED2 = D1;  int LED3 = D2;  int LED4 = D3;  int LED5 = D4;  int LED6 = D5;    int swval[] = {0,0,0,0,0,0,0}; char auth[] = "auth token"; // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "ssidname"; char pass[] = "paswward"; void setup() {  Serial.begin(9600);   Blynk.begin(auth, ssid, pass);     irrecv.enableIRIn();  // Start the receiver   pinMode(LED1, OUTPUT);   pinMode(LED2, OUTPUT);   pinMode(LED3, OUTPUT);   pinMode(LED4, OUTPUT);    pinMode(LED5, OUTPUT);   pinMode(LED6, OUTPUT);       digitalWrite(LED1, LOW);   digitalWrite(LED2, LOW);   digitalWrite(LED3, LOW);   digitalWrite(LED4, LOW);   digitalWrite(LED5, LOW);   digitalWrite

LEDs control using nodemcu and ir remote.

(Code for the project.)  #include <IRrecv.h> #define BLYNK_PRINT Serial #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h> uint16_t RECV_PIN = D5; IRrecv irrecv(RECV_PIN); decode_results results; int LED1 = D0;  int LED2 = D1;  int LED3 = D2;  int LED4 = D3;  int LED5 = D4;  int LED6 = D5;    int swval[] = {0,0,0,0,0,0,0}; char auth[] = "auth token"; // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "ssidname"; char pass[] = "paswward"; void setup() {  Serial.begin(9600);   Blynk.begin(auth, ssid, pass);     irrecv.enableIRIn();  // Start the receiver   pinMode(LED1, OUTPUT);   pinMode(LED2, OUTPUT);   pinMode(LED3, OUTPUT);   pinMode(LED4, OUTPUT);    pinMode(LED5, OUTPUT);   pinMode(LED6, OUTPUT);       digitalWrite(LED1, LOW);   digitalWrite(LED2, LOW);   digitalWrite(LED3, LOW);   digitalWrite(LED4, LOW);   digitalWrite(LED5, LOW);   digitalWrite(LED6, LOW);   } void relayswitch(int i,int

What is Diode?

Image

What is Ohm's law?

Image

what is resistor ?

NODE MCU HOME AUTOMATION.

  #include <IRrecv.h> #define BLYNK_PRINT Serial #include <ESP8266WiFi.h> #include <BlynkSimpleEsp8266.h> uint16_t RECV_PIN = D6; IRrecv irrecv(RECV_PIN); decode_results results; int LED1 = D0;  int LED2 = D1;  int LED3 = D2;  int LED4 = D3;  int LED5 = D4;  int LED6 = D5;    int swval[] = {0,0,0,0,0,0,0}; char auth[] = "Aoth token"; // Your WiFi credentials. // Set password to "" for open networks. char ssid[] = "ssid"; char pass[] = "passward"; void setup() {  Serial.begin(9600);   Blynk.begin(auth, ssid, pass);     irrecv.enableIRIn();  // Start the receiver   pinMode(LED1, OUTPUT);   pinMode(LED2, OUTPUT);   pinMode(LED3, OUTPUT);   pinMode(LED4, OUTPUT);    pinMode(LED5, OUTPUT);   pinMode(LED6, OUTPUT);       digitalWrite(LED1, LOW);   digitalWrite(LED2, LOW);   digitalWrite(LED3, LOW);   digitalWrite(LED4, LOW);   digitalWrite(LED5, LOW);   digitalWrite(LED6, LOW);   } void relayswitch(int i,int j){   if(swval[j]==1){    

Simple Light Dimmer and Ceiling fan Regulator Switch.

Image
  In this post we learn through two examples how to build a simple light dimmer switch circuit for controlling light intensity with pot, using the principle of triac phase chopping. What are Triac Dimmers We have already seen in many of my earlier articles how triacs are used in electronic circuits for switching AC loads. Triacs are basically devices which are able to switch ON a particular connected load in response to an external DC trigger. Though these may be incorporated for complete switch ON and complete switch OFF procedures of a load, the device is also popularly applied for regulating an AC, such that the output to the load may be reduced to any desired value. For example triacs are very commonly used dimmer switch applications where the circuit is designed to make the device switch in such a manner that it conducts only for a particular section of the AC sine wave and remains cut OFF during the remaining parts of the sine wave. This result is an corresponding output AC which