Component: Ultrasonic (HCSR04) (Audio)
From Flowcode Help
(Redirected from Component: ID c5d9ffa3 5a7d 4fb2 b9ba ec855ad7b25c)
Jump to navigationJump to searchAuthor | Matrix TSL |
Version | 1.0 |
Category | Audio |
Contents
Ultrasonic component
This board has both an ultrasonic transmitter and receiver. When the Trig pin is set high for 10uS, the transmitter sends eight 40KHz pulses. The Echo pin goes high about 2ms later. The duration of the Echo pin is measure when it goes high, and a distance is then calculated based on the high duration. The distance of objects in a range of around 3cm to 2.75m can be determined.
Detailed description
No detailed description exists yet for this component
Examples
HC-SR04 Distance Sensor Demo.fcfx
Macro reference
GetDistance
![]() |
GetDistance |
Sends a pulse and processes the echo. Returns a object distance in cm | |
![]() |
Return |
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Ultrasonic_HC_SR04.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Ultrasonic_HC_SR04.fcfx