heartypatch icon indicating copy to clipboard operation
heartypatch copied to clipboard

Migration to ESPhome?

Open SamSmith17 opened this issue 11 months ago • 0 comments

Hi there, I have two heartypatches, and this repo seems defunct. That's just an observation, not a judgement, I know how it goes and appreciate all the work that went into this project.

I'm wondering if anyone knows how to port this project over to ESPhome for Home Assistant? It seems like this board is an ESP32 connected to a MAX30003 chip, basically like a stock ESP connected the to the Protocentral MAX30003 breakout board, just integrated into one board. ESPhome doesn't have a native component for the MAX30003 (yet) but I know that ESPhome configs can include C++ arduino code and libraries using the "Custom Component" template, and so I'm wondering if it might be possible to just use the ESP to push the R-R output values coming from the MAX30003 chip over wifi to HA so that they can be processed/filtered/interpreted elsewhere. In that case, I think the C++ code would only need to include the code and libraries for MAX chip and whatever signal processing may be necessary, and would not need to include the BLE or TCP functionality, which seems to be the majority of the code in this repo. I'm want to try it because these heartypatches I have aren't particularly useful to me running the stock firmware, but migrating to ESPhome is a bit above my paygrade, and so if anyone has input on how this might be done, or if there is a reason it absolutely cannot be done, I'd love to know. Is there a GPIO pin on the ESP I could set to just read the R-R output of the MAX30003?

Thanks for this project, these are neat little boards!

SamSmith17 avatar Jul 16 '23 00:07 SamSmith17