-
I'm learning about this project, and I'd like to understand why the hardware device needs both an ATMega 328 and an ESP8122. Do you think an ESP32 could do both the P1P2 serial decoding (that the ATMega currently does) and the WiFi interfacing? I assume that it would be simpler to maintain one code base, and also for firmware updates. Background: I'm considering getting a Daikin Altherma Geo 3 heatpump. I'd like to implement my own wireless room temperature sensor solution instead of Daikin's wired Madoka or ugly EKRTR wireless room sensor. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 10 replies
-
The reason for a 2-CPU solution is both history and preference. History as the bus decoding was developed on an Arduino Uno, and an ESP was added later to do the high-level decoding. And preference as a 2-CPU solution is architecturally preferred to have low-level hard-real-time code on a hard real-time ATmega, and to have high-level code on a soft-realtime ESP. As the hardwareserial library on the ESP also indicates that it is inherent not error-free, it may be difficult to achieve the same timing reliability on an ESP as on the ATmega. The current solution does not replace the Madoka, but supplements it, just like a (W)LAN adapter. |
Beta Was this translation helpful? Give feedback.
The reason for a 2-CPU solution is both history and preference. History as the bus decoding was developed on an Arduino Uno, and an ESP was added later to do the high-level decoding. And preference as a 2-CPU solution is architecturally preferred to have low-level hard-real-time code on a hard real-time ATmega, and to have high-level code on a soft-realtime ESP. As the hardwareserial library on the ESP also indicates that it is inherent not error-free, it may be difficult to achieve the same timing reliability on an ESP as on the ATmega.
The current solution does not replace the Madoka, but supplements it, just like a (W)LAN adapter.