How to align to a wall with Ultrasonic Sensors. Remove complexity (part 4)
We explore some common mistakes when a program is developed and becomes complex. We then try to remove part of this complexity.
- #166
- 16 Nov 2015
We explore some common mistakes when a program is developed and becomes complex. We then try to remove part of this complexity.
Arriving at a final solution. There is still room for improvement on using the Mindstorms Ultrasonic Sensor for aligning to walls, but we hope the whole five videos could give you a good idea of how to start with a problem and reach a solution.
In the first LEGO tutorial we started following a wall with the Ultrasonic Sensor. In this tutorial we would improve the program, remove the zig zag movement and make it very smooth.
Tasks for STEM classroom and home exercise to get you used to using the LEGO Mindstorms Touch sensor. Solve them, build a program, record a video and upload your solutions below.
Follow an object using the LEGO Mindstorms Ultrasonic Sensor. Object moves away, the robot moves with the object. The program is very useful if you are doing STEM classes and you want to demonstrate results. People react very well to a robot following you like a dog for example.
Tasks for school STEM classes or home exersie. Try to solve them to submit your solutions below.
Stop on detecting an object with the Ultrasonic sensor and move after detecting there is no object. Join of the previous two video tutorials in one
We create a program for detecting when the Touch Sensor was Pressed/Released. Move until it is pressed, continue when it is released.
The robot detects an object. After the object is remove we want to make the LEGO robot move forward.
Implementing the next logic for aligning to the border when we approach the border from the right.
If you get to a solution that is too complex you should always try to improve it. This is what we are doing here. Arriving at a solution for aligning to the wall that has become too complex.
Overview of what is going to happen that part of the lessons.
We encourage you to explore the software on your own.
Display a matrix with "life" and "dead" cells on the EV3 LEGO Mindstorms brick screen. The program is available. You can see it, change it, modify it and learn from it.
Display a matrix on the brick screen. Simple and easy. Download and run the program to see how