(Manual imposition tutorial: Why are there a bunch of scribbled lines on the PCB connected to the bottom GND for copper laying? Because you have to battle with jlc’s ordering system to make it believe that this is a version that can be free. If it is not free, please use this Use the idea to modify it yourself. Finally, use blue nozzle pliers to clamp the place where the two boards are connected and slowly grind it. Don't cut it directly. Finally, you can easily break it apart. Just find a cement place outside and polish it. )
For detailed video introduction, please see the link of station b: https://www.bilibili.com/video/BV1Uk4y1j7B3/
Stepper motor code driver: CW32 stepper motor and WS2812 driver: Take making a simple rotating booth as an example_weixin_46495443's blog -CSDN Blog
1. Main components and installation instructions.
The main control CW32F030C8T6 is available for free. The power supply is 1117 3.3 from a certain company worth 0.1 yuan each 3 years ago, and the Bluetooth module JDY31. The turntable is driven by a 5V stepper motor 28BYJ48 and ULN2003, and finally tied with a circle of WS2812 light strips worth 0.8 yuan. All circuits are placed on the bottom plate, and the stepper motor is fixed on the top plate. During installation, I used M3*22 stud length, and some nuts and M3 screws to fix the upper and lower plates (please choose according to the size of the 28BYJ48 stepper motor). The stepper motor is fixed on the top plate with screws, leaving a little space between it and the bottom plate for flying wires.
2. Instructions for use:
Computer Bluetooth pairing, open serial port assistant can directly connect to JDY31. The baud rate is changed to 9600, and the serial port changes the line to send English letters and numbers to realize the control function:
M0
M1
L0
L1
P0
P1
The motor rotates reversely
, the motor rotates forward,
later turns off the light
, later turns on the light
, the motor stops and
the motor starts.
You can also press SW4 on the base plate. Press the button to switch between "forward rotation-reverse rotation-stop rotation". By the way, if you press it for a longer time, it will further trigger the effect of turning off/on WS2812.
Only very light things can be put on it and turned around.
3. Precautions
1. When welding the socket of the stepper motor, be sure to determine the direction of the gap according to the line sequence of the motor. Reverse connection may cause trouble.
2. No need to solder the external crystal oscillator.
3. I encountered a situation where 1117 howled after the input and output patches 106 and 104 were connected in parallel. At that time, the output voltage would be pulled down and the Bluetooth module would not work properly. The solution is to remove the 106 on the 3.3V output side of the 1117 and replace it with an electrolytic capacitor of the same size and sufficient voltage, with a reserved position on the circuit board.
4. The Bluetooth serial port is not working properly. It keeps returning 0D 0A inexplicably when there is no operation. It may be that the two lines of the serial port sending and receiving are short-circuited. Please solder the PA8 and PA9 sides of the chip and the corresponding pins of the Bluetooth module again.
5. Currently, only a single touch switch is used to control the rotary table, and the remaining three switches are yet to be developed and utilized.
The attachment is the source code and the compiled hex code.