edit: opened a separate thread for the CAN hardware stuff here: PCB design: ESP32 to CAN supporting ESPHome / Matter
hey there,
big thanks to roberreiter for sharing the project!
I never did anything with ESPHome before I found this thread and I have to admin, that I am amazed, with how few efforts I achieved good results (hardware engineer here, so I am used to stuff not working ).
Btw. my heatpump is a Tecalor (==Stiebel Eltron) TTF 07 cool.
Some findings about the hardware setup, I like to share:
Before creating the hardware protoype I analyzed the heatpumps CAN bus with a oscilloscope. As expexted it is a commonly used 5V CAN:
The MCP2515 eval kit everyone apparently everyone here is using, comes with a MCP2515 (Can Controller, 3V3 and 5V capable) and the transceiver TJA1050 IC. The TJA’s datasheet states that it requires min. 5V to work (someone here wrote that it worked, which confuses me)
Anyway, I replaced the TJA1050 with a SN65HVD230, which is a 3V3 compatible CAN transceiver. Now I could put everything together based on a common 3V3 power supply. Then I don’t have to worry about the 5V MISO line between MCP2515 and the ESP (yes, a current-limiting resistor also mitigates the risks of burning the ESP).
This is the output of the modul, NOT attached to the heatpump.
As the CAN bus is capable of being used simultaneously by 3V3 and 5V bus participants, this works very good. Unfortunately, I forgot to take some pictures of the mixed voltage bus.
I started to create a ‘general’ PCB for ESP to CAN bus, because in the long run, I don’t want to have some prototype with jumper wires attached to the expensive heatpump
As JLCPCB is my favorite PCB service provider for simple designs, I would have at least 3 spare PCBs. Is anybody interested? Did not calculate the exact costs, yet, but I estimate it around 20-30€ / PCB including all parts and assembly.
Also, it uses the 18V CAN bus power and does not require USB for power supply.
Finishing this long post:
Again, @roberreiter: thank you for the great project, I hope I can contribute by hardware (like that more than programming )
Could you maybe also share your automations on your github? (already left you a ‘star’)
~Martin