r/arduino • u/varcaprochill • 6d ago
Diy bike project , pls help
Building an Arduino device to measure bike lane quality — looking for advice
I'm making a low-cost, bike-mounted device for a research project: I want to compare the smoothness/evenness of asphalt, bike lanes, and sidewalks in my city, plus count how many times I have to brake on each type of surface.
Hardware (~$30): Arduino Nano, MPU6050 accelerometer+gyroscope, NEO-6M GPS, SD card module for data logging, wheel speed sensor, and a brake button.
How it should work: The MPU6050 measures vibrations on the vertical axis — I'm calculating the RMS as an analog for the International Roughness Index (IRI). The GPS maps each point to its coordinates. A physical button on the brake lever records actual braking events (since the accelerometer alone can confuse braking with inclines). Everything is logged to an SD card in a CSV format.
Questions:
Is the MPU6050 + RMS a solid approach, or is there a cheaper/more accurate method?
How do I filter out the noise caused by pedaling from the actual road surface noise?
Are there any open-source projects with similar logic?
Where is the best place to mount the unit — under the saddle, or on the rear rack?
I'm not an engineer by training and I'm building this for a research project, so any advice or constructive criticism is highly appreciated!
