Exercise 14 - whyaxee/Smorphi GitHub Wiki
- An assembled Smorphi/ Smorphi2 robot
- Wefaa InfraRed (IR) sensor
- A computer
- A USB to USB-c cable
- Internet connection
- Cardboard sheets or Vanguard paper (you can reuse these from the previous experiment)<
- Experiment with maze with added element of shape change
| Steps | Description |
|---|---|
| 1 | [Template of a maze to build] For this exercise, install back the other 3 modules of your robot. First, make sure you have installed an IR sensor at the front of Smorphi. Make sure the IR sensor has been switched to obstacle detection mode. Then, with some pieces of paper and cardboard, build the maze shown below. Make sure the paper and cardboard are high enough to be detected by the IR sensor. For the width of the maze, follow the maze template arrangement below. The box indicates the width of the path. One box = width of 1 Smorphi module |
| 2 | [Hard code to get out of the maze] By analysing the maze, you can first program your Smorphi to navigate through the maze. You should try as much as possible to use shape changing to help navigate through. If you are struggling to figure out the code, you can try this: First code out all the functions, distance and timings required line by line.Afterwards, try using the conditionals and loops that you have learned to get your Smorphi to complete the maze. What is the least number of lines of code you are able to get your program down to? Challenge yourself! |
| 3 | [Unleash your creativity] Design your own maze to try out more variations of shape changing to navigate through mazes |
| 4 | [Extra Credit] If you have to use sensors and shape changing to get out of the maze, what would your plan be? Propose some sensors and write down some pseudo code to justify your idea. |