Makerfabs / Makerfabs-ESP32-UWB-DW3000

77 stars 22 forks source link

Putting ESP32 DW3000 Pair into Sleep #11

Open JerryIeong opened 1 year ago

JerryIeong commented 1 year ago

Hi,

Let me thank in advance.

I have been working on DW3000 distance detection and warning system for few months and everything works fine, when the two UWB systems get too close, a pin will be triggered to activate an alarm.

I am currently using the "ex_06a_ss_twr_initator" and "ex_06a_ss_twr_responder" with Arduino for the system.

After certain period of testing, I realized that the power consumption is quite high which may not be suitable for the system to be portable by carrying batteries. After reading through the manuals, I found out that there are different modes, like "sleep", "deep sleep" and "sniff mode", and there are also two "sleep" example programming in the Arduino.

Could anyone please instruct me how I can add these modes into my Arduino program for reducing power consumption?

Thank you for your helps!

maa-x commented 1 year ago

You would have to read the datasheet for the DW3000 and send the correct command to enter and exit sleep or deep sleep.