WEBVTT

NOTE
Tutorial 16 - Recording and Replaying Robotic Arm Actions - ADA031-V5.0
Transcript by RoboGeeks: https://robogeeks.org/videos/AVIkimRJRgE

1
00:00:04.370 --> 00:00:08.850
This lesson introduces the motion recording function of the robotic arm.

2
00:00:08.850 --> 00:00:15.570
It uses EEPROM to store pose data, so the robotic arm can automatically repeat preset movements.

3
00:00:16.330 --> 00:00:17.850
Program Upload Steps

4
00:00:17.850 --> 00:00:26.070
Connect the robotic arm controller to your computer with a USB cable, install the batteries, and turn on the power switch.

5
00:00:26.730 --> 00:00:32.730
If an ESP8266 module is installed, set the upload switch to position 0.

6
00:00:32.730 --> 00:00:45.570
Open the motion recording sample code, select the matching board model and serial port, then flash the program to the controller.

7
00:00:53.090 --> 00:00:57.850
Once uploaded successfully, the buzzer will beep to indicate the program has started.

8
00:00:58.790 --> 00:01:02.450
Now you can start recording motions.

9
00:01:03.090 --> 00:01:06.690
The program is preset with a maximum of 10 recording steps.

10
00:01:06.690 --> 00:01:15.550
For example, if you need to move an object from point A to point B, split the whole handling process into 10 pose steps.

11
00:01:16.350 --> 00:01:21.970
Adjust the robotic arm pose with the potentiometer for each step, then press the button on the controller.

12
00:01:22.730 --> 00:01:30.470
When you hear a single beep, the current pose is saved successfully, and the remaining step count on the OLED decreases by 1.

13
00:01:30.470 --> 00:01:33.870
Repeat this until the remaining steps reach 0.

14
00:01:34.390 --> 00:01:38.730
The robotic arm will automatically play back the recorded motion sequence.

15
00:01:39.230 --> 00:02:25.660
The device defaults to recording mode every time it powers on.

16
00:02:26.160 --> 00:02:28.180
If you have saved motions previously,

17
00:02:28.760 --> 00:02:35.100
long press the onboard button for 8 seconds to switch directly to working mode and play back your saved motions.

18
00:02:35.100 --> 00:02:59.840
To record a new set of motions, press the reset button to restart the program and return to recording mode.

19
00:03:00.960 --> 00:03:02.200
Code principle

20
00:03:02.200 --> 00:03:08.280
Setup function, initializes servos, OLED display and buzzer.

21
00:03:08.820 --> 00:03:13.260
Two beeps from the buzzer after initialization mean the program starts successfully.

22
00:03:14.160 --> 00:03:14.900
Loop function

23
00:03:14.900 --> 00:03:17.380
First check the remaining step count.

24
00:03:17.380 --> 00:03:22.580
If the remaining steps greater than 0, the system is in recording mode.

25
00:03:22.580 --> 00:03:28.380
It reads values from the potentiometer and drives the robotic arm to the corresponding pose.

26
00:03:29.060 --> 00:03:36.480
If the remaining steps equals 0, the system enters working mode and automatically plays back the saved motion sequence.

27
00:03:37.220 --> 00:03:39.920
The code detects button presses and hold duration.

28
00:03:40.720 --> 00:03:45.400
Short press, single beep, step count minus 1, save the current pose.

29
00:03:45.400 --> 00:03:49.980
Long press, repeated buzzer alerts, switch to working mode.

30
00:03:50.680 --> 00:03:52.820
Once you understand this recording sketch,

31
00:03:53.180 --> 00:03:56.660
you can adjust the maximum step count for more complex tasks,

32
00:03:57.040 --> 00:03:59.060
or develop your own custom features.
