Рет қаралды 600
This is a simple Robot Car based on Inverse Logic. The robot uses just 1 motor fitted with 2 wheels and a structure to support it. The electronics uses a Distance blox, followed by an Invert blox and then a Motor Driver blox.
The logic is as follows:
When there is no Obstacle in front of the Distance sensor, the robot keeps moving Forward.
Now this is made possible by using an Invert blox after the Distance blox. In the absence of an Obstacle, the Invert blox converts the 0 from the Distance blox into a 1 and passes it to the Motor Driver blox, which keeps the Motor running.
When the Distance blox detects an Obstacle in front of it, the output changes to 1. But the Invert blox again converts this 1 into a 0 and passes it to the Motor Driver blox, which Stops the Motor.
Simply put, Obstacle means Stop and No Obstacle means Forward. Since there is just one motor, there are no Left and Right turns.
Checkout WitBlox DIY Robotics kit for 101+ projects from WitBlox Shop. shop.witblox.c...