Browser Controlled Bot

We would like to introduce the BrowserBot: a project at Dexter Industries to turn the Raspberry Pi into a robot.

“The browserBot” is a web-browser controller robot using the BrickPi. With this project, we demonstrate how to control a BrickPi robot directly from the browser of any computer, tablet, or phone.

Browser Controlled Bot

Step 1: Overview

Using the browserBot you can build your own web-controlled robot in very very easily with just a few lines of code. The browserBot is a good place to start if you want to build a project using BrickPi to send and receive information directly to a web page.

Step 2: Building the browserBot

The browserBot uses the same body the simplebot . Here are some links for building instructions:

Step 3: Code

The code for the browserBot is available on our BrickPi Python Github Repository under the “Project Examples” folder.

To pull the example code, just clone the BrickPi Python Repository,

git clone https://github.com/DexterInd/BrickPi_Python

Overview

There are two files in the Project_Examples\browserBot folder in the repository:

  • Browser_Client_Code.html : This page runs on the client computer, cell phone, or tablet browser, the one from which you want to control the bot.
  • RPi_Server_Code.py: This code runs on the Raspberry Pi Server and controls the robot.

Step 4: Prepare Your Pi

Browser Controlled Bot pic

This code needs “Tornado” for python installed on your Raspberry Pi. Tornado will allow us to use Web Sockets with our Raspberry Pi. Web sockets will allow us to communicate back and forth between the Raspberry Pi and the client.

 

For more detail: Browser Controlled Bot


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top