Sleepmode on Peripheral Example

⚠️
Hi there.. thanks for coming to the forums. Exciting news! we’re now in the process of moving to our new forum platform that will offer better functionality and is contained within the main Dialog website. All posts and accounts have been migrated. We’re now accepting traffic on the new forum only - please POST any new threads at//www.xmece.com/support. We’ll be fixing bugs / optimising the searching and tagging over the coming days.
2 posts / 0 new
Last post
magergar
Offline
Last seen:2 months 6 days ago
加入:2020-05-26 18:20
Sleepmode on Peripheral Example

Hi,

I've been wondering if it's posible to activate the sleep mode on any of the peripheral examples (without bluetooth)

what I'm trying to acomplish is to read an ADC value(sensor) and if it's above certain value turn on an opto but I only have 10mA to do this

using the SmartSnippets Toolbox I can read what I'm cosuming and the module DA14531 alone without any active peripherals works with 10mA

so my idea was to put the module to sleep and somehow set up a timer to wakeup and measure the adc and once the condition is met activate the opto

the opto needs 3mA to activate so I have 7mA to work with the module

could this be possible?

once the opto is activated I will have more current to work with the problem is before...

PM_Dialog
Offline
Last seen:22 min 27 sec ago
工作人员
加入:2018-02-08 11:03
嗨magergar,

嗨magergar,

Thanks for your question. Please check the arch_sleep.c source file which holds all the sleep configuration APIs. As you can see, it contains BLE staff, so it’s not possible use them in a non-BLE project. You could follow the sleep functionality and try to power down the peripheral domains and power-off the RAM cell as in our APIs. However, this is something that is not supported in the SDK, so you have to implement / test in your side.

Thanks, PM_Dialog