Differences

This shows you the differences between two versions of the page.

Link to this comparison view

iothings:proiecte:2022sric:crash-detection [2023/06/01 23:14]
alexandru.careja [Software]
iothings:proiecte:2022sric:crash-detection [2023/06/02 01:13] (current)
alexandru.careja [Results]
Line 37: Line 37:
  
 <​code>​ <​code>​
-  x_adc_value = analogRead(ACCEL_X_Pin);​ /Digital value of voltage on x_out pin */ +  x_adc_value = analogRead(ACCEL_X_Pin);​ /Digital value of voltage on x_out pin 
-  y_adc_value = analogRead(ACCEL_Y_Pin);​ /Digital value of voltage on y_out pin */ +  y_adc_value = analogRead(ACCEL_Y_Pin);​ /Digital value of voltage on y_out pin 
-  x_g_value = ((((double) x_adc_value /1023) - 1.8 ) / 0.3); /Acceleration in x-direction in g units */ +  x_g_value = ((((double) x_adc_value /1023) - 1.8 ) / 0.3); /Acceleration in x-direction in g units 
-  y_g_value = ((((double) y_adc_value /1023) - 1.8 ) / 0.3); /Acceleration in y-direction in g units */+  y_g_value = ((((double) y_adc_value /1023) - 1.8 ) / 0.3); /Acceleration in y-direction in g units
 </​code>​ </​code>​
  
Line 75: Line 75:
 ===== Results ===== ===== Results =====
  
 +{{:​iothings:​proiecte:​2022sric:​bike-crash-detection.jpeg?​direct&​460|}}{{:​iothings:​proiecte:​2022sric:​crash-serial-bluetooth-result.jpeg?​direct&​275|}}
 +
 +Since I didn't have my bicycle in Bucharest, the only way to test this was to move the wooden mount with the system attached with my hand violently so that its acceleration surpasses the threshold acceleration. And it did work! I got the notification in the Serial Bluetooth Terminal app on my phone.
 +
 +Looking at future improvements of this project, I would like to have the Bluetooth notification be able to trigger the Emergency SOS feature from Android.
 ===== References ===== ===== References =====
  
Line 82: Line 87:
   * https://​forum.arduino.cc/​t/​adxl335-converting-to-gs/​110499   * https://​forum.arduino.cc/​t/​adxl335-converting-to-gs/​110499
   * https://​randomnerdtutorials.com/​esp32-bluetooth-classic-arduino-ide/​   * https://​randomnerdtutorials.com/​esp32-bluetooth-classic-arduino-ide/​
 +  * https://​www.nathanarose.com/​blog/​bicycle-accident-reconstruction-bicyclist-braking-capabilities-and-limits
iothings/proiecte/2022sric/crash-detection.1685650479.txt.gz · Last modified: 2023/06/01 23:14 by alexandru.careja
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0