RIOX AND HC-SR04 ULTRASONIC SENSOR

2 years 2 months ago #29533682 by Davidetwinp98
A few weeks ago I decided to buy a RIOX card to use and implement the HC-SR04 sensor with it.
The problems that haunt me are essentially 2:

-1 Someone knows how to correctly connect the sensor with the riox ??
(CIRCUIT DIAGRAM)



-2 Having previously used these sensors with arduino, I know that the sensor between a signal transmission and a signal reception waits a time of 10us(microsecond), but with MICROBASIC, the minimum time is 1ms(millisecond), so how can I integrate these sensors using microbasic?

Please Log in or Create an account to join the conversation.

2 years 2 months ago #29533683 by Gabriel_Isko
Replied by Gabriel_Isko on topic RIOX AND HC-SR04 ULTRASONIC SENSOR
You are correct in that you will not be able to poll for input over MicroBasic. Microbasic's bandwidth is simply not high enough. Instead, the proper approach is to treat both the output signal generation and input signal capture as pulse signals. The distance that the sensor is reporting should be proportional to the pulse width that you can read from a digital input.

For circuit diagrams, please refer to page 6 of the RIOX datasheet .

Please Log in or Create an account to join the conversation.

2 years 2 months ago #29533686 by Davidetwinp98
Thank you gabriel


Now all is good.

Please Log in or Create an account to join the conversation.

Moderators: tonysantoni
Time to create page: 0.136 seconds