A few years ago, we bought the #LEGO 10268 Vestas wind turbine for work. @zeratul2099 put together a circuit board with an ESP32, with which we can control the motor according to the local wind forecast. We also added some lights and other extras. Here are some photos: https://www.flickr.com/photos/188984025@N02/albums/72157714914817786
However, the e-paper display has been broken for more than a year now, the WiFi code stopped working even before that and the whole set was getting dusty.
So I took it back home, cleaned it and started to fix the code. I never programmed a micro computer and my C/C++ skills are rusty at best.
But with @zeratul2099's help, I quickly learned how this stuff works. It was a great feeling to light up an LED via a button. And it felt even better when I got the display to actually show something.
I am/was not a big fan of AI but thank's to @mitsuhiko's article about his usage of AI, I gave it a shot. An man, did it help me a lot. The documentation of many of the Arduino libs is not very good (compared to Python standards), but ChatGPT4 (via AI Chat) understood my questions and its code suggestions realy helped a lot.
Today, I spent a lot of time hand-crafting pixel graphics and prototypes for the new display layout. This was a lot of fun. Kind of. And the free version of https://pixenapp.com/ is quite nice. :)
I’m finally done with the new software. 873 ~~beautiful~~ lines of c/c++.
In forecast mode (FCS), the turbine rotates according to the predicted wind speed (it also shows the forecast for the next 6h). In timer mode, it rotates at full speed for ~1h.
It also displays the current temperature/humidity as measured by the white DHT sensor.
Most pixels are handcrafted and there are some "clever" solutions for a few problems.
But all in all, I'm so glad to be writing Python most of the time.
And of course, when everything was ready for the final integration test, the Lego motor broke down.
Disassembled everything and checked all cables, but it’s definitely the motor. The second one that broke, to be precise. Gud Lego kwalitee.