1: Wall and Canyon robot
Robot 1 : Simple test robot to solve Wall (floor or hand) and Canyon (table edge) in Word Blocks and Python. Code is asynchronous event driven. Python code and discussion will be in the next Blog post.
Please post if you tried how it went. Post your challenge question answers, especially if working alone and want a response.
Idea History: This was developed for a 30-minute workshop in summer 2024 with a more compact robot build and only Word Blocks. Campers had to pick what sensor to use to avoid hitting wall and avoiding running off table. Speed of robot and stopping in time without "damage" is a life lesson for avoiding danger. Camp theme was Courageous (and have a good character). Idea fit well in 30 minutes. Also used in 2024 at NÖKISS Robots4Me station as a simple robot to program and test on a table.
Robot Build
Current robot is a low and wide build. This means it has a wider turn, which determine how close to the obstacle the robot can be when it turns.
![]() |
| Wall build: Looking forward |
![]() |
| Canyon Build: Distance sensor looking down |
Wall and Canyon Challenges
Overview: Robot stops when danger and reacts by changing direction.
- Uses touch and distance sensor.
- Must decide how to react to the danger to the robot
- hitting a wall or
- falling off table into "canyon".
- Slight rebuild by changing distance sensor location for second part.
Wall:
- stop
- when hits something like a wall, hand or obstacle (Touch sensor)
- hard to hit wall if going fast
- before hits when "too close" to wall (Distance Sensor)
- what is "too close"
- when and how could the color sensor be used?
- if you built a barrier like going over a pencil, what sensor test could you use?
- react
- turns and goes in a "safe" direction
- what is a "safe" direction?
- turn at angle?
- turn around?
- What did you chose and why?
- indicate
- 3 states: "safe", problem, reacting
- (Word Blocks) Use Power Button
- (Python) use 3x3 Color Matrix
Canyon Robot on a table
- stop
- at edge of table when distance becomes larger
- when and how could the color sensor be used?
- if you built a barrier like going over a pencil, what sensor test could you use?
- react
- turns and goes in a "safe" direction
- does a safe direction differ from wall?
- indicate
- 3 states: "safe", problem, reacting
- (Word Blocks) Use Power Button
- (Python) use 3x3 Color Matrix
- Can code from wall indicator be reused without change?
Life application Questions
What do we want to avoid to keep a good character?
- Psalm 37:27a Turn away from? evil
- Does someone try to get a close as possible to a danger? How fast are they racing toward a major danger? Romans 3:15-17 ...hurry ... destroy...
What can be used like sensors to warn us and help us avoid bad decisions and protect us from doing wrong?
- Psalm 119:15
- and ....


Comments
Post a Comment