A Dobot M1 Pro SCARA, two conveyor belts and a USB camera that pack Christmas gift boxes: one card and two candies go into each box, then the lid. Built by a team of three in Applied Robotics Project II at HAMK, Robotics Laboratory B118.

Four boxes is a small sample, and the V1 pass criterion is not yet agreed with the teacher. The numbers above are from the logged runs in testing/live_runs/.
Pick and place on the real cell. The robot picks the card from the object belt with the vacuum cup and places it in the open box on the box belt. The candies follow the same way, then the lid. Video recorded in the lab during week 3 (Enamul Choton).
Fastest logged box, run 20261118_100236. Every real run writes a CSV log with each robot command and reply, every detection and the camera pictures. The cycle below is read straight from that log:

Box arrived at the slot and is standing still.

Object belt runs until the needed items reach the pick area.

Look: red candy found, turn −86°. Candy 1 of 2.

Look: white card at (195.9, −49.3) mm, turn −89°.

Look: second candy, turn −87°. Then the lid at 47.0 s.

Closed box. The camera watches it leave; done at 64.4 s.
Safety gate. Before the robot can move, the software checks a speed cap, the teacher’s approval (name and date), taught points within reach, calibration, vision model, output wiring, an operator at the e-stop, and the J1 range for the path home. Passing the gate issues a one-time arm token that is used up by that single run.
Operator console. A browser console at 127.0.0.1:8765 shows device checks, the live camera with detections, the cycle state and the run logs.
Simulation first. The same cycle runs offline with simulated devices or in a RoboDK station of the cell, so the logic was tested before the robot moved.



YOLO11n trained on 147 lab images and validated on 22, four classes: card, candy, box and lid. Pixel positions are mapped to robot X/Y with a homography fitted on five calibration marks that the robot touched. When the camera turned 6.3° in its holder, a view correction re-fitted the calibration without recalibrating.








| Part | Model / detail |
|---|---|
| Robot | Dobot M1 Pro, 4-axis SCARA, reach 400 mm, J1 ±85° |
| Gripper | Vacuum cup on DO1, blow-off on DO2 |
| Object belt | DTCB conveyor, stepper motor, TB6600 driver. DO3 start/stop, DO4 direction, DO16 enable |
| Box belt | DTCB-2418-0718 conveyor, Arduino UNO R4 WiFi, E18-D80NK proximity sensor |
| Camera | USB RGB camera above the belts. An Arduino Nicla Vision was tested first and dropped for low image quality |
| PC | Windows 11 laptop, Ethernet to the robot, TCP ports 29999 and 30003 |



The first pick faulted: a straight move from home needed J1 at about 90°, the M1 Pro allows ±85° (controller alarm 23).
fix: route home → above box slot → itemItems were placed beside the box. The taught slot did not match the box position.
fix: slot taught again, camera confirms the boxThe camera rotated in its holder between sessions, so pixel-to-robot mapping drifted.
fix: view correction re-fits the calibrationSome runs paused near the 375 mm reach limit and the lid does not always close fully.
status: open, next on the listIntegrated the robot, conveyors, camera and vision into one working cell. System architecture, RoboDK simulation, cell control software (cell_live), safety gate, operator console, run logging, supervised runs on the real cell.
Robot tests, belt wiring and drivers, box belt Arduino, electronics enclosure design.
OpenCV, YOLO dataset and training, camera-to-robot calibration, taught points.
Supervisor: Leo Li, HAMK.