A webpage controllable turntable project that I made during a free weekend. This repository contains the project code. Visit the MakerWorld page to get the 3D files.
- ULN2003 stepper driver
- 28byj-48 (5V) motor
- Wemos D1 mini (USB-C)
- 3mm LED
- LED current limiting resistor (220 ohm)
- 3x M3 threaded inserts
- 5x M3 bolts
- 2x M3 nuts
- 4x M2 bolts
- 4x M2 nuts
- Disk
- Body
- Bottom plate
The code is based on the arduino software platform. In order to compile and upload the code, it is recommended to install the ArduinoIDE and the ESP8266 board package.
Simple code example that just rotates the turntable.
The full version of the code. The turntable acts as a Wi-Fi access point, allowing you to contoll the turntable through a webinterface.
The last direction, speed, and stepping mode are stored in LittleFS, and loaded from flash after reboot/power cycle. To prevent excessive wear on the flash memory, settings are written after a short idle delay (750 ms). After changing controls, wait about 1 second before unplugging power so the latest state is saved.
The following additional libraries are used:
You can upload the code directly from the ArduinoIDE. To upload the webpage data you will need to install the LittleFS tool.
You can open the web interface to control the turntable as follows:
- Connect to the Wi-Fi hotspot with name
TURNTABLE - Open your browser and enter the following address
http://192.168.4.1 - You should now be in the webinterface to control the turntable
Make sure the flash size is set to: "4MB (FS:3MB OTA: ~512KB)"