Skip to content

ttm4115-group11/bike-rack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

b8abf89 · May 5, 2019

History

69 Commits
Mar 18, 2019
Mar 18, 2019
May 5, 2019
Apr 11, 2019
Apr 25, 2019
Apr 29, 2019
Apr 29, 2019
Apr 29, 2019
Mar 18, 2019
Apr 29, 2019
Apr 5, 2019
Apr 25, 2019

Repository files navigation

Bike Rack

This is project that makes use the state machine framework for python STMPY. The project has not been tested with the latest version of STMPY (so the version prior to the April 9. version), so users be aware of problems with the newer release. The project also makes use of the MQTT application layer protocol and its implementation in Pyton.

The project in its current state is a prototype of a system of reservable smart bike locks. You can reserve a lock at a bike rack of your choice, ride your bike to rack and lock your bike there without any hassle.

Install and Run

The project runs on a Raspberry PI model 3B. To run the project follow these steps:

  • Install Python 3.7 on your raspierry Pi
  • Install the libraries needed to run NXPPY. Follow these steps
  • Remember to enable GPIO on your Raspberry Pi.
  • You need a MQTT-broker for the rack to connect to. We recommend mosquitto
  • We highly recommend you run this application in a Python virtual environment
  • pip install -r requirement.txt

This project runs several python modules in paralell processes on the PI. In three different terminals run:

  • python server_listener.py
  • python nfc_component.py
  • python bike_rack.py

To test the system you can either use the entire system by also running the phone app and web server, or you can send commands directly to the system by using either the mosquitto_pub-command that you get with mosquitto or a graphical MQTT interface such as MQTT.fx.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

Languages