dekuNukem / daytripper

Hide-My-Windows Laser Tripwire
MIT License
3.68k stars 170 forks source link

How much is the power consumption of the TX? #12

Closed GlideLeo closed 4 years ago

GlideLeo commented 5 years ago

Does it have a sleep mode?Or it always working at normal mode, that will cost a lot of electricity. Have you test the current when TX is working? I have a thought to build a low-power consumption TX terminal,with STM32L0 series and low-power Bluetooth module

dekuNukem commented 5 years ago

The average power consumption of TX is around 3mA, with a 120mA battery gives around 40 hours of battery life.

The STM32F042 does go to into STOP mode as soon as possible. However the majority of the current comes from the laser ToF sensor, consuming 19mA during activating ranging measurement (datasheet). Each measurement also has a timing budget, which can be anywhere from 10ms to more than 200ms. Longer the timing budget, better the range and accuracy.

So after all, it's a balance between timing budget, measurement frequency, and battery life.

By default the timing budget is 25ms, and 5 measurements per second.

GlideLeo commented 5 years ago

Alright ,may be the only way is to increase the battery capacity?