CBrosius / luxtronik_v1

Luxtronik_v1 ESPHome Custom Sensor
MIT License
3 stars 1 forks source link

RX/TX pins for D1 mini #13

Open jensrossbach opened 1 year ago

jensrossbach commented 1 year ago

Is it correct to use pins D5 and D6 on D1 mini for RX/TX? Shouldn't it be the RX and TX pins (UART0) instead?

CBrosius commented 1 year ago

Is it correct to use pins D5 and D6 on D1 mini for RX/TX? Shouldn't it be the RX and TX pins (UART0) instead?

If I remember correct, I wanted to use UART0 for USB Debugging while connected to the heatpump at the same time. This was before I switched to ESPHome. I never tested other Pins, after the communication was working.

CBrosius commented 1 year ago

https://forum.arduino.cc/t/wemos-d1-mini-pro-and-serial/857849

This describes what I mean.

jensrossbach commented 1 year ago

As far as I understand, using pins D5 and D6 means software UART. From your tests, is the communication with the heat pump reliable enough with software UART?

CBrosius commented 1 year ago

When I was using the D1Mini for the monitoring, I always have had read-errors here and there that resulted in wrong peak-values. Maybe this was related to SoftUART, but I don´t know for sure. Since I switched to the ESP32 D1 Mini, this was never an issue again.

jensrossbach commented 1 year ago

Ok, I will make some tests with different pins as soon as I have bought a serial cable.

By the way, have you ever tested the firmware without a heat pump connected? I made a quick test on a D1 mini without anything connected to the RS232 port and I get a boot loop (followed by a boot in safe mode) due to an exception during boot phase.

CBrosius commented 1 year ago

Good question. I don´t think so. I have always had the RS232toTTL-Adapter connected. Not the heatpump, but the adapter.