JDolven / Replacing-HF_LPT120A-in-a-millheat-heater

Replacing HF_LPT120A in a millheat heater
GNU General Public License v3.0
12 stars 2 forks source link

mill-esp32 #5

Open redblue-pkt opened 2 months ago

redblue-pkt commented 2 months ago

Hello, do you happen to have a heater based on the ESP32 Mill WiFi Gen 3 system? I would like to consult with you. I’ve written a driver for the CMS79FT738, and the measurement and heater management are working. However, there is still something connected to GPIO 35. Maybe you could help? https://github.com/redblue-pkt/mill-esp32

JDolven commented 2 months ago

Hi, I don't currently own a Gen 3, but I'd be happy to help. Do you have any pictures of the board? Also, would you be able to trace the circuit on the board?

redblue-pkt commented 2 months ago

The photo is not mine, I found it online on some Norwegian forum. MillOvnGen3-MainPCB jpg 15a71f364792c955300189e6af610b28 CN1: PIN 4 -> GND PIN 6 -> TX PIN 8 -> RX This is my photo. IMG_20240921_180427 IMG_20240921_180603 In the logs, you can see the voltage on pin 35, where the value 1.014 * 220 gives the current voltage. But isn't this just a coincidence? Additionally, other values also appear in the logs.

Voltage AC Readings from ESP32 Logs


[18:23:18][D][sensor:094]: 'Mill Esp32 Energy Today': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:19][D][sensor:094]: 'Voltage AC': Sending state 0.15300 V with 3 decimals of accuracy
[18:23:20][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:21][D][sensor:094]: 'Voltage AC': Sending state 0.12000 V with 3 decimals of accuracy
[18:23:22][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:23][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:24][D][sensor:094]: 'Voltage AC': Sending state 0.13600 V with 3 decimals of accuracy
[18:23:25][D][sensor:094]: 'Voltage AC': Sending state 0.14900 V with 3 decimals of accuracy
[18:23:26][D][sensor:094]: 'Mill Esp32 Energy Current': Sending state 0.00000 A with 3 decimals of accuracy
[18:23:26][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:26][D][sensor:094]: 'Mill Esp32 Energy Yearly': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:27][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:27][D][sensor:094]: 'Mill Esp32 Energy Monthly': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:27][D][sensor:094]: 'Mill Esp32 Wi-Fi Channel': Sending state 6.00000 with 1 decimals of accuracy
[18:23:28][D][sensor:094]: 'Voltage AC': Sending state 0.15100 V with 3 decimals of accuracy
[18:23:28][D][sensor:094]: 'Mill Esp32 Energy Total': Sending state 0.00500 kWh with 3 decimals of accuracy
[18:23:28][D][sensor:094]: 'Mill Esp32 Energy Today': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:29][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:29][D][sensor:094]: 'Mill Esp32 Free Heap Size': Sending state 194.12109 KB with 1 decimals of accuracy
[18:23:30][D][sensor:094]: 'Voltage AC': Sending state 0.13800 V with 3 decimals of accuracy
[18:23:30][D][sensor:094]: 'Mill Esp32 Wi-Fi signal percentage': Sending state 100.00000 % with 1 decimals of accuracy
[18:23:31][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:32][D][sensor:094]: 'Mill Esp32 WiFi Signal': Sending state -52.00000 dBm with 0 decimals of accuracy
[18:23:32][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:33][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:34][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:35][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:36][D][sensor:094]: 'Mill Esp32 Energy Current': Sending state 0.00000 A with 3 decimals of accuracy
[18:23:36][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:36][D][sensor:094]: 'Mill Esp32 Energy Yearly': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:37][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:37][D][sensor:094]: 'Mill Esp32 Energy Monthly': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:38][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:38][D][sensor:094]: 'Mill Esp32 Energy Total': Sending state 0.00500 kWh with 3 decimals of accuracy
[18:23:38][D][sensor:094]: 'Mill Esp32 Energy Today': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:39][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:40][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:41][D][sensor:094]: 'Voltage AC': Sending state 0.14800 V with 3 decimals of accuracy
[18:23:42][D][text_sensor:064]: 'Mill Esp32 MAC address': Sending state '94:E6:86:6D:F3:F4'
[18:23:42][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:43][D][sensor:094]: 'Voltage AC': Sending state 0.16500 V with 3 decimals of accuracy
[18:23:44][D][sensor:094]: 'Voltage AC': Sending state 0.14700 V with 3 decimals of accuracy
[18:23:45][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:45][D][sensor:094]: 'Mill Esp32 CPU Frequency': Sending state 240.00000 MHz with 1 decimals of accuracy
[18:23:46][D][sensor:094]: 'Mill Esp32 Energy Current': Sending state 0.00000 A with 3 decimals of accuracy
[18:23:46][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:46][D][sensor:094]: 'Mill Esp32 Energy Yearly': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:47][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:47][D][sensor:094]: 'Mill Esp32 Energy Monthly': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:48][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:48][D][sensor:094]: 'Mill Esp32 Energy Total': Sending state 0.00500 kWh with 3 decimals of accuracy
[18:23:48][D][sensor:094]: 'Mill Esp32 Energy Today': Sending state 0.00000 kWh with 3 decimals of accuracy
[18:23:49][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:49][D][esp32.preferences:114]: Saving 1 preferences to flash...
[18:23:49][D][esp32.preferences:143]: Saving 1 preferences to flash: 0 cached, 1 written, 0 failed
[18:23:50][D][sensor:094]: 'Voltage AC': Sending state 0.11900 V with 3 decimals of accuracy
[18:23:51][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:52][D][sensor:094]: 'Voltage AC': Sending state 0.13000 V with 3 decimals of accuracy
[18:23:53][D][sensor:094]: 'Voltage AC': Sending state 1.01400 V with 3 decimals of accuracy
[18:23:54][D][sensor:094]: 'Voltage AC': Sending state 0.12200 V with 3 decimals of accuracy
[18:23:55][D][sensor:094]: 'Voltage AC': Sending state 0.13200 V with 3 decimals of accuracy
[18:23:56][D][sensor:094]: 'Mill Esp32 Energy Current': Sending state 0.00000 A with 3 decimals of accuracy
[18:23:56][D][sensor:094]: 'Voltage AC': Sending state 0.13000 V with 3 decimals of accuracy
[18:23:56][D][sensor:094]: 'Mill Esp32 Energy Yearly': Sending state 0.00000 kWh with 3 decimals of accuracy
JDolven commented 2 months ago

I'm not sure what it could be; it might just be a coincidence that 1.014 * 220 gives the current voltage. Will it always be 1.014, or does it change with fluctuations in the grid voltage?

It would make sense if it's used for voltage monitoring to get a more accurate power reading.

The best way to figure it out is by tracing it on the board and seeing which components you encounter along the way.

ESP32-wroom-32-pinout-mischianti-high-resolution