This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <ArduinoBLE.h> | |
| #include <Preferences.h> // Library for permanent storage | |
| Preferences prefs; | |
| BLEService weightService("19B10000-E8F2-537E-4F6C-D104768A1214"); // Custom UUID | |
| // Define Float Characteristics (Read and Write) | |
| BLEFloatCharacteristic startWeightChar("19B10002-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite); | |
| BLEFloatCharacteristic goalWeightChar("19B10003-E8F2-537E-4F6C-D104768A1214", BLERead | BLEWrite); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html> | |
| <body> | |
| <h1>Arduino Nano ESP32 Control</h1> | |
| <button onclick="connectBLE()">1. Connect to Arduino</button><br /><br /> | |
| <button onclick="sendData(1)">Turn LED ON</button> | |
| <button onclick="sendData(0)">Turn LED OFF</button> | |
| <p id="status">Status: Disconnected</p> | |
| <script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (kicad_pcb | |
| (version 20260206) | |
| (generator "pcbnew") | |
| (generator_version "10.0") | |
| (general | |
| (thickness 1.6) | |
| (legacy_teardrops no) | |
| ) | |
| (paper "A4") | |
| (layers |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (kicad_sch | |
| (version 20260306) | |
| (generator "eeschema") | |
| (generator_version "10.0") | |
| (uuid "0d35483a-0b12-46cc-b9f2-896fd6831779") | |
| (paper "A4") | |
| (title_block | |
| (date "2026-04-24") | |
| ) | |
| (lib_symbols |