How namrathalb/safe-ride works
Safe-Ride is a road-hazard sensing and awareness project: vehicle-mounted accelerometer and GPS readings are intended to locate potholes and humps, then inform later drivers. The clearest implemented capture workflow is Method 1, which reads both sensors and appends timestamped readings to a CSV; Method 2 is an alternative live-reading script. The README describes cloud storage and range-based voice alerts, but the sampled code does not implement them. Classification materials and standalone GPS experiments are included; their detailed runtime relationships are not established by the excerpts.
Main entry points: Algorithm.ipynb Hazard classification · sf1.py GPS + sensor capture · sf2.py Live GPS + sensor · MPU6050.py Accelerometer reader
Components 20
Sensor capture
- GPS + sensor capture
Source/Method 1/sf1.py - Live GPS + sensor
Source/Method 2/sf2.py - Accelerometer reader
accelemeter/MPU6050.py - Sensor readings CSV
Source/Method 1/sensor_readings.csv
GPS experiments
- Serial GPS reader
GPS Module/Approch-1/GPS.py - NMEA GPS parser
GPS Module/Appraoch 2/Neo6mGPS.py - gpsd polling
GPS Module/Appraoch 2/gpsdData.py
Hazard classification
- Hazard classification
Classification Algorithm/Algorithm.ipynb - Classification dataset 1
Classification Algorithm/Dataset-1.csv - Classification dataset 2
Classification Algorithm/Dataset-2.csv - Classification dataset 3
Classification Algorithm/Dataset-3.csv - Pothole results view
Classification Algorithm/Potholes.html - Speed-breaker results
Classification Algorithm/Speed_Breakers.html - Hazard map
Classification Algorithm/map.html
Road awareness
- Road hazard cloud database
- Proximity voice alerts
Other components
- Driver
- Raspberry Pi
- MPU6050 sensor
- GPS receiver
Connections 22
- Raspberry Pi → GPS + sensor capture: runs on
Source/Method 1/sf1.py - MPU6050 sensor → GPS + sensor capture: provides readings
Source/Method 1/sf1.py - GPS receiver → GPS + sensor capture: provides NMEA
Source/Method 1/sf1.py - GPS + sensor capture → Sensor readings CSV: appends readings
Source/Method 1/sf1.py - Raspberry Pi → Live GPS + sensor: runs on
Source/Method 2/sf2.py - MPU6050 sensor → Live GPS + sensor: provides readings
Source/Method 2/sf2.py - GPS receiver → Live GPS + sensor: provides NMEA
Source/Method 2/sf2.py - Raspberry Pi → Accelerometer reader: runs on
accelemeter/MPU6050.py - MPU6050 sensor → Accelerometer reader: provides readings
accelemeter/MPU6050.py - GPS receiver → Serial GPS reader: provides NMEA
GPS Module/Approch-1/GPS.py - GPS receiver → NMEA GPS parser: provides NMEA
GPS Module/Appraoch 2/Neo6mGPS.py - gpsd polling → Driver: prints fix data
GPS Module/Appraoch 2/gpsdData.py - Classification dataset 1 → Hazard classification: classification input
- Classification dataset 2 → Hazard classification: classification input
- Classification dataset 3 → Hazard classification: classification input
- Hazard classification → Pothole results view: hazard results
- Hazard classification → Speed-breaker results: hazard results
- Hazard classification → Hazard map: mapped results
- Driver → Road hazard cloud database: reads road data
README.md - Road hazard cloud database → Proximity voice alerts: supplies hazard locations
README.md - Proximity voice alerts → Driver: voices warnings
README.md - GPS + sensor capture → Road hazard cloud database: stores sensed data
README.md