Our final writeup for this project! (Note the html website is only chrome compatible at the moment and I haven't yet been able to figure out how to launch the Svelte site from Github Pages so if you want to check it out you have to run it on your local machine).
In terms of the languages we used, LaTeX was only used for the final paper write up and the C++ was auto-detected where we were actually using Arduino. We really hope you guys enjoy this paper. Here's our google drive with pictures and videos.
Note: I need to add the part about setting up a venv for the site :o.
- Run this command to generate a service
sudo nano /lib/systemd/system/tread.service
- Enter this in the text file
[Unit]
Description=My Sample Service
After=multi-user.target
[Service]
Type=idle
ExecStart=/home/laufband/Treadmill-To-Walking-Pad/site/venv/bin/flask --app /home/laufband/Treadmill-To-Walking-Pad/site/webserver.py run -h 10.0.0.91
Restart=on-failure
[Install]
WantedBy=multi-user.target
- Run these two commands
sudo systemctl daemon-reload
sudo systemctl enable tread
- Download the Aduino IDE and open the file to be flashed (Treadmill_Controller_1.ino).
- Plugin the Arduino and flash the Arduino.
- Connect the Arduino to the same device running the server. In our case this is the Raspberry Pi.
- Start the web server.
From the downloaded github repository main file.
cd site
flask --app webserver run --host your_local_ip
your_local_ip/ is the plain html and bootstrap site your_local_ip/fancy is the Svelte site
cd site/my-app
pnpm -i
Run the site locally
pnpm run dev
Build the site
pnpm run build