Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/lily-osp/esp8266-sensor-data-distributed-system
Here is an example of how you could use MicroPython to set up a distributed system with three ESP8266 microcontrollers, where one microcontroller collects sensor data, another processes the data, and a third displays the results
https://github.com/lily-osp/esp8266-sensor-data-distributed-system
distributed-systems esp8266 micropython micropython-esp8266
Last synced: about 1 month ago
JSON representation
Here is an example of how you could use MicroPython to set up a distributed system with three ESP8266 microcontrollers, where one microcontroller collects sensor data, another processes the data, and a third displays the results
- Host: GitHub
- URL: https://github.com/lily-osp/esp8266-sensor-data-distributed-system
- Owner: lily-osp
- Created: 2022-12-23T11:41:22.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-13T06:35:10.000Z (about 1 year ago)
- Last Synced: 2024-08-21T15:31:05.131Z (4 months ago)
- Topics: distributed-systems, esp8266, micropython, micropython-esp8266
- Language: Python
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP8266 Sensor Data Distributed System
This project demonstrates the implementation of a distributed system using three ESP8266 microcontrollers. The setup involves one microcontroller collecting sensor data, another processing the data, and a third displaying the processed results on an OLED display.
## System Components
To replicate this distributed system, you will need the following components:
- Three ESP8266 microcontrollers
- USB-to-serial adapter (e.g., FTDI adapter)
- Sensor (e.g., temperature sensor)
- OLED display## Hardware Connections
1. **Sensor Connection:**
- Connect the sensor to the ADC (analog-to-digital converter) of one ESP8266 microcontroller.2. **OLED Display Connection:**
- Connect the OLED display to the I2C bus of another ESP8266 microcontroller.3. **USB-to-Serial Connection:**
- Connect all three ESP8266 microcontrollers to your computer using the USB-to-serial adapter.## Usage
Follow these detailed steps to use the distributed system effectively:
1. **Burn MicroPython Firmware:**
- Utilize the esptool utility to burn the MicroPython firmware to each ESP8266 microcontroller.
- Refer to the [MicroPython documentation](https://micropython.org/download#esp8266) for firmware burning instructions.2. **Upload Code:**
- Use a tool like ampy to upload the code for each microcontroller.
- Check the [ampy documentation](https://github.com/pycampers/ampy) for code uploading guidance.3. **Configure Display Microcontroller:**
- Ensure that the IP address and port of the HTTP server in the code for the display microcontroller match the server microcontroller's IP address and port.4. **Power On:**
- Power on all three ESP8266 microcontrollers and the OLED display.
- The OLED display should start showing the processed value of the sensor data.## Customization Opportunities
Feel free to customize the code to meet specific needs:
- Modify communication protocols.
- Add extra processing steps.
- Adjust display output according to requirements.## Note
This distributed system serves as a foundation for more complex IoT projects. Explore and adapt the codebase to suit your unique applications and extend the functionalities of the system.