Lesson 5 Robotic Arm Comprehensive Function
Lesson 5 Robotic Arm Comprehensive Function
OLED screen 1
1
moving contact and the fixed contact. Potentiometer can be used to adjust the
voltage and current.
Our course uses a rotary potentiometer. Its structure is as shown in the
figure below. By rotating the knob, the position of pin 2 is changed, thereby
changing the resistance value from pin 2 to both ends. In the experiment.
Connect pin 1 and pin 3 to the GND and 5V of the development board respectively.
And then read the voltage divided by the pin 2 of the potentiometer through the
analog input pin A0, the range is between 0V and 5V. The analog input function of
Arduino has 10-bit precision, that is, it can convert the voltage signal of 0 to 5V
into an integer form of 0 to 1024.
2
5.4 How to use the comprehensive function
1. Before performing the following steps, make sure that the "block_py.ino"
program has been uploaded. (If not, please upload the "block_py.ino" program)
http://www.adeept.com/gwblock/?hd_mo=ADA031
3.1 After successfully connecting to the GwBlock graphical editor, you need to
click the drop-down button in the upper right corner, as shown bellow:
3
3.2 Then click Import project file to import the external project file. After opening
it, a blank page will appear. You need to make a modification in the lower
right corner and select All Files, as shown below:
3.3 Then the folder will be displayed and find the user folder
“Adeept_Robotic_Arm_Kit_for_Arduino-V4.0\Code\GwBlock”. Open the
GwBlock folder and select the "5_Comprehensive function.gwblock" file. This
file is our graphical code program for this lesson. Click "Open" in the lower
right corner.
4
3.4 Click OK.
5
5.5 Run
Click the button in the upper right corner, after successfully running the
6
program, you can use a full robotic arm function.
Note: Do not turn on the power of the arm after downloading the program. Adjust the
four potentiometers on the driver board to the center first, as shown below:
You can rotate the potentiometers on the driver board to control the arm to clamp and
carry objects.
7
8
Servo4
Servo5
Servo3
Servo2
Servo1
9
▲The potentiometer A6 on the driver board controls the movement of Servo 5,
range from 35 to 90 degrees.
【Note】:
1. Potentiometer control mode is not very precise, there will be some delay,
2. The torque of the servo is small, and can only clamp and carry relatively
light objects.
10