Skip to content

agraf/nodemcu-433gw

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

NodeMCU 433Mhz UDP gateway

The NodeMCU project is firmware that allows anyone to write very simple, yet powerful lua scripts to do simple embedded things on ESP8266 based modules.

They also have NodeMCU development kits which I really enjoy using when doing simple hardware hacks.

This project is about a lua script for such a device when used in combination with a 433 Mhz transmitter. Most transmissions on 433 Mhz are OOK encoded. With this script you can generate the actual data to be send on any "big" machine, submit the delay sequence via UDP and leave only the final data transmission to the ESP8266 module.

Hardware Setup

This is really easy. The 433Mhz transmitter only has 3 pins: GND, VIN, DATA. Connect them like this:

NodeMCU 433Mhz Transmitter
GND GND
VIN VIN
D6 DATA

Software Setup

  1. First you need to have a working NodeMCU setup. For that, build yourself a custom NodeMCU firmware.
  2. Upload that firmware to the device (using esptool.py for example)
  3. Modify init.lua to include your wifi SSID and password
  4. Upload init.lua to the NodeMCU device (I use ESPlorer for that usually)

Your gateway should be ready to go! The IP should be visible on the serial line. If you send packets such as

  400 800 400 400 400

to UDP port 1236 on that device, it will emit high for 400 us, low for 800 us, high for 400 us, low for 400 us, high for 400 us, then switch to low.

About

NodeMCU 433Mhz UDP gateway

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages