• 1
    Introduction

    Ameba-D supports low power modes which are deepsleep modes. Deepsleep mode turns off most of the system power domain. The power consumptions of the core module in DeepSleep Mode are around 7uA to 8uA compared to the normal state of around 22mA. This example gives demo of system switch between “working” and “sleep”(power save). Using DHT sensor to read data and display on Eink screen when system is awake. After 5 seconds system auto enter DeepSleep Mode for power save. The system will wake up by the wakeup source.( Aon timer, Aon Pins or RTC timer).

  • 2
    Procedure

    Download the Eink zip library, AmebaEink.zip, at https://github.com/ambiot/ambd_arduino/tree/master/Arduino_zip_libraries. Then install the AmebaEink.zip. Open “File” -> “Examples” -> “AmebaPowerSave” -> “DeepSleep_DHT_Eink_Example”

    1

    Set condition values as picture below. “DS_WAKEUP_SOURCE” is used to set the wake-up source, user can choose 3 wake up sources now, 

    • AON Timer (SET_DS_AON_TIMER_WAKEUP); 
    • AON GPIO pins (SET_AON_WAKEPIN_WAKEUP); 
    • RTC Timer(SET_DS_RTC_WAKEUP);
  • 3
    Using AON Timer as a wake-up source

    AON timer can be set from 0 to 32760000 range (unit ms) by AON_TIMER_SLEEP_DURATION.