Difference between revisions of "Component: Ultrasonic Ranger (Grove 101020010) (101020010) (Audio)"
From Flowcode Help
Jump to navigationJump to searchLine 76: | Line 76: | ||
{{Fcfile|UltraSound_Test.fcfx|UltraSound Test}} | {{Fcfile|UltraSound_Test.fcfx|UltraSound Test}} | ||
+ | |||
+ | |||
Line 81: | Line 83: | ||
==Macro reference== | ==Macro reference== | ||
+ | ===WaitForEcho=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 94: | Line 97: | ||
+ | ===MeasureDistance=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 117: | Line 121: | ||
+ | ===Ping=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- | ||
Line 130: | Line 135: | ||
+ | ===SampleSensor=== | ||
{| class="wikitable" style="width:60%; background-color:#FFFFFF;" | {| class="wikitable" style="width:60%; background-color:#FFFFFF;" | ||
|- | |- |
Revision as of 11:52, 3 February 2023
Author | Matrix Ltd |
Version | 1.0 |
Category | Audio |
Contents
Ultrasonic Ranger (Grove 101020010) component
The ultrasonic sensor is a non-contact distance measurement module. It's designed for easy modular project usage with industrial performance. Detecting range: 3cm to 4m, best in 30 degree angle.
Component Source Code
Please click here to download the component source project: FC_Comp_Source_Ultrasonic_Ranger.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_Ultrasonic_Ranger.fcfx
Detailed description
No detailed description exists yet for this component
Examples
This example performs an ultrasonic range sample and then converts the sample from a timing into a measurement in millimetres.
Macro reference
WaitForEcho
![]() |
WaitForEcho |
Waits until the echo has been received from the Ping macro allowing you to perform your own timing. | |
![]() |
Return |
MeasureDistance
Ping
![]() |
Ping |
Performs a transmit ping allowing you to monitor the incoming signal and perform your own timings maybe using a rising edge interrupt and a timer. | |
![]() |
Return |
SampleSensor