Monash Human Power Data Acquisition System
The Data Acquisition System (DAS) allows us to collect and store data from various sensors attached to the bike. The DAS consists of a Raspberry Pi which serves as the main ‘brain’ of the system, and a Teensy LC in which the sensors interface with. This manual acts as an operating guide to use the DAS.
This repository contains all the code related to Monash Human Power's Data Acquisition System (DAS).
git clone https://github.com/Monash-Human-Power/MHP_DAS.giton the command line to download the whole repository.
git submodule update --initon the command line to download and update the submodules within the repository.
node.js program we run to communicate to the Teensy that is connected to the Raspberry Pi via serial communication.
Imitates the Teensy serial connection by creating a virtual serial port. Note that this will only work on Unix systems - if you're running Windows, perhaps try running the script under Windows Subsystem for Linux (WSL).
Usage: This script uses the same arguments as
mqtt_test.py. For example, run the script with
python serial_test.py -f data_173.csv -j 1500. The script will provide you with a serial port address. Run the DAS script with
node DAS.js -a -p [serial port]. Return to the
serial_test terminal, and press enter to begin sending data.
|DAS.ino||Script that collects data from each sensor|
|DAS_MOCK.ino||Script that mocks fake data coming into the Teensy. Useful for checking if serial communication is working|
|DAS_NO_GPS.ino||DAS.ino with the GPS disabled. Useful for testing the DAS inside.|
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!