Engineering Journal (Log) Team : Sleeping Participating unit: Macau Pui Ching Middle School Team member: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Date of creation: 14th February,2026 Table of contents Operational Logistic................................................................................................................. 3 Log number: 1 Event date: 14th of February,2026...................................................................4 Log number: 2 Event date: 18th of February,2026...................................................................6 Log number: 3 Event date: 21th of February,2026...................................................................9 Log number: 4 Event date: 27th of February,2026.................................................................10 Log number: 5 Event date: 5th of March,2026.......................................................................14 Log number: 6 Event date: 10th of March,2026.....................................................................17 Log number: 7 Event date: 15th of March,2026.....................................................................21 Log number: 8 Event date: 21th of March,2026.....................................................................24 Log number: 9 Event date: 27th of March,2026.....................................................................27 Log number: 10 Event date: 1st of April,2026........................................................................29 Log number: 11 Event date: 5th of April,2026........................................................................35 Log number: 12 Event date: 11th of April,2026......................................................................39 Log number: 13 Event date: 11th of April,2026......................................................................40 Operational Logistic ●​ Means of communication: ○​ Verbal communication: Our team can communicate verbally and discuss ideas, opinions, and facts by having conversations between members. It 1s among the easiest and most efficient methods for several people to work together productively in a group. Each member of our team is tasked with Overseeing several project areas through verbal communication. ●​ Meeting frequency: ○​ We as a team agreed to have three weekly meetings. Meeting every day would make time more compact because we still have to go to school. If we had to maintain our concentration on both our project and our academic responsibilities, we would not be able to guarantee our productivity. As a result, our team thinks that meeting three times a week is the most effective way to handle our workload. ●​ Location: ○​ Macau Pul Ching Secondary School Innovation Science and Education Center (Fablab): We are able to access a wide range of components in the laboratory because of the diversity of supplements. Not to add, Fablab offers an adequate and comfortable envirouent for us to debug our program and robot. In order to maintain the integrity of the work, educators working in the laboratory can also offer suggestions for our project. ●​ Distribution of work: ○​ Assign work to members, create personal task: lists and attendance calendars, and make sure that everyone completes the assigned duties in the allotted time Here is a table with the task assignments: Members Robot Hardware Programming Log book designs Li Cheng Lok ✓ ✓ ✓ ✓ Lloyd ✓ ✓ Mike.V ✓ ✓ Wong Ioi Cheng ✓ ✓ Log number: 1 Event date: 14th of February,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ Our team documented the robot’s limited design and drew the next stage ●​ comprehending the competition guidelines and test location 2. Rules Analyse 1.​ The robot car will need to start from the tile with a black horizontal line, then follow the line and stop on the tile with a red line. 2.​ Different tiles have different patterns, and the path may change between different rounds. 3.​ Checkpoints are included in the path, and the robot can restart at the tile with checkpoint. 4.​ Speed Bumps, Debris, and Obstacles may appear in the path and robots need to try to come across those. 5.​ The robot needs to turn according to the direction with green intersection markers. 6.​ Tiles will be used as ramps to allow the robot to climb up and down from different levels. 7.​ Robots need to come over and keep balance when crossing a seesaw. 8.​ In the Evacuation Zone, robots need to place the black dead victims in the red evacuation point and silver living victims in the green evacuation point. Our team tries to draw out an example path and try to figure out the route that we should follow, so that we can think about how the robot can come over each ordeal. Example path: The red dotted line next to the path is the route that we should follow. 3. Planning ●​ Complete the robot’s initial design according to the require and the need to let the robot be able to come across all the challenges. ●​ Begin to talk about the coding and algorithm planning that has to be done Log number: 2 Event date: 18th of February,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ Finish choosing what sensor or hardware that we are going to use on the robot according to their function and also the competition roles. 2. Hardware introduction After careful analysis and judgment by our team through the competition rules, we finally selected different sensors to solve different tasks. For example, we chose to use HC-SR04 ultrasonic sensor for getting the distance between robot and obstacles or walls, and we may use USB camera to capture the environment so that the robot can follow the line or catch the ball. Hardware Function Sensor’s picture 1. DC step up converter Increase the voltage 2. 5v step down conventer Change the voltage to 5V 3. USB Camera Capture image in front of the robot 4. Picamera 3 wide Capture image of the line under the robot 5. Google coral edge tpu Provide 4Tops AI performence for raspberry pi 6. 5v converter Change the voltage to 5V 7. HC-SR04 ultrasonic Get the distance between sensor robot and obstacles or walls 8. emax servo Control the open and close of the clip 9. BNO055 Get the inclination of the robot 10. Raspberry pi 5 Main controller 11. 18650 battery Power the raspberry pi 12. Arduino nano mini Control the servo 13. Micro switch Detecting obstacles 14. vl53l0x get distance of the front 3. Planning ●​ After selecting the sensor, start designing the robot through 3D design, and design the robot based on the functions of the selected sensor. ●​ Start trying out a basic walking program, which allows the robot to follow a route. Log number: 3 Event date: 21th of February,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ Start 3D designing the chassis of the robot. 2. Design drawing 3. Planning ●​ Design the full appearance of the robot based on the needs of the sensors we selected last time. Log number: 4 Event date: 27th of February,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ Design the appearance of the robot based on the needs of the sensors we selected last time by using Shapr3D. 2. Preliminary design Front:​​ ​ ​ ​ ​ Back: Right:​​ ​ ​ ​ ​ Left: 3. Designs detail introduction Some of the designs you see are tailor-made specifically for this competition, crafted to align with its unique requirements and themes, and will be showcased in detail below. 1)Touch Function:Detect obstacles while following the line, if it reaches a obstacle it will get around it. Displayment: 2)Claw Function:Catch the ball with servos and gears Displayment: Design that allow the claw to move forward and backward: Design that allow the claw to open and close : The full design of the claw: 3)Ball’s placement Function:A place where the ball is temporarily stored before reaching the Evacuation Zone and after collecting the ball by the claw. And it is designed with handle. Displayment: 4)Ball’s gap Function:Prevent the ball from rolling down directly. When it reaches the Evacuation Zone, the loop will open and the ball will roll down. Displayment: 3.Planning ●​ Start to figure out a basic walking program, which allows the robot to follow a route. Log number: 5 Event date: 5th of March,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Wong Ioi Cheng Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1.Tasks done today ●​ Finish the design of the PCB1 and PCB2,so that electronic parts stay in place and connect properly, a PCB is used in all electronic devices. ●​ Write the program of collecting the data of the black line. 2.Basic Program ●​ This is the schematic diagram of PCB 1. ​ ●​ This is the schematic diagram of PCB 2. ●​ This is PCB 1 ●​ This is PCB 2 ●​ This is the program of collecting data of lines. 3.Planning ●​ Write the program of following the black line and detect the green intersection marker for turning to different directions. Log number: 6 Event date: 10th of March,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ Write the program of following the black line and detect the green intersection marker for turning to different directions. ●​ Test the program. 2. Basic Program 1) Line following program ●​ This part of the program divides the captured image into 24 horizontal slices and analyzes the position of the black line within each slice to determine its location. ●​ By extracting contours and calculating moments, the program identifies the center point of the black line in each segment, allowing the robot to adjust its path accordingly. ●​ The program can detect the position of the black line that is closest to the edge of the image, ensuring accurate tracking even when the line is near the boundary. 1) Green intersection marker detecting program ●​ This part of the program is designed to detect green intersection markers on the track, which are used to control the robot’s turning direction at junctions. ●​ It uses color segmentation in the HSV space to isolate green regions, filters out noise by size and shape, and identifies valid markers for decision‑making. ●​ Based on the position of the green marker and the surrounding black lines, the program determines whether the robot should turn left, turn right, or go straight. Here is the manuscript of the detecting order and how to determine which direction to go. And also how it works when the robot need to turn around. 3.Actual measurement 4.Planning ●​ Take photos of the balls and collect data. ●​ Train the model of identifying the balls. Log number: 7 Event date: 15th of March,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ Take photos of the balls and collect data. ●​ Train the model of identifying the balls. 2. Photos These are the photos examples for collecting data. We have collected more than 5,000 photos from different angles to detect balls of different colors, so that the ball collection process can be faster and more accurate. In this section, we used universe.roboflow.com to train the model. This is a photo example with no ball, and it will be marked as no annotation. Balls that are in the red or green evacuation point won’t be detected. Here is examples of detecting balls, silver balls is marked with a green block,and black ball is marked with a purple block, more than one ball can be marked at the same time. Example 1. Example 2. 4.Planning ●​ Start to train the robot to overcome challenges like getting around obstacles,etc. ●​ Detect the red or green evacuation. Log number: 8 Event date: 21th of March,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd, Mike.V Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ Start to train the robot to overcome challenges like getting around obstacles,etc. ●​ Detect the red or green evacuation. 2. Program These are the programs for obstacle avoidance. When touch detects obstacles: Get around obstacles: "Return to route" after obstacle avoidance is completed : 3.Red or green evacuation Here are the programs of red or green evacuation. This code defines the `FindPutState` class, which detects either a green or red drop-off zone based on the given color parameter. It waits 0.6 seconds after entering the state for stable detection, then creates a color mask to isolate the target zone, displays the mask, and finds contours in the masked image to locate the drop-off area. 4.Planning ●​ create a venue for robot training. Log number: 9 Event date: 27th of March,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ create a venue for robot training. 2. Photos We use tape to post different patterns to meet our daily training and make the robot more stable. The whole venue: Some examples (the red dotted line is the route): 3.Planning ●​ complete the ball part after entering the room. Log number: 10 Event date: 1st of April,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ complete the ball part after entering the room. 2. Program Included: ●​ Seek ball ●​ Detection ball (YOLO) ●​ Pick up the ball ●​ Find the putting area ●​ Selease the ball ●​ Counting the number of balls picked up and the number of balls released 1)​ Variable records the number of balls picked up and released 2)​ YOLO model detection ball 3)​ FindBallState — find and move toward the ball 4)​ PickState — pick up the ball (picking up the ball) 5)​ FindPutState — Find the red/green put area 6)​ PutState — put action This set of code handles the robot’s complete ball-handling task: it uses a YOLO model to detect balls, navigates toward them, grabs the ball with servos when close enough, then searches for the corresponding red or green drop-off zone based on color. After reaching the zone, it releases the ball using the rear servo and returns to search for more balls. 3.Planning ●​ complete the program of entering and leaving the room. Log number: 11 Event date: 5th of April,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ complete the program of entering and leaving the room. 2. Program 1)Entering the room after detected the silver line 2)Leaving the room TurnState (hit the wall and turn): CheckState (check before entering the room): MoveLState / MoveRState (adjust position in the room): GoGoGo (rush out after entering the room): BeforeGoState (prepare before entering the room): GoBackState (Leave the room: Back + Turn): This group of states controls the robot’s room entry and exit. The GoState uses distance sensors and line detection (black/silver) to navigate inside the room, adjust position, avoid walls, exit when seeing a black line, and back out when seeing a silver line. 3.Planning ●​ complete the program for the finishing red line Log number: 12 Event date:11th of April,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ complete the program for the finishing red line 2. Program 3.Planning ●​ test the entire robot and improve it Log number: 13 Event date:11th of April,2026 Members attended: Li Cheng Lok, Lloyd, Mike.V, Wong Ioi Cheng Editor: Lloyd Location: Macau Pui Ching Secondary School Innovation Science and Education Center 1. Tasks done today ●​ test the entire robot and improve it 2. Problem When clamping the ball, the accuracy will be significantly affected due to light leakage from the environment, which may cause unstable visual detection, misalignment of the ball position, and inconsistent clamping movements, ultimately reducing the success rate of picking up the ball. 3.Solution Therefore, to solve this problem and improve the stability and success rate of ball clamping, we specially added light-blocking baffles to the bottom of the robot.