Making of WALL-E
Hello folks today in this blog we are going to make a robot inspired by the movie WALL-E in this movie a robot (WALL-E) who is responsible for cleaning a waste-covered Earth meets another robot and falls in love with her. Together, they set out on a journey that will alter the fate of mankind. WALL•E (Waste Allocation Load Lifter Earth-Class ) is the last robot left on Earth, programmed to clean up the planet, one trash cube at a time.
The main aim of our while making this robot is that build up a team of robots or a robot ecosystem where the robots can share information for backing up each other and Contribute to each other tasks to get things done quickly and efficiently.
These robots can be used in various fields like mapping, search operations, expeditions, and much more.
But why WALL-E?
Recently a piece of news came from our friendly neighboring planet that the Rover which NASA has sent unfortunately collapsed on that harsh surface, but what if our team of WALL-E opted to work there?
The team of WALL-E is capable enough to share and help each other and replace each other in the case of any mishappening.
But wait if this project is capable of performing tasks in outer space then isn’t it expensive and our motive is to make reliable robots?
yes, it is not wrong that it is possible to replicate the rover if I say so.
Enough of the fillers let’s start making our robot, starting with the components required for the making of the robot.
Parts required:
The basic thing need to make the robot is a Microcontroller but here we have to select the microcontroller according to the location where we have to allot our team of bots to work because the range of communication channels varies
Since we can use any microcontroller as we don’t have any weight limitations now.
The next thing we need is a Bluetooth module but if you are using ESP32 then you do not need any Bluetooth module as this development board has a built-in Bluetooth module.
We are using Bluetooth communication because that will be easy for debugging and testing.
Other components that we are using are BO and servo motors, IR sensors, or ultrasonic sensors.
Calibration and Coding:
While making the robot we have to use the master-slave calibration, While calibrating the robots we have to calibrate one robot as master and others as slaves because we need a master to establish a communication channel among the robots and also the one to keep monitoring its underlying so that we do not have to individually communicate each bot to get their information.
Now we have to code our robots so that they can share their live information and perform tasks.
While coding make a function for each task and call them, Make the function in such a way so that while calling the function they share the information about which function has been called and vice versa code so that they can read data from Bluetooth and identifies that which function their fellow bot is working on.
Make a function for booting to test the working of all the components of bots and call it in the setup function.
💡 Use Serial.print/ln to get help in debugging and testing.
Make a function to detect obstacles and respond according to them.
From calibration and coding, we conclude that we have to share which function is called, So for that, we need just have to create two variables V1 and V2, V1 that stores a value that is set in each function after the function is called indicating which function has been called and share the value of V1 to the fellow bot meanwhile another variable V2 which stores the incoming V1 value of another bot.
Apart from it make a variable to store the incoming value of the distance sensor of the fellow bot and also share the value of the distance sensor.
💡 Make these variables a global variable so that they can be used in any function desired.
Basically, our code structure is:
- Boot function that runs every component once to check working which is further called in the setup function.
- task function, a function that performs a task and also shares its state of working via V1.
- the function that reads and identifies which task a fellow bot performing by reading the stored value of V2 which basically is shared V1 of a fellow bot, Apart from sharing this information this function shares and reads the value of distance sensors.
Assemble the components and power up your bots, enjoy watching them working and playing around.
Will get back with another playful, fun and intresting projects, Untill next time
ADIOS’✌️