This commit is contained in:
2026-08-30 16:05:44 +07:00
parent 1934997896
commit 14bf4821df
4 changed files with 524 additions and 165 deletions
+45 -5
View File
@@ -115,6 +115,30 @@ Once motion is detected, it must persist for **3 consecutive cycles** before the
---
## OLED Display
The firmware supports a **0.96-inch SSD1306 128×64 I2C OLED display** connected to the ESP32-S3 as follows:
| OLED pin | ESP32-S3 pin |
|---|---|
| VCC | 3.3V |
| GND | GND |
| SDA | GPIO 6 |
| SCL | GPIO 7 |
The default I2C address is `0x3C`. The OLED uses the `Wire` interface initialized with `Wire.begin(6, 7)`.
Install these libraries using Arduino IDE's Library Manager:
- **Adafruit SSD1306** by Adafruit
- **Adafruit GFX Library** by Adafruit
The main display page shows the Wi-Fi status, RSSI, confidence, signal quality, baseline, variance, and total detections. A technical detail page is implemented in the sketch, but page rotation is currently disabled in `loop()`, so the main page is displayed continuously.
If the display does not initialize, verify the 3.3V power, common ground, SDA/SCL wiring, and the `OLED_ADDRESS` value in `WiFiSense.ino`.
---
## Real-Time Outputs
### Serial Plotter (Graphs)
@@ -225,8 +249,8 @@ To exceed 90% accuracy, you'd need:
3. **Install Required Libraries**
- `Tools > Manage Libraries`
- `WiFi.h` is included with ESP32 board support
- No external libraries needed! ✓
- `WiFi.h` and `Wire.h` are included with ESP32 board support
- Install **Adafruit SSD1306** and **Adafruit GFX Library**
4. **Configure Board Settings**
```
@@ -417,9 +441,24 @@ Not implemented but possible:
---
## License
## Source-Available License
This project is provided as-is for educational and personal use.
Copyright (c) 2026 Tran Thanh Tan / [TTAI Solutions Software](https://ttaisolutions.com/).
All rights reserved.
Permission is granted to view, download, install, and use this software for personal, educational, and internal organizational purposes.
Modification for personal or internal use is permitted.
Without prior written permission from the copyright holder, you may not:
1. Sell, resell, sublicense, or commercially distribute this software or any substantial portion of its source code.
2. Offer this software, whether modified or unmodified, as a commercial product, hosted service, or paid SaaS offering.
3. Bundle this software with hardware or other products for resale.
4. Remove or alter copyright notices or claim authorship of the original software.
Commercial licensing inquiries: https://ttaisolutions.com
---
@@ -433,7 +472,8 @@ This project is provided as-is for educational and personal use.
- [ ] LED responding to movement
- [ ] Placed in optimal position (3-5m from router)
- [ ] Waited 2-3 minutes for calibration
- [ ] Tested by walking past ESP8266
- [ ] Tested by walking past the ESP32-S3
- [ ] OLED displays the Wi-FiSense status page
---