![IMGP7715.JPG]
![IMGP7730.JPG]
# Super Dial Motor Knob Screen
## Update Log
### **Important Update 2023/2/10:**
* **The main control board V1 is updated to V2 (beating board Do not use the V1 version), fix the unstable problem of ip5306, which causes the chip to restart when the motor rotates, and the power supply to restart when the esp32wifi function is turned on. Delete the capacitors on the USB pins (C10 and C11 of the V1 version) to make the USB work normally. The reason is that the 100nf capacitor is too large and the USB cannot be recognized normally. Just remove the capacitor**
* **Optimization item: Replace the charging chip to enable charging The current is limited to 400mA to improve the battery life. The ups circuit is designed to realize uninterrupted switching between USB and battery power supply, ensuring that USB2.0 can also be used normally**
* **The new code + firmware are also open sourced to Gitee**
* Hardware It should be the final version and no more changes will be made. The code will continue to draw the pie
2022/10/10: In the schematic diagram, usb5Vin passes through ip5036 and then outputs 5v, which will cause instability when a single USB power supply is used, causing motor control or Bluetooth to not work properly. For the time being, you can use USB and battery together. . The problem is being fixed and the board has not yet been released.
2022/11/11: It was discovered that before the program, the mt6701 magnetic encoder chip would have a delay when communicating with iic. The 8p line routing of the main control and motor driver boards was modified and changed into spi mode, and the magnetic encoder detection effect became better. There will be no sudden increase or decrease in intensity. (The program bin will be modified later, but the current iic program can be used on the new version of pcb)
2022/11/24 Modify the bin file, iic -> spi (the old version of the main control board does not support spi firmware), replace the force control function with double-click The shutdown spi firmware has solved the problem of sudden high and sudden low force, but the PCB version before 11.10 does not support spi communication
## 1.
The source of inspiration for the project introduction is the foreign smart konb. The original intention of the production is to make a desktop force feedback knob that can communicate with the computer to interact. The project started with the most important motor, and chose the large and cheap 3205 motor (the stock stock of Xiaomi gimbal motor). The structure is equal to the top and bottom, and a practical function Bluetooth hid (roulette function) is added, which can be used with the surface dial. Same functionality. Demonstration video ["SuperDial motor knob - force feedback, multi-function"](https://www.bilibili.com/video/BV1cG411c7QS)
## 2. Production instructions:
the hardware consists of esp32s3-n16r8, the screen is gc9a01, 3 pcbs , 4 printed parts and several structural parts. The details are in the attachment - [attachment gitee link](https://gitee.com/coll45/super-dial-motor-knob-screen)
pcb:
1. Screen board, copper pillars need to be welded in the middle (the sharp corners of the copper pillars should be aligned Line, you can use m2.5 screws to fix it first and then weld it, and then take out the screws), the 8p0.8 line is connected downward to the main control board through the copper pillar (passing through the center of the motor, the copper pillar is fixed on the printed part-adapter) Place an order Note when making the screen board: Do not use half-hole technology
! [pingmu.png]
2. Motor drive board, including magnetic encoder. Driver chip eg2133, magnetic encoder MT6701. After passing through the 8p line of the screen, the driver board is fixed on the printout-adapter with screws
! [qudong.png]
3. The main control board is fixed on the base, with the back facing up, and the battery on the bottom. If there is no battery, typec must require USB3.0, 5V1A or above, which can charge and power the knob separately. Do not solder the 2.54 pins on the main control board.
![zhukong.png]
## The structural description
printout can be printed through 3D Monkey, just upload the stl in the `3D printing and CNC model-by Chonger` folder, there are four printouts in total (select the shell cnc to use cnc step). There is no need to upload Easter eggs (this is a foreigner’s 3D structure), ignore the warning that the wall thickness is less than 0.8mm, and a set is expected to cost 20-30.
![Structural description.png]
## For code burning,
open `bin/flash_download_tool_3.9.2.exe` in the attachment folder, select esp32s3, and leave nothing else changed (super_dial_v2.bin is burned to the 0x0 location). Then connect to the main control board through usb-ttl, tx-rx rx-tx gnd -gnd. After the connection is completed, press and hold the boot button (sw1) and then connect the typec to light up the 3.3v indicator, then release the boot button and click start starts burning. After the burning is completed, unplug the typec and plug it in again to see the effect.
USB burning method: Open `bin/flash_download_tool_3.9.2.exe` in the attachment folder, select esp32s3, change loadmod to USB, and change nothing else (super_dial_v2.bin burning Record to the 0x0 position), first press and hold the boot button, and then connect the USB data cable. Click start to start burning. After the burning is completed, unplug the typec and plug it in again to see the effect.
OTA burning method (only if the program has been burned, but you want to update the latest firmware): Turn the knob to enter the setting interface (wifi interface, with a rotating circle) and then connect the esp32 wifi hotspot. After the connection is successful, open the browser and enter 192.168.4.1 to enter the interface and select the folder /bin/OTA/ota_v2.bin. Just click to upload. During the upload process, there will be a lag in circles, indicating normal upload. After the upload is completed, it will automatically restart.
## The source code
has been uploaded to gitee, and the development environment is arduino - esp32s3-n16r8 (there will be some errors when installing the arduino environment by yourself, which need to be solved by yourself. For example, the LVGL library needs to modify the configuration file)
## The original intention of the future plan (painting)
project is to do PC peripherals are all designed to develop PC functions. Capable experts can modify it themselves on the basis of open source.
1. ~~lvgl multi-level menu to achieve a variety of interface effects (but mainly for the operation of pc device win10 system) ~~Achieved on 2023/2/10
2. PC performance monitor
3. wifi webserver to implement image modification
## Communication Communicate with
816782369 (drive with CNC+SMT kit)
## Thanks and Quotes
I am very grateful to Mr. Chong Er and Lichuang for the Spark Plan, which allowed the project to be quickly iterated and implemented.