-
Notifications
You must be signed in to change notification settings - Fork 32
/
instruction.txt
48 lines (32 loc) · 3.53 KB
/
instruction.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
First of all, the program should be done in the SD card, including writing the Raspberry Pi system,
downloading and installing the Rasptank program.
Pay attention to the case sensitivity during process of git clone . The specific operation process
is in the document and manual. It will automatically start up at boot after the program is successfully installed.
You need to connect the driver board and the Raspberry Pi, and before turn it on, connect the servo with the driver board.
Wait until the servo rotates to specified position to assemble.
The servo is 20 teeth and will have an error of less than 9° during the installation process, which is normal.
---------------------------------------------------------------------------------------------------------------------------
The .py program in the folder client is the program required on the PC.
The .py program in the folder server is the program required on the robot.
This instruction focuses on the programs in the folder server. When you encounter problems, you can refer to this description to solve the problem.
1.What should I do if the robot does not automatically run the program when I turn it on?
First cause: the program is not installed completely, probably because the server connection of the dependent libraries needed is unstable, resulting in incomplete download of the dependent libraries.The full version of the program needs to install the appropriate dependencies to run properly.
Second cause: Linux is case sensitive.The case sensitvity of the name when you clone from Github is different from the one of the autostart file of the default path.
Solution: try the beta program - a program named serverTest.py in the folder server.
If you need the beta program to run automatically every time you boot, execute autorun.py - enter "2" to select the autorun beta - enter.
If you need to change to the full version of the autorun program every time you boot, execute autorun.py - enter "1" to select the full version of autorun - enter.
2.What should I do if the servo is moving in the opposite direction?
Cause: the servos were produced in different batches, the moving direction of them may be different.
Solution: We have reserved an interface for adjusting the direction of the servo in the program, which makes it much more easier to debug.
All motion-related code is written in the program server/move.py.
Enter the following command to open (note that it is not to execute) move.py and edit:
sudo nano (path)/move.py
(The path varies depending on the product you bought. Take RaspClaws as an example. The path of move.py is //home/pi/adeept_raspclaws/server/move.py)
After opening move.py, change the value of Set_Direction to 0 (the default is 1), then press ctrl+x to exit, press Y to save change, and press Enter to confirm.
3. What should I do if the it fails to realize good self-stabilization?
Cause: The IPD controler is used for self-stabilization. You need to input the appropriate PID parameters to achieve perfect stabilization. The PID parameters of each robot are different.
Solution: If the reaction is slow, you can increase the P value appropriately (the line75 of move.py). If the reaction is too fast (or swing back and forth), you can reduce the P value appropriately.
If the reaction speed is normal but there is overshoot, you need to increase the I value appropriately.
The D value is differential and usually does not need to be changed for this product.
The fun of creation lies in solving problems
If you have any other questions, please e-mail us at support@adeept.com