16. Wildcard week¶
For this I’ve been using the Niryo One 6 axis Robotic Arm.
- 6 axis
- 3 Motors
- 3 Servo motors
I’ve used Niryo One to make a pick and place robot.
The working area has a grid of 5x5 spaces and I’ve used a coordinate system to name the poses in the learning system of Niryo, starting from (0,0) Right bottom corner to (4,4) top left corner of the grid.
The idea its use this to move cubetes using in spectroscopy.
- Insert feet
- Attach clamp
- Connect clamp terminals with DuPont wires
The parts of the Niryo One are 3D printed and some of the pieces don’t fit exactly in place.
The clamps need to be enabled under Niryo Studio.
- Select Standar Clamps.
- Click Enable.
- Test the clamps.
Following the Guide from Niryo:
- Download the Niryo One Studio Program
- Extract the files.
- Make the program File executable using:
chmod +x NiryoOneStudio
- Execute the program by doing:
- Power on by pulsing the button.
- Wait until the Power LED indicator turns Blue. This means the arm its on Hotspot mode.
- Using Niryo One Studio search for the Niryo One hotspot in the connection section.
- Once the connection has been established, start the automatic calibration process.
I’ve designed this grid to train a pick and place program easily. The grid is 5x5 each hole is 25 mm diameter and spaced 15 mm.
Suction cups for fixing the laser cut grid:
Niryo uses radians and every value in their axis means positive and negative rolling angle positions.
x, y, z and i, j, k.
X = base roll Y = Pitch arm Z = Yaw arm
I = Yaw elbow J = pitch elbow K = roll hand
The calibration process its the most important step. If you don’t calibrate the robot properly you can cause unwanted collisions.
The sequence makes the robot reach the limits of the XYZ motors. The servos don’t move since they have their own encoders for position tracking.
- Here is the tracking position showed in the 3D model on Niryo One Studio:
This is video showing the calibration sequence.
Niryo Studio plots in 3D the sensed position of each axis on real time.
The Learning mode ublocks the motors so you can move the arm in their 6 axis and it keeps tracking the positions.
Once you reach the desired pose you can:
- Save it
- Use it in a block for programming with niryo blocks.
This is the process of saving the poses to use it later to program a sequence.
Using pose as steps sequences¶
Once you have saved the positions you can uses it as sequences in a program. This video shows the process.
Niryo blocks programming¶
This is easy to use interface to Python and ROS to program the robot using a Scratch like interface using programming blocks.
I’ve used the functions under Movement:
- Pick from
- Place from
- Move to pose
- Calibrate atm
- Loop for “10” times.
Running a sequence:
Pick and place program¶
This is the result:
Error code 32 in motors can mean one of the axis has been stuck, to solve this:
- Unstuck the axis.
- Reboot Niryo.
Sometimes Niryo will stop in the middle of a task.
- Just move to a initial pose and restart the routine.
Issues with ELF files caused by dual booting Windows and Linux.
- I’ve tried to recover my files but I’ve a data corruption issue that damaged half of my work. This started on week 14 while using Python under Windows.
- Solution was to make a new repository clone and copy paste the recovered files.