iMicknl / LoctekMotion_IoT

Learn how to connect your Flexispot (LoctekMotion) desk to the internet. This repository contains a collection of scripts to get your started, combined with research and instructions.
MIT License
584 stars 59 forks source link

D1 mini seems to crash when power is supplied via Ethernet [HS13B-1, Flexispot E7] #64

Open j3mu5 opened 1 year ago

j3mu5 commented 1 year ago

Hello all,

Thanks to the great documentation, I was able to connect my table [HS13B-1, Flexispot E7] with HomeAssistant. However, the D1 mini seems to restart occasionally - it loses the connection with HomeAssistant (buttons are grey). After a few seconds, the D1 restarts and connects with HomeAssistant and works as desired again. This is also evident in the uptime (screenshot). I suspect that the power supply through the table is not stable. Is this already known to be a problem?

Screenshot_20230918-123848~2

If I do not connect the D1 mini to the table and power it via USB, it runs stably for 30,000 seconds (approx. 8 h).

iMicknl commented 1 year ago

@j3mu5 I am working on improved documentation at the moment, and most likely the recommendation will be to use an ESP32 chip. Most desks provide 5V, where a ESP8266 works with 3.3V. You could use a 5V to 3.3V stepdown in between if you use ESP8266. Additional benefit of using ESP32 is that it has hardware UART.

I haven't been able to fully test my statement above, but this is most likely the cause. I will test this and update the documentation.

j3mu5 commented 1 year ago

@iMicknl Thank you for the explanation. In the meantime, I tried to supply the power separately via USB and only establish the data connection via Ethernet. The table could be controlled, but unfortunately I observed crashes again.

Only when the d1 Mini is operated without connection to the table do I see no restarts.

Never mind - I follow your advice once the documentation is done! I happen to have ordered wemos esp32 recently, for espresense. One of these can then also used for the desk. Or is there another ESP 32 board that can be recommended?

Thanks for your work on this project! I'm really looking forward to the table moving to my height when HA recognises me at the desk! 🤩

iMicknl commented 1 year ago

The documentation in the README is a bit outdated, and there are some improvements to the YAML and C++ code to be made. I will integrate the work of all great contributors on GitHub + Discord and update the documentation accordingly.