Component: Ultrasonic Ranger (Grove 101020010) (101020010) (Audio)
From Flowcode Help
Jump to navigationJump to search
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.
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.
Downloadable macro reference
![]() |
WaitForEcho |
Waits until the echo has been received from the Ping macro allowing you to perform your own timing. | |
![]() |
Return |
![]() |
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 |
![]() |
GetInt |
Blocking call to read the ADC at full bit depth | |
![]() |
Return |
![]() |
GetByte |
Blocking call to read the ADC as a byte | |
![]() |
Return |
![]() |
GetInt |
Blocking call to read the ADC at full bit depth | |
![]() |
Return |
![]() |
GetByte |
Blocking call to read the ADC as a byte | |
![]() |
Return |
![]() |
Initialise |
Initialise the sensor configuration as set by the component properties. Sets the default intigration time and gain as well as enable the sensor. | |
![]() |
Return |