NodeMcu (ESP8266) WiFi Microcontroller
Note: When downloading files, click the circled icon at the top of the new page to retrieve the file.
Basics
Tutorial with links to setting up Arduino environment: Random Nerd Tutorials
Tutorial with links for Wifi Manager: Random Nerd Tutorials
Libraries
These libraries just need to be copied to the libraries folder of your arduino folder.
nRF24L01.zip : (3-03-2022) Little library to access an nRF24L01 radio module over SPI
HtmlHelper.zip : (3-14-2022) Little library to make it easier to create algorithmic web pages with buttons and input boxes
CanvasScript.zip : (3-14-2019) C++ class to make graphics on the fly. Useful for creating graphs
Projects
Remote Temperature Controller Server
Code: NodeMCU_RemoteTemp.zip (3-14-2022)
Uses HtmlHelper, CanvasScript and nRF24LF01 libraries listed above.
Schematic: RemoteTempServer.pdf
Parts: One NodeMCU controller, one nRF24L01 radio module, an opto isolator and two 5V relays with driver transistors (or add your own).
Remote Sensor project: See the PIC page:
Controlling the bedroom temperature with a furnace using a thermostat behind a closed was not working so this project senses the temperature with a remote sensor and radios the info down to the furnace to a NodeMCU. The NodeMCU provides a graph of temperature and humidity from two sensors and drives relays to turn on or force off the furnace. The existing thermostat can also turn on the heat but can be overridden by the remote sensors if it gets too hot.
Duck House Controller
Code: NodeMCU_DuckHouse.zip (2-17-2019) also uses HtmlHelper and CanvasScript libraries listed above.
Schematic: DuckHouseServer.pdf
Parts: One NodeMCU controller, two Microchip TC77 temperature sensors, one solid state relay inside an outlet box.
The ducks got a new house so they got a new WiFi connected controller to control a heat light based on the time and temperature. The controller also displays a web page for the interface plus it shows a 25 hour chart of the inside (yellow) and outside (blue) temperature along with the times that the heat light has been on (black line).
Temperature is sensed with two Microchip TC77 digital temperatures sensors. One is outside the house while the other is inside. These surface mount 8 pin sensors are mounted on little 10mm by 30mm PC proto boards along with a bypass cap. The boards were then painted with black rubber insulation paint to make them water proof. The little boards are needed to prevent the sensors from self heating. They are designed to measure a PC board temperature.