ESPHome / platformIO project #35
Replies: 5 comments 10 replies
-
Hi Fabian, Thanks for your interesting query about integrating the SenseCAP Indicator with ESPHome. It's always exciting to see innovative ideas for our products. From my understanding and maintenance experience, integrating the SenseCAP indicator with ESPHome could be a bit complex. The indicator has two chips, ESP32S3 and RP2040. As per the Diagram below, the ESP32 is used for screen display and wireless communications (WiFi, Bluetooth, LoRa), while the RP2040 handles the SDCard and connects external devices through GPIO (UART, IIC, Analog). The ESP32 and RP2040 communicate via UART. In existing projects I've worked on, the RP2040 often connects to multiple IIC devices via an IIC expansion board. One of the Grove GPIO ports can be used in ADC mode, or alternatively, GPIO can be switched to UART mode for communication with other MCUs. The RP2040 then sends data to the ESP32 for further processing, including network connectivity, data requests, and screen display interactions (typically using LVGL as it's already ported: Low Code UI Design for SenseCAP Indicator with SquareLine). As for integrating with ESPHome (which I'm not overly familiar with but will try out, as I happen to have a XIAOS3 – haha), I'm curious about how you would handle the screen driver in this setup. Configuring WiFi and Bluetooth might be straightforward, but communicating with the RP2040 via UART and managing the screen display could pose challenges. How do you envision tackling these aspects in ESPHome? I'm quite intrigued by your approach, especially the use of pre-compiled firmware and configuration files. I'll definitely spend some time learning about this, as I have seen similar projects like SenseCapConfig on GitHub, where replacing configuration files and working directly with the server seems to be an interesting approach. |
Beta Was this translation helpful? Give feedback.
-
Hey @Love4yzp I asked the ESPHome community on their Discord, and fortunately, there is already work being done to support the display. Clydebarrow is working on it on branch st7701s. I invited him to join our discussion over here, and I will try to assist where I can. Some things I think are still open.
|
Beta Was this translation helpful? Give feedback.
-
Inspired by @Yoobe's project, the ESP32 request the display config file from the RP2040 upon power-up, and then reload the view, seems solid. |
Beta Was this translation helpful? Give feedback.
-
I have implemented drivers for the Indicator display and touchscreen in ESPHome. Sample config file is here: https://gist.github.com/clydebarrow/ef89e9a93bd44771483b9144ae9042a1 |
Beta Was this translation helpful? Give feedback.
-
It appears that in March 2024 Seeed announced that the SenseCAP Indicator natively works with ESPHome. However, I've been unable to find an example ESPHome configuration file for the SenseCAP Indicator anywhere that includes all of the functionality and uses the latest relevant ESPHome components. I was wondering if anyone has a fully working, current example config for using the SenseCAP Indicator with ESPHome? i.e. both as a touchscreen display, and as a source for the sensor data? |
Beta Was this translation helpful? Give feedback.
-
Hey,
Are there any plans for creating an ESPHome project for the Indicator?
I am currently exploring the capabilities of the SenseCap Indicator and was curious if a ESPHome implementation would be a: Possible, and b: A goal worth pursuing.
I'm already a bit familiar with the ESPHome ecosystem, and since the Indicator is using the esp-idf I was wondering what it would take to make it an esphome device.
The esphome integration seems to be a perfect match, making the integration easier, since the source can be compiled within home assistant, as well as providing a robust communication between HA and the device via a native API. The ability to create custom buttons and actions with just one configuration file would be wonderful.
I assume that the main hurdle would be to implement a custom display component for esphome, but there is already some work done: esphome-gui by lukasz-tuz.
Best
Fabian
Beta Was this translation helpful? Give feedback.
All reactions