Using DYP-A01 distance sensor in controlled mode

Breakout boards, sensors, other Adafruit kits, etc.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
andrewvit
 
Posts: 6
Joined: Fri Sep 17, 2021 2:26 am

Using DYP-A01 distance sensor in controlled mode

Post by andrewvit »

The datasheet for this product describes two modes, "auto" and "controlled":

https://www.adafruit.com/product/4664

The controlled mode is supposed to allow for a low-power standby mode and be triggered to return a single measurement. I haven't been able to figure out how this should work. The sensor is meant to be controlled by its RX pin, which triggers on a falling edge. However, that same pin is also described for auto mode:
Communication instructions of UART auto output

For UART auto output of A01A and A01B serials, when the lead wire “RX” is
hung in air or input high level, sensor will output according to the processing
value, which data is more stable and the response time is about 300-500ms;
When the lead wire “RX” inputs low level, sensor will output according to the
real-time value, and the response time is 100ms.
"Sensor will output" I think means continuous data here. That is not what I want, so I'm trying to use the controlled mode to trigger it instead:
Communication instructions of UART controlled output

When the cable “RX” receives a trigger pulse with falling edge or any serial port
data, the module makes a measurement, the cable “TX” will output a
measurement distance value when the measurement is finished every time.
The output mode can control the measurement period and reduce the power
consumption. The trigger period of the module must be greater than 70ms
I'd like to understand how that pin works. I tried different ways of switching it high to low but it appears to keep working in auto mode (blue LED flashes continuously as it takes readings). Right now I'm seeing if it wouldn't be easier to power the sensor down completely by setting up my own enable pin for it.

Locked
Please be positive and constructive with your questions and comments.

Return to “Other Products from Adafruit”