https://github.com/wwwx3/esp32_iot
This repository contains micropython code for esp32.
https://github.com/wwwx3/esp32_iot
esp32 micropython micropython-esp32
Last synced: 2 months ago
JSON representation
This repository contains micropython code for esp32.
- Host: GitHub
- URL: https://github.com/wwwx3/esp32_iot
- Owner: wwwx3
- Created: 2024-11-23T12:42:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-19T08:34:49.000Z (over 1 year ago)
- Last Synced: 2025-03-28T15:25:03.855Z (about 1 year ago)
- Topics: esp32, micropython, micropython-esp32
- Language: Python
- Homepage:
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ESP32 IoT Lab — MicroPython Modules
## Overview
This repository is my collection of **ESP32 IoT experiments** written in **MicroPython**.
It serves as my hands-on practice for building **real cyber-physical systems**: sensors → microcontroller → network/cloud → user feedback.
Each module is small and each counts as basic foundations of which I will later reuse in larger robotics and AI projects (e.x., monitoring, automation, embedded sensing, and secure device communication).
---
## What’s Inside
### Hardware I/O (Basics)
- **Button** — digital input handling, debouncing (basic)
- **Buzzer** — PWM tone generation + alerts
- **NeoPixel** — addressable RGB LED patterns and status indication
### Sensors
- **DHT11** — temperature/humidity sensing and periodic sampling
- **LDR (Light Sensor)** — light intensity measurement for environment awareness
### Display / UI
- **SSD1306 OLED** — real-time sensor display, status pages, debugging output
### Networking & IoT Communication
- **Network (Wi-Fi)** — connect/reconnect logic, IP checks
- **MQTT** — publish/subscribe messaging for real-time IoT control
- **NETPIE** — IoT platform communication (publish/subscribe & device status)
### Data Logging / Cloud
- **Google Sheets Logging** — send sensor data to a Google Sheet for storage & visualization
(useful for long-term monitoring and simple analytics)
---
## Getting Started
### Requirements
- ESP32 board
- MicroPython firmware installed
- Thonny / uPyCraft / ampy / rshell (any tool is fine)
### Quick Setup
1. Flash MicroPython to ESP32
2. Upload the scripts to your board
3. Edit your Wi-Fi and keys in the config section (see below)
---
## Example Use Cases
* **Home monitoring**: DHT11 + OLED + Google Sheets logging
* **Smart alerts**: LDR trigger → NeoPixel warning + buzzer
* **Remote control**: MQTT subscribe → control NeoPixel / buzzer
* **IoT dashboard prototype**: NETPIE → live sensor updates
---
I built these modules as part of my long-term focus in:
* **embedded systems**
* **IoT communication**
* **sensor data pipelines**
* **cyber-physical system thinking**
* preparing for robotics and AI systems where reliable sensing + networking matters
---
## Notes
* Full dataset logging (Google Sheets / platforms) depends on API keys and network stability.
* Some scripts are intentionally kept minimal as “foundation blocks” for larger systems.
---
## License
Student project / educational use.
---