ESP8266 NodeMCU 1.0 + RF 433MHz transmitter + wireless outlet + Blynk

Hello, there is very fast and impresive project for home IoT. One night during normal browsing I find arduino library for controll 433MHz wireless outlet which is laying around for few years without usefull task. After few minutes I completed all need parts from drawer and put all together. Afer half of hour I had functional 2ch android controlled sockets. Good think to implement to project is Wifimanger library for easy SSID/pass change without reprogram ESP. In this fast project I omited it…



* Blynk is a platform with iOS and Android apps to control
* Arduino, Raspberry Pi and the likes over the Internet.
* You can easily build graphic interfaces for all your
* projects by simply dragging and dropping widgets.
*   Downloads, docs, tutorials:
*   Blynk community:  
*   Social networks:  
* Blynk library is licensed under MIT license
* This example code is in public domain.
* This example runs directly on ESP8266 chip.
* You need to install this for ESP8266 development:
* Change WiFi ssid, pass, and Blynk auth token to run 🙂

#define BLYNK_PRINT Serial    // Comment this out to disable prints and save space
#include <ESP8266WiFi.h>
#include <BlynkSimpleEsp8266.h>

//——– rcswitch——
#include <RCSwitch.h>
RCSwitch mySwitch = RCSwitch();

// You should get Auth Token in the Blynk App.
// Go to the Project Settings (nut icon).
char auth[] = „dlaskjdlaskjdlasdjjasld“; //insert here your token generated by Blynk

void setup()
Blynk.begin(auth, „Internet“, „Secretpass123“); //insert SSID…

mySwitch.enableTransmit(4);  //D2 on NodeMCU module


void loop()

BLYNK_WRITE(0) {  //virtual pin 0
mySwitch.switchOn(„01111“, „10000“);

mySwitch.switchOff(„01111“, „10000“);

mySwitch.switchOn(„01111“, „01000“);

mySwitch.switchOff(„01111“, „01000“);

One thought on “ESP8266 NodeMCU 1.0 + RF 433MHz transmitter + wireless outlet + Blynk”

Napsat komentář

Vaše emailová adresa nebude zveřejněna. Vyžadované informace jsou označeny *