A toy gun target practice device created using an SG90 servo motor and an ESP32 controller.
The base can accommodate five servo motors and is perfectly compatible with a 256×256 printing platform. If the number of motors required is less, you can adjust it by enabling the cropping function in the slicing software.
I have attached the code for this project: By default, the system will randomly rotate a servo motor to 90 degrees after a random delay of between 1 and 5 seconds; then, after another random delay of between 1 and 5 seconds, it will rotate it back to 0 degrees.
This project is developed based on an ESP32C3 Super Mini equipped with five servo motors.
If the WiFi credentials are preconfigured, the device will automatically connect to the specified network and launch a user interface that allows you to customize various parameters, including the minimum and maximum rotation and turning time of the servo motor, the rotation angle, and the ability to enable or disable specific servo motor functions.
If you can't successfully connect to the WiFi network, the device will automatically turn on a hotspot. You can directly connect to the hotspot and make personalized settings.
The accessories I used include:
1 ESP32C3 Super Mini——affordable, with built-in WiFi functionality, capable of driving 5 servo motors, and compact in size
5 SG90 9g servo motors
10 M2×10 screws - used to firmly fix the target bracket on the servo arm
Several wires are used to power the entire system
One 5V power supply
モデルソース
