File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ LCD Display is controlled via I2C bus. In this project i have used GPS module to
2929* ST-Link Support
3030* Salae Logicanalyzer GUI.
3131* Operating System- Ubuntu Linux
32+
33+ ## Source code features
34+ * FreeRTOS port for CortexM4
35+ * Standard Peripheral Libraries (StdPeriph_Driver)
3236
3337## Working principle - Distance
3438The HC-04 module has Trigger and Echo pin.
@@ -42,10 +46,11 @@ Timer 2 (TIM2-CH3) is configured to send the trigger signal with a specific duty
4246Depending on the distance a pulse is generated by echo Pin.The Echo pin is connected to input capture Pin (Timer1-CH1).
4347The Pulsewidth of the received pulse in milliseconds is used to determine the distance.
4448
45- For more details refer this site https://www.mouser.com/ds/2/813/HCSR04-1022824.pdf
49+ For more details refer this PDF. https://www.mouser.com/ds/2/813/HCSR04-1022824.pdf
4650
4751
4852Sound travels at approx. 343 meters/second. Distance in centimeters is hence, (pulsewidth(ms)* 34300(cm/s))/2;
53+
4954Distance in cm = (PW/1000)seconds * (17150)(cm/seconds)
5055
5156<img src =" ./Images/Image1_Trig_echo.png " alt =" img " width =" 600 " />
You can’t perform that action at this time.
0 commit comments