SMARS Lab - A simple web app for playing with SMARS Robots.
To Install:
-
log on to your raspberry pi
-
clone the SMARS Lab github repository:
git clone https://www.github.com/kevinmcaleer/SMARSLab -
change to the SMARSLab directory:
cd SMARSLab -
install virtualenv:
pip install virtualenvor 'sudo apt-get install virtualenv' -
create a new virtual python environment:
python3 -m venv venv -
activate the new python environment:
source venv/bin/activate -
install the pre-requisites:
pip install -r requirements.txt -
load SMARSLab:
python smarslab.py -
Open a webbrowser at: either
http://localhost:5000orhttp://raspberrypi-IP-ADDRESS:5000 -
You will need to install the following python libraries for this to work:
sudo apt-get install python-smbussudo apt-get install i2c-tools -
Make sure I2C is enabled in the interfaces from the Raspberry Pi Configuration.
-
Enjoy!
Had to remove support for Python 3.3 as Flask is not compatible with this version. Removed some objc dependencies from requirements.txt as this causes the build to fail
Mar 2025
- Tidied up code
- Improved readability
- Removed unnecessary dependencies
// May 2019 - added buzzer feature // Requires a Fundomoto sheild
- Basic control commands
- known issue with commands not being received correctly