A remote controlled raspberry pi with a touch-enabled web interface that sends commands through websocket.
- Raspberry Pi3 Model B
- L298N dual motor controller
- Smart Robot Car Chassis Kit (included chassis, wheels, motors, battery box)
- Cheap portable power pack
Hardware assembled as described by Gautier Mechling on Android Things
The user connects securely to the Wifi access point called "Monschibot". On established connection the user gets redirected to a small website with control elements.
A python server serves the small website and listens to a websocket. The website uses javascript to send short commands (stop, left, right, speed) to the server. The server uses gpiozero library to control the motors accordingly.
Install python libraries for the webserver:
apt-get install python3-gpiozero
apt-get install python3-flask
apt-get install python3-pip
pip3 install Flask-Sockets
Setup dnsmasq:
sudo service dnsmasq stop
sudo cp dnsmasq-monschibot /etc/dnsmasq.d/
Setup hostapd:
sudo cp hostapd.conf /etc/hostapd/
echo DAEMON_CONF="/etc/hostapd/hostapd.conf" >> /etc/default/hostapd
Setup wireless network interface:
sudo cp interfaces /etc/network/interfaces
Restart
python monschibot.py
All code is licensed under GNU GENERAL PUBLIC LICENSE Version 3.
Glyphs are licensed under Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) by SmartIcons.
The monschibot logo is licensed under Attribution-NonCommercial 4.0 International.