Network Enabled LED Blinking With ESP8266
2018-01-20 - By Mahadev Sharma, Madhav Chadha, Rishabh Verma, Robert Elder
This article is a review of a capstone project completed by Mahadev Sharma, Madhav Chadha and Rishabh Verma. During the course of their project, they demonstrated a number of milestones including:
- Flashing the ESP8266 module with USB to serial TTL cable (without an arduino).
- The use of deep sleep mode with periodic wakeups to read temperature.
- Serving a small web page from the ESP8266.
- Network enabled temperature and humidity sensing using the ESP8266.
- Testing out ESP8266 modules from 2 different vendors.
Additional documentation, screenshots and source code can be found in their GitHub repo.
Materials
Two different ESP8266 modules were used and successfully flashed. One was purchased from Sparkfun for $6.95 USD and the other was from addicore for $3.45 USD. The team did not discover any issues with either ESP8266 module. The power module used was from this breadboard prototyping kit.
Here is an overhead view of the circuit that was used for flashing the module:
The serial TTL module that was used was the SparkFun USB UART Serial Breakout - CY7C65213.
One of their demos was to set up a simple web page that is served from the ESP8266 module that allows the user to select whether they want to turn a light on or off.
Results
The team found that one of the electrical contacts of the VIO on the serial TTL module was poor, so they used a paper clip to push the header against it for better electrical contact. The team found that this issue was the cause of the intermittent error 'A fatal error occurred: Failed to connect to ESP8266' when using the esptool.py.
The above web page is served from the ESP8266-1 module itself. The code for building the above web page is build directly on the ESP8266 module. The ESP module can be used to both connect to, and host a secure WiFi network.
|
|
Deep Sleep mode
The team did a proof of concept demonstration of using deep sleep mode. You can find their demo source code for deep sleep mode here. Precise measurements of current consumption were not performed, however the DC current draw appears to be around 1ma in deep sleep mode. The conclusion is that the ESP module would be capable to going into deep sleep for incredibly long times (weeks or months) on a small household battery.
Weather Sensing
The team also demonstrated the use of a simple weather tracking sensor. You can find their demo source code for weather tracking via the ESP8266 here. Below you will find a screenshot from the final prototype that is described in the repo:
Conclusion
The ESP8266 module is a very versatile low-power, low-cost module that can do a lot of impressive things! I found it particularly impressive how easy it is to serve a small web page from the module. The other important conclusion is that you can use the ESP module as a stand-alone processor without an Arduino in a production application.
How To Make A CPU - A Simple Picture Based Explanation
Published 2021-11-09 |
$1.00 CAD |
Example Uses Of Semiconductors - More Than Just CPUs
Published 2022-03-03 |
What Causes Bit Flips In Computer Memory?
Published 2023-02-08 |
Jeri Ellsworth & the Robot Uprising of 2038
Published 2018-10-11 |
CPUs Are Smaller Than You Think
Published 2021-11-09 |
Can You Create A Wireless Bridge With ESP8266 Modules?
Published 2018-09-02 |
Routing Packets Directly Between ESP8266 Modules
Published 2018-12-30 |
Join My Mailing List Privacy Policy |
Why Bother Subscribing?
|