Application Scenarios for the Stepless Speed Regulator Bluetooth Controller Solution:
This project is specifically developed for the association's electric scooters. Therefore, in my application scenario, it aims to better control the scooters, achieving speed adjustment and zeroing via encoder. Future versions could potentially control home appliances, such as air conditioner temperatures. However, my current capabilities are limited, so I can only offer a Bluetooth-compatible control solution. Those interested can use the HC05 slave device to adjust light brightness, as it transmits numerical information via serial port. There are 10 speed levels, each transmitted via the HC05 Bluetooth module.
Usage
Instructions (Bilibili Video): [Bluetooth Speed Regulator? - Bilibili]
Press the motor power button to perform a power-on self-test and Bluetooth detection. After the HC-05 self-test is complete, it enters the control system. Left-hand encoder rotation accelerates the scooter while simultaneously transmitting the updated value via Bluetooth. Right-hand rotation does the same. Pressing the center button resets the speed to 0 and simultaneously sends the current speed data to the HC-05 slave device.
The BOM and component descriptions
for this project include several special components, such as encoders, two types of FPC cables, and solderable switches, which are niche components and feel quite expensive. For FPCs, this project uses two types of cables: one connects the encoder's digital display to the PCB of the digital display driver (JLCIC has a sample shop on Taobao where you can get a sample for one yuan); the other type connects the driver board to the main controller (this can be purchased directly on Taobao). Additionally, you will need to prepare M2*16 screws and nuts. Detailed parameters for purchasing from Taobao will be placed in the BOM folder. Make sure to choose the 28mm encoder. The total project cost is approximately 100+ RMB. The
attached images demonstrate
the assembly effect:

[Image of the assembly].

The attachment includes source code, BOM, and 3D printed parts.