All Projects → TioRuben → Ttgo T Wristband

TioRuben / Ttgo T Wristband

Licence: mit
First steps with TTGO T-Wristband

Projects that are alternatives of or similar to Ttgo T Wristband

Irremoteesp8266
Infrared remote library for ESP8266/ESP32: send and receive infrared signals with multiple protocols. Based on: https://github.com/shirriff/Arduino-IRremote/
Stars: ✭ 1,964 (+3828%)
Mutual labels:  arduino, esp32, platformio
Arduino Esp32
Arduino core for the ESP32
Stars: ✭ 7,741 (+15382%)
Mutual labels:  arduino, esp32, platformio
Platformio Core
PlatformIO is a professional collaborative platform for embedded development 👽 A place where Developers and Teams have true Freedom! No more vendor lock-in!
Stars: ✭ 5,539 (+10978%)
Mutual labels:  arduino, esp32, platformio
Platform Espressif32
Espressif 32: development platform for PlatformIO
Stars: ✭ 333 (+566%)
Mutual labels:  arduino, esp32, platformio
Easybutton
Arduino library for debouncing momentary contact switches, detect press, release, long press and sequences with event definitions and callbacks.
Stars: ✭ 187 (+274%)
Mutual labels:  arduino, esp32, platformio
Openmqttgateway
MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility, SMS & LORA.
Stars: ✭ 2,413 (+4726%)
Mutual labels:  arduino, esp32, platformio
Guislice
GUIslice drag & drop embedded GUI in C for touchscreen TFT on Arduino, Raspberry Pi, ARM, ESP8266 / ESP32 / M5stack using Adafruit-GFX / TFT_eSPI / UTFT / SDL
Stars: ✭ 534 (+968%)
Mutual labels:  arduino, esp32, platformio
Esp32 Paxcounter
Wifi & BLE driven passenger flow metering with cheap ESP32 boards
Stars: ✭ 844 (+1588%)
Mutual labels:  arduino, esp32, platformio
Deviot
Sublime Text plugin for IoT development based in PlatformIO ecosystem (Arduino IDE)
Stars: ✭ 281 (+462%)
Mutual labels:  arduino, esp32, platformio
Platformio Atom Ide
PlatformIO IDE for Atom: The next generation integrated development environment for IoT
Stars: ✭ 475 (+850%)
Mutual labels:  arduino, esp32, platformio
Arduino Homekit Esp8266
Native Apple HomeKit accessory implementation for the ESP8266 Arduino core.
Stars: ✭ 545 (+990%)
Mutual labels:  arduino, esp32
Esphome Core
🚨 No longer used 🚨 - The C++ framework behind ESPHome
Stars: ✭ 545 (+990%)
Mutual labels:  arduino, esp32
Esp Dash
A blazing fast library to create a functional dashboard for ESP8266 and ESP32
Stars: ✭ 548 (+996%)
Mutual labels:  arduino, esp32
Async Mqtt Client
📶 An Arduino for ESP8266 asynchronous MQTT client implementation
Stars: ✭ 555 (+1010%)
Mutual labels:  arduino, esp32
Esp32 ble arduino
The library source for the ESP32 BLE support for Arduino.
Stars: ✭ 552 (+1004%)
Mutual labels:  arduino, esp32
Sonoff Homekit
Make your Sonoff Switch compatible with Apple Homekit! 🎉
Stars: ✭ 722 (+1344%)
Mutual labels:  arduino, esp32
Esp32 Ble Keyboard
Bluetooth LE Keyboard library for the ESP32 (Arduino IDE compatible)
Stars: ✭ 533 (+966%)
Mutual labels:  arduino, esp32
Arduinojson
📟 JSON library for Arduino and embedded C++. Simple and efficient.
Stars: ✭ 5,456 (+10812%)
Mutual labels:  arduino, esp32
Open Home Automation
Open Home Automation with Home Assistant, ESP8266/ESP32 and MQTT
Stars: ✭ 820 (+1540%)
Mutual labels:  arduino, esp32
Watchio
A programmable smart watch based on esp32-pico-d4
Stars: ✭ 25 (-50%)
Mutual labels:  arduino, esp32

PlatformIO

WIP: TTGO T-Wristband Example

First steps with TTGO T-Wristband. Product page.

Developed with PlatformIO

Includes a paged interface framework.

Disclaimer: Still work in progress. Currently I'm facing issues regarding battery duration (You can follow the issue in the manufacturer's repo). PRs are welcome.

User interface

  • Single touch: change page
  • Long touch: page action
  • Led: Charging status

Currently available pages

  • CET/CEST time, action: connect to wifi and update via NTP
  • UTC time, action: connect to wifi and update via NTP
  • Battery status. Action: OTA mode.
  • Compass, action: calibrate magnetometer.
  • Temperature: from the MPU9250 temp register.
  • OTA: long touch to enter OTA mode, to load firmware from PlatformIO.

Build and Flashing

First of all, install PlatformIO with your favourite IDE (i.e. VSCode). Follow this instructions.

Clone the repo

git clone https://github.com/TioRuben/TTGO-T-Wristband.git

Open cloned folder with your PlatformIO IDE (in the example, with VSCode)

cd TTGO-T-Wristband
code .

In the first flash, edit platformio.ini and comment all upload config (upload_protocol, upload_port, upload_flags):

Connect wristband via USB with the supplied daughter board. In Windows 10, drivers are installed automatically. I guess with other OS will be automatically installed too.

After plugging wristband, please select env variant esp32dev on VisualCode and build it, PlatformIO icon->env:esp32dev->Build:

Upload Button

then, in the same menu, plase select upload.

or build and upload it with the pio command line:

pio run -e esp32dev --target upload

PlatformIO will build and upload the binaries to the TTGO T-Wristband via USB.

OTA Upload

After first flashing, you can use OTA upload. First of all, go to battery or OTA page in the wristband. Then maintain the wristband button pressed. If your Wifi is still not configured, you will see an screen asking you to connect to the wristband AP. Connect to It and follow the instructions in the captive portal to configure wifi (more info: WifiManager).

Once configured, you will see the "waiting for ota" message in the screen. Find your wristband IP Address, in your platformio.ini please enter the IP address in the upload_port config:

[...]
[env:esp32devOTA]
platform = espressif32
board = esp32dev
framework = ${common_env_data.framework}
monitor_speed = ${common_env_data.monitor_speed}
upload_protocol = espota
upload_port = [YOUR_IP_ADDRESS]
[...]

It's supposed to work with hostnames, but sometimes fails.

Press the upload button in PlatformIO

Upload Button

or build and upload it with the pio command line:

pio run --target upload

The project will compile and upload to the wristband via WiFi (OTA).

Follow repo to get more updates

ToDo list

  • [x] UTC Time
  • [x] Port ADC calibration from Lilygo example
  • [x] Finish compass
  • [x] Add magnetometer calibration action
  • [x] Add MPU temperature measurement page
  • [x] Wake on motion interrupt. Wakes the wristband if big movements (ie when moving the arm to watch the time).
  • [ ] Refactor page framework to work with RTOS tasks
  • [ ] Charging animation
  • [ ] Prevent deep sleep when charging to feedback the charging status (via LED)
  • [ ] Bluetooth
  • [ ] "Next appointment" page
  • [ ] Change lcd brightness depending on day/night time
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].