Astrobot is being used to help clean up around Loreto by picking up trash and dropping it into the bin. You have to write the code that will help Astrobot accomplish this task. The flowchart below shows the steps that you will need to code. There is an example video below the flowchart image. You will need to use the wait until IR sensor code show below to work out when Astrobot has trash to pick up. You will need to work out how far away from the sensor the trash needs to be placed! |