Tutorial 16 - Recording and Replaying Robotic Arm Actions - ADA031-V5.0
Adeept · Uploaded · 4:01 · Watch on YouTube
Adeept walks through flashing a recording sketch to the ADA031-V5.0 arm controller. The user sets each pose with a potentiometer, saves it with a button press, and the arm then replays the stored sequence on its own.
Transcript
Captions as a .vtt fileEmbed with the transcript
- 0:04This lesson introduces the motion recording function of the robotic arm.
- 0:08It uses EEPROM to store pose data, so the robotic arm can automatically repeat preset movements.
- 0:16Program Upload Steps
- 0:17Connect the robotic arm controller to your computer with a USB cable, install the batteries, and turn on the power switch.
- 0:26If an ESP8266 module is installed, set the upload switch to position 0.
- 0:32Open the motion recording sample code, select the matching board model and serial port, then flash the program to the controller.
- 0:53Once uploaded successfully, the buzzer will beep to indicate the program has started.
- 0:58Now you can start recording motions.
- 1:03The program is preset with a maximum of 10 recording steps.
- 1:06For example, if you need to move an object from point A to point B, split the whole handling process into 10 pose steps.
- 1:16Adjust the robotic arm pose with the potentiometer for each step, then press the button on the controller.
- 1:22When you hear a single beep, the current pose is saved successfully, and the remaining step count on the OLED decreases by 1.
- 1:30Repeat this until the remaining steps reach 0.
- 1:34The robotic arm will automatically play back the recorded motion sequence.
- 1:39The device defaults to recording mode every time it powers on.
- 2:26If you have saved motions previously,
- 2:28long press the onboard button for 8 seconds to switch directly to working mode and play back your saved motions.
- 2:35To record a new set of motions, press the reset button to restart the program and return to recording mode.
- 3:00Code principle
- 3:02Setup function, initializes servos, OLED display and buzzer.
- 3:08Two beeps from the buzzer after initialization mean the program starts successfully.
- 3:14Loop function
- 3:14First check the remaining step count.
- 3:17If the remaining steps greater than 0, the system is in recording mode.
- 3:22It reads values from the potentiometer and drives the robotic arm to the corresponding pose.
- 3:29If the remaining steps equals 0, the system enters working mode and automatically plays back the saved motion sequence.
- 3:37The code detects button presses and hold duration.
- 3:40Short press, single beep, step count minus 1, save the current pose.
- 3:45Long press, repeated buzzer alerts, switch to working mode.
- 3:50Once you understand this recording sketch,
- 3:53you can adjust the maximum step count for more complex tasks,
- 3:57or develop your own custom features.
Discussão
Um e-mail quando alguém comentar. Sem precisar de conta.
A newsletter
Receba nossa newsletter gratuita com novos robôs, preços e notícias de robótica.