Home - 5BDL/PatsA.S.S. GitHub Wiki
Welcome to the PatsMTBU wiki!
Objective
Project to design & develop an automated suspension adjustment system for Pat's Mountain Bike.
Inspiration
Pat doesn't want to pay $300 for this.
Requirements
< Pat to fill out >
Phases
Phase 0 - Data Collection
- Objective: Collect Accelerometer readings tied to the ride to understand reading patterns for a ride to identify positioning of the bike for a Climb, a Decent, & a Level ride. Readings should be tied location & time. Readings should taken at the finest level of granularity supported - at least per second.
- Solution: Adafruit Circuit Playground Bluefruit ALPHA board with housing for mounting. Data logging will be pushed to Adafruit.IO.
Setup
Circuit Playground Express Bluefruit
- Download latest UF2 https://circuitpython.org/board/circuitplayground_bluefruit/
- Follow instructions to update board - https://learn.adafruit.com/adafruit-circuit-playground-bluefruit/circuitpython
- Download Lib.ZIP
- Copy Libraries to /lib directory for board
- Copy code.py to board root
- MU Editor to view Board Serial console
NOTES & LEARNINGS
5/10/20 Chip Observations
- After building on the chip for a separate project, we can use 3 or 4 of the sensor outputs to create a better model for tilt & the dynamics of riding (Euler, Gravity, Linear Acceleration, & Quaternion) - potentially the Gyro as well.
- We should consider performing a test with video + sensor sync step-by-step & positional analysis.
Circuit Playground Express Bluefruit
- Definitely an Alpha software set, bluefruit connect supports a set of packets sent from the phone to the board - location, accelerometer, quaternion, gyro, magnetometer & has 2 set controller modules - color picker, control pad
- Leveraging location packet - latitude, longitude, & altitude, but running into a checksum issue after 4 packets received by board. OI: May need to consider shifting to data logging board to SD card
- https://learn.adafruit.com/bluefruit-le-connect?view=all
- https://learn.adafruit.com/crack-the-code/sending-and-receiving-data-with-arduino
- Struggling with the BLE write function & datatype requirements to pass properly. Instead, we will process the accelerometer data & provide a value...will start with X
- https://learn.adafruit.com/adafruit-feather-m4-express-atsamd51/power-management - Battery check example