Project 08 – Side Quest! (Roomba Mapping)

Lesson Attachments

A deeper dive

In order to complete this project, you will need to know how to read the encoder values from the motors while in drivetrain mode.  You can also read the inertial sensor values by following the instructions and sample code below.

After that, you must determine a way to apply the distance traveled and degrees turned to regions of the display.  Recall Lesson 1.2 (Basic Programming) where you learned about the display screen.

Assuming an 8’x4′ table space to map, create a space covering most of the display which will represent a scaled down version of the table.  At that point you must program the robot to print a character over the traversed areas.