I bought a cheap ESP32 board on a whim a few weeks back – it has WiFi and Bluetooth so I thought I’d better test it out by making some kind of IoT

Make ESP32 Weather Clock In 30 minutes

submited by
Style Pass
2020-06-26 17:16:58

I bought a cheap ESP32 board on a whim a few weeks back – it has WiFi and Bluetooth so I thought I’d better test it out by making some kind of IoT device!

After updating my Arduino IDE I to work with the ESP32 I looked for an appropriate example from the Adafruit IO library to start me off, choosing the Servo sketch . This sketch updates the position of a servo based on a value passed to an Adafruit IO feed – so for example if the feed is passed the value “90” then the servo will move to a mid-range point, the upper and lower limits being 0 and 180.

After connecting my servo to the board (VIN, GND and Pin 2) I poked it through the centre of an old clock and secured it with blu-tack, making a “pointer” by gluing a wooden drink stirrer to a servo arm.

Next I uploaded the sketch to the board, having added in my wifi details and specified the name of the “feed” that would do the controlling.

Leave a Comment