You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

7 年之前
12345678910111213141516171819202122232425262728293031323334353637
  1. # Bike Safety with Pi
  2. A raspberry pi to be mounted on a bike to alert surrounding and the emergency contact of the rider if they fall.
  3. ## Hardware requirements
  4. | Required | What I used |
  5. |------|-----|
  6. | Raspberry Pi | Pi 3 Model B |
  7. | MPU3050 gyroscope | OSEPP GYROS-01 |
  8. | Button interrupt | OSEPP PUSH-01 |
  9. | Buzzer |
  10. ## Code dependencies
  11. 1. g++
  12. 2. ssmtp
  13. 3. [wiringPi](http://wiringpi.com/download-and-install/)
  14. ## Setup
  15. 1. If you don't have ssmtp installed, run this
  16. ```sh
  17. $ sudo apt-get update && apt-get install ssmtp
  18. ```
  19. 2. Run the setup script
  20. ```sh
  21. $ ./setup.sh
  22. ```
  23. 3. Input the email you want to sent to
  24. 4. Done!
  25. ## Usage
  26. ```
  27. $ ./compileandexecute.sh
  28. ```