We are going to use a Python web framework called Flask to turn the Raspberry Pi into a dynamic web server. And from this server we will be able to control our bot and it can move any where we want.
Connect the Raspberry pi as given in the Schematic Diagram: Install Flask Web Framework and follow the commands given below: Installation of Pip
Installation of Flask
Make a python Bot_control.py file and copy & paste code directly.
Then, make a Directory of name templates.
Run code
Open your browser with a IP address of your Raspberry pi (192.168.0.5 in my case).