Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will this work with the LilyGo T-embed? #1

Open
ajfriesen opened this issue Jan 21, 2025 · 1 comment
Open

Will this work with the LilyGo T-embed? #1

ajfriesen opened this issue Jan 21, 2025 · 1 comment

Comments

@ajfriesen
Copy link

Will this work with the LilyGo T-embed?

https://lilygo.cc/en-pl/products/t-embed

  • ESP32-S3
  • 1.9-inch IPS color TFT LCD (ST7789)
  • Rotary encoder + confirmation key in one
  • etc.
@skjdghsdjgsdj
Copy link
Owner

That is a pretty cool device and physically looks ideal for the BabyPod software: it has a small screen, rotary controller, Wi-Fi, and can take a battery. Being ESP32-S3 also helps a lot.

It won't work as a BabyPod out of the box but I think could, with some software modifications. The biggest tl;dr: you'll need to implement some hardware abstractions, most notably for the LCD (biggest issue), rotary encoder, speaker, and if it's capable, battery monitor.

  • It has a true speaker instead of a piezo, so the code for sounds would need to be abstracted. Note you don't need sounds for a BabyPod to work.
  • It has a proper LCD instead of a character LCD. This would be the biggest change: the UI code would need to be abstracted out, likely to emulate a character LCD for compatibility's sake. CircuitPython has displayio for this but the UI components need to be ported to use it.
  • It's unclear to me if it has a battery monitor ("fuel gauge"). It looks like it accepts a battery but I can't tell if its charge percentage can be monitored through CircuitPython. Like the piezo, this isn't essential but it's something you'd want.
  • It looks like it supports a microSD card ("TF card holder" in the specs). That's good because that's half of what you need for offline support. The other half is a real-time clock (RTC) that has a battery backup. I don't see this listed in the specs. So, if either the microSD card reader isn't compatible or it lacks an RTC, you'd have to use this online-only; i.e., you always need to be able to connect to Wi-Fi for it to work.
  • It looks like IO46 can serve as a power button. But, if there isn't actually one there, you need to wire in your own which doesn't look doable or use the rotary encoder as an interrupt; the latter requires software support and it must be capable of serving as a deep sleep interrupt.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants