NOTE: The instructions have been tested on a M1 Macbook pro.
We use PlatformIO and teleplot plugins on VS Code to run and compile this project.
git clone [email protected]:synkathairo/embedded-gyrometer.git
cd embedded-gyrometer
We use the PlatformIO GUI to compile the code. We can also run the following command on the terminal:
pio run
We use the PlatformIO GUI to upload the code and use serial monitor. We can also run the following command on the terminal:
pio run -t upload
We use the Teleplot plugin on VS Code for plotting continous values. At any given time, we can use either the Teleplot or Serial monitor. The board uses a baudrate of 9600
. By default, we have disabled serial outputs to maximize performance. To enable serial outputs, set the DEBUG
macro to 1
in src/main.cpp
.
We use pre-commit to format and style our code. To contribute to this project, first clone the repository and activate the environment. Then run the following:
pre-commit install
Once the hooks are installed, continue committing to the repository as usual. The first commit will be slow.
Key | Duration (ms) | Bindings |
---|---|---|
blue button | 0 - 499 | + 1cm |
blue button | 500 - 2000 | + 10cm |
blue button | 2000+ | Accept Height |
black button | any | Reset |
The project uses components from the recitation lectures of Real Time Embedded Systems.
If you find this work useful, please cite us using (bibtex):
@software{Gupta_Embedded-Gyrometer,
author = {Gupta, Shubham and Zhu, Charles and Gupta, Sarthak},
title = {{📟 Embedded-Gyrometer}},
url = {https://github.com/synkathairo/embedded-gyrometer}
}