Challenge 2
- Details
- Category: Level 1, Mini Project (Lego NXT Robot)
- Published: Thursday, 14 January 2021 16:39
- Hits: 808
Challenge 2
Submission
Program a “Defender” robot which automatically defends its territory in a 20cm range around the spot on which it is placed. This robot should circle repeatedly on the spot polling the ultrasonic/IR sensor frequently.
Basic level – If it encounters an object within a 20cm range (e.g. an empty plastic bottle which can be placed there while the robot is moving) it should move forward quickly to attack the object (pushing it out of range), then stop.
Advanced level – After pushing the object out of range the robot should reverse back to its original location and continue circling, repeating the attacking process if further objects are identified.
Lego NXT Robot

