Hackaday.io Hackaday.io
Projects
Discover Contests Courses Stack
More
Courses Tutorials Events Hackerspaces Hackaday.com Tindie Marketplace
Sign up Log in
Close
0%
0%

MicroPython on T-Wristband (Lilygo / TTGO)

Making all the features of T-Wristband work in MicroPython

aryaArya
Following Follow project
Liked Like project

Become a Hackaday.io member

Not a member? You should Sign up.

Already have an account? Log in.

Sign up with Github
Sign up with Twitter
OR
Forgot your password?

Just one more thing

To make the experience fit your profile, pick a username and tell us what interests you.

Pick an awesome username
hackaday.io/
Your profile's URL: hackaday.io/username. Max 25 alphanumeric characters.
Pick a few interests
Projects that share your interests
People that share your interests

We found and based on your interests.

Choose more interests.

OK, I'm done! Skip
Join this project
Public Chat
Similar projects worth following
2.6k views
4 comments
12 followers
11 likes
  • Description
  • Details
  • Files 0
  • Components 0
  • Logs 3
    • View all
  • Instructions 0
  • Discussion 4
View Gallery
Public Chat
2.6k
4
12
11

Team (1)

  • aryaArya

Join this project's team
  • Code
Software
ongoing project

This project was created on 04/05/2020 and last updated 6 years ago.

Description

I got a T-Wristband (based on ESP32) and I want to make it MicroPython-powered. Also, I might mod the hardware.Github: <a target="_blank" rel="noopener noreferrer" href="https://github.com/CRImier/micropython-ttgo-wristband">https://github.com/CRImier/micropython-ttgo-wristband</a>

Project Logs
Collapse

  • VBAT/VBUS/charging detection works

    Arya • 04/21/2020 at 00:08 • 0 comments

    The simplest of them all, of course. Relevant commit here: https://github.com/CRImier/micropython-ttgo-wristband/commit/1c18ad2c090ea79f16ca9d401313ea753f14438c The magic number multiplier for ADC-to-volts is 0.00169, which is kinda nice.

  • Display config

    Arya • 04/06/2020 at 20:05 • 0 comments

    The display setup parameters are available here:

    https://github.com/Bodmer/TFT_eSPI/blob/de787e669e007c5ddbe3f68ed264db5bb8a7c87c/User_Setups/Setup26_TTGO_T_Wristband.h

  • ESP32, MicroPython, TTP223 GPIOs and deepsleep

    Arya • 04/05/2020 at 19:29 • 0 comments

    When you refer to the T-Wristband schematic, you'll see that not only the touch button (GPIO33) is controlled by a separate TTP223 chip (and not ESP32 built-in touch peripheral), but the TTP223 chip is also powered from an ESP32 GPIO. This means you need to make the "TTP223 power" GPIO (25) into an output and make sure it's still an output during deepsleep. How to do this in MicroPython? Here's a minimal example:

    from machine import Pin, deepsleep
    from time import sleep
    import esp32
    
    touch_en_p = 25
    touch_p = 33
    
    touch = Pin(touch_p, Pin.IN)
    Pin(touch_en_p, Pin.OUT, Pin.PULL_HOLD, value=1)
    
    esp32.wake_on_ext0(pin=touch, level=esp32.WAKEUP_ANY_HIGH)
    print("Will sleep in 5 seconds")
    sleep(5)
    print("Going to sleep")
    deepsleep() 
    

    The PULL_HOLD and value=1 are what's responsible for the "make sure the TTP223 stays powered on" task.

View all 3 project logs

Enjoy this project?

Share

Discussions

Log In/Sign up to comment

Become a Hackaday.io Member

Create an account to leave a comment. Already have an account? Log In.

Sign up with Github
Sign up with X
OR
Kris wrote 09/06/2020 at 22:40 • point

Well, we have "regular" Bluetooth and BLE :-)
In the meanwhile I succeeded in getting the LSM9DS1 sensor up-and-running in python,and also the PCF8563 (RTC) on I2C address 0x51 (81)
(the LSM9DS1 doesn't use the default addresses, but 0x6B (107) and 0x1E (30))

Only thing missing is bluetooth, the rest is working ... (ubluetooth only does BLE)

Thank you for your effort, you where a big help in this :-)
I will post my code on github (next week, I'm on holidays for a week) and keep you informed.
By the time I'm back from holidays, I expect my liliygo T-watch 2020 in the mail :-)
- RTC is the same
- MTU is BMA423
- screen-resolution is 240x240 (ST7789V) with touchscreen (FT6236U)
- IR transmitter, vibration and speaker (MAX98357A as amplifier) built-in


From the looks of it, it looks like an apple watch, I'm sure my apple watch wrist-bands will fit on it :-)

  Are you sure? yes | no

Arya wrote 09/06/2020 at 22:59 • point

Very happy to see more progress on this project! *Please* do post code! People always say they will, but then don't ;-P I'd know, I'm always guilty of this myself!

If you have a "current" version of your code, you can just zip it up and send it to arsenijs at zerophone dot org, I'll clean it up from any leftover WiFi credentials and publish it on the existing GitHub repo, and then can add you as a contributor.

Yeah, the LSM IC is the next revision of the T-Wristband - my revision is earlier and has the MPU IC. Thank you, didn't know ESP32 actually does BT classic =)

  Are you sure? yes | no

Dan Maloney wrote 04/06/2020 at 18:43 • point

What's the wireless like on these things? WiFi? Bluetooth?

  Are you sure? yes | no

Arya wrote 04/06/2020 at 18:47 • point

It's just an ESP32-PICO-D4, which means there's WiFi and Bluetooth, no other RF stuff on the board. The antenna is a chip antenna, I didn't test the reception quality yet - currently trying to make the display work.

  Are you sure? yes | no

Similar Projects

Python development board based on ESP8266/ESP32/nRF52840, etc., for Python Development and Projects
Project Owner Contributor

MakePython

makerfabsMakerfabs

Getting the dongle going in ESPHome
Project Owner Contributor

ESPHome Integration for M5StickC PLUS2

dan-maloneyDan Maloney

Experimentation in AY-3-8910 / AY-3-8912 sound synthesis
Project Owner Contributor

Retrex Audio

xbeauxBeau

How to Make a Name Badge with Tricolor E-ink Display and esp32
Project Owner Contributor

How to Make a Name Badge with esp32

muzimuzi

Does this project spark your interest?

Become a member to follow this project and never miss any updates

Going up?

About Us Contact Hackaday.io Give Feedback Terms of Use Privacy Policy Hackaday API

© 2026 Hackaday

Yes, delete it Cancel

Report project as inappropriate

You are about to report the project "MicroPython on T-Wristband (Lilygo / TTGO)", please tell us the reason.

Send message

Your application has been submitted.

Remove Member

Are you sure you want to remove yourself as a member for this project?

Project owner will be notified upon removal.