Skip to content

garbaczdev/DBL-TileMasters

Repository files navigation

image

Tile Master

Tile Master is an web application written in React.js, that interacts with the Python backend in real-time to operate a robot, which purpose was to push the colored tiles on a factory line. The app is responsive, so it works both for phone, tablet and computer screens.

Previously, the robot was hosted on a raspberry PI, which operated the electrical components according to the requests sent by the users. Unfortunately, there are no electrical components anymore. There is however a real-time web application to demonstrate the capabilities and interactivity of the robot.

Capabilities

Through the Tile Master web app, the user could:

  • Arbitrairly program the robot behaviour with pre-designed instructions
  • Use the pre-made useful utilities, like sorting or displaying Morse Code
  • Switch the robot to the manual mode, which stops the instruction execution and lets the user push the arm manually
  • See all of the actions performed by robot's components
  • See the counter of the tiles detected by the robot's scanner
It is important to note, that this is a real time application, which means that all of the events are immediately updated on all of the devices that have the app opened. This has been achieved by using HTTP Polling - we could have used websockets but we are only students!

How to run it

To run the project, you need to run a python program that works as a server. This is a python program, so you need a python interpreter (3.8 or higher).

Firstly however, you need to install all of the dependencies. Go to the raspberry directory: cd raspberry Then install the dependencies and run the script:

For Windows:

pip install -r requirements.txt python run_testing.py

For Linux/Mac:

python3 -m pip install -r requirements.txt python3 run_testing.py
Then, every device on the same network can connect to it by typing in its ip:5000 (for example 192.168.0.20:5000) into the browser. On the same device, you can run localhost:5000 to connect to it.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors