stretchyboy / close-pass-pi

Use pi camera and LiDAR / ultrasound to detect and record drivers passing bikes badly. Project started at #picademy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Close Pass Pi

Use pi camera and LiDAR / ultrasound to detect and record drivers passing bikes badly.

Project started at #picademy.

Goals

  • Active research into using Raspberry Pi on a bike
  • Gather data about how drivers pass cyclists
  • Gather evidence of bad passing

Please note at the moment I'm just hacking away on the platform, I'm not sure if anyone could or should use this evidence but its worth a go.

Idea

  • Put a distance sensor, pi camera, pi and battery into a saddle bag which fits under the bike seat.
  • Distance sensor pointing to the right
  • Camera pointing backwards
  • Have code looping around measuring distance
  • if car is too close start bleeping & record for another 10 seconds and save that to disk. Using a circular video buffer to be able to decide whether to record a cars overtake to disk after they have got too close.

Hardware

Ultrasound Build 1

LiDAR Build 1

Software

About

Use pi camera and LiDAR / ultrasound to detect and record drivers passing bikes badly. Project started at #picademy

License:MIT License


Languages

Language:Python 100.0%