2 longer M3 screws for the ESP blocker and LED support
a 2A USB power supply + micro USB cable
Some assembly hints:
connect the LED between a GND and a GPIO pin (e.g. 16), using the resistor in between.
connect the motor to another GND and a different GPIO (e.g. 18)
connect the switch between a GND and GPIO pin (e.g. 12)
those are the pins already defined in the code, which you can change of course
the code can be tweaked to enable an http server to replace the firmware and also to enable other test endpoints. One is especially useful to calibrate the positions of the servo motor once assembled: ie. curl -o- -X POST http://uselessbox.local/servo?pos=80 - you need to find the values to enter in the code for the resting position (arm under the lid), peeking position (arm partially elevated, opening the lid) and pushing position (enough to move the switch to its off position).
disconnect the ESP32 from your computer before using the motor
follow the last “assembly hints” point to calibrate the servo. Recompile and reflash the ESP32 once you have the correct values to put in lines 13-16 of UselessBox.ino
Can we get a wright up on this project, specifically the wiring. This is new ground for me but I really want to put it together. I have all the parts but cant understand how to flash the ESP32 correctly and get the 3 pin servo wired. Thanks in advance for the help and a great print. Printed perfectly!