Posts
LEDs controle using IR remote and node mcu
- Get link
- X
- Other Apps
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); digitalWr...
LEDs control using nodemcu and ir remote.
- Get link
- X
- Other Apps
(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, L...