This repository contains a code snippet for creating a simple web server using NodeMCU (ESP8266) to log and display messages received from a 433MHz receiver.
- NodeMCU board (ESP8266-based)
- Arduino IDE or compatible development environment
ESP8266WiFi
libraryESP8266WebServer
libraryRCSwitch
library
NodeMCU | 433MHz Receiver |
---|---|
D2 | Data Pin |
3.3V | VCC |
GND | GND |
-
Clone or download this repository.
-
Open the
arduino-443mhz-web-ui.ino
file in the Arduino IDE. -
Install the required libraries:
ESP8266WiFi
: Install via Arduino Library Manager.ESP8266WebServer
: Install via Arduino Library Manager.RCSwitch
: Download the library from https://github.com/sui77/rc-switch and install manually.
-
Connect your NodeMCU board to your computer.
-
Set the Wi-Fi credentials:
- Update the
ssid
andpassword
variables in the code with your desired SSID and password for the Wi-Fi hotspot (default443
andadminadmin
)
- Update the
-
Upload the code to your NodeMCU board.
-
Open the Arduino IDE serial monitor to view the IP address assigned to the Wi-Fi hotspot.
-
Connect to the Wi-Fi hotspot using the provided SSID and password.
-
Open a web browser and enter the IP address displayed in the serial monitor.
-
The web page will display the received messages, including the decimal and binary representation of each value.
- If you want to change the pin for the 433MHz receiver, modify the
receiverPin
constant in the code. By default, it is set toD2
on the NodeMCU board.
This code is licensed under the MIT License.