Skip to content

Commit df419e5

Browse files
committed
description updated
1 parent fdc9578 commit df419e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff 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
3438
The 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
4246
Depending on the distance a pulse is generated by echo Pin.The Echo pin is connected to input capture Pin (Timer1-CH1).
4347
The 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

4852
Sound travels at approx. 343 meters/second. Distance in centimeters is hence, (pulsewidth(ms)*34300(cm/s))/2;
53+
4954
Distance in cm = (PW/1000)seconds * (17150)(cm/seconds)
5055

5156
<img src="./Images/Image1_Trig_echo.png" alt="img" width="600"/>

0 commit comments

Comments
 (0)