This is minimalised version of older project Joystick Controller for MeArm ® Robot - Recording Coordinates. It does not require additional resistors or led diode. Just only Arduino UNO, 2 joysticks and 4 servos and meArm construction or similar one of course.
Allows 4 modes:
- Manual mode
- Recording of coordinates - indicated by permanent light of LED diode "L" on Arduino UNO board.
- Play mode - play once recorded movements
- Play repeatedly - plays recorded movements repeatedly - indicated by flashing of LED diode "L".
Press button on joistick 1 to Start/Stop of recording coordinates.
Press button on joistick 2 to Start/Stop of play coordinates.
Press and hold button for 2 seconds on joistick 2 to Start/Stop of play coordinates repeatedly.
If you have a MeArm joystick board, here is a version for you: MeArm 1.6.1 Robot Joystick Board Recording Movements (IR)
EXPANDED TECHNICAL DETAILS
Kinematic Recording
This project adds a "Learning" mode to the popular 4-DOF MeArm robotic arm.
- Manual Teaching: The user manually moves the arm into positions. The Arduino reads the resistive feedback from the Servo Potentiometers (analog input) and records these values into the internal EEPROM.
- Playback Loop: Once "saved," the Arduino reads the stored coordinates and moves the servos back to those exact positions in sequence.
Minimalized Optimization
- Memory Efficiency: By storing raw analog values (0-1023) as 16-bit integers, the Nano can store dozens of movements even with its small EEPROM.
- Speed Control: The code implements a simple easing function so that the playback movements are smooth and don't jerk the delicate acrylic structure of the arm.