The project in the video above is to use an application called BLYNK to make a remote and connect it to the wifi module NodeMCU(esp8266). The input is provided manually by the user through the remote made on the app and the input would be received by the wifi module and passed on to the arduino(uno).The reason why arduino is used here is because it can provide +5v output which the nodeMCU cannot. The +5v is necessary in order to drive the motors by using the motor driver.The code below also contains the way in which the turns, forward and backward motion is performed.In case of multiple input firing, the code has been made in such a way that there is priority of the motion i.e:
- FORWARD(Highest Priority)
- REVERSE
- LEFT
- RIGHT(Least Priority)
If left and right buttons on the remote are pressed simultaneously then based on this priority list the code would perform the particular motion.The priority order can be easily modified based on the situation.
Also in order to make the bot more responsive the code contains complete stopping condition after every motion(clearstate() function) and till the state of the input does not change the bot would be in previous input state(while loops have been used).
Comments