# Buzzer activation after xx minutes of up time

**URL:** https://forum.amebaiot.com/t/buzzer-activation-after-xx-minutes-of-up-time/744
**Category:** SDK
**Created:** [August 16, 2021, 1:31am UTC](https://forum.amebaiot.com/t/buzzer-activation-after-xx-minutes-of-up-time/744 "2021-08-16T01:31:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![brcisna](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@brcisna](https://forum.amebaiot.com/u/brcisna)
#### Post date: [August 16, 2021, 1:31am UTC](https://forum.amebaiot.com/t/buzzer-activation-after-xx-minutes-of-up-time/744/1 "2021-08-16T01:31:10Z")

</div>

Hello All,

–Calling all coders---- 🙂  
Trying to utilize the rtlduino rtl8720dn as best as i can in a drone application. Along with acting as a wifi repeater, would like for the rtlduino to activate a buzzer after 45 minutes of powered up time. In other words most drones should be done flying after at max 30 minutes uptime. This is kind of a simplistic approach to being a lost drone locater,with no user intervention. This is probably an easy coding task,for someone much smarter than I.

Thanks

---

<div class="post-metadata">

### Author: ![xidameng](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.amebaiot.com/xidameng/32/18_2.png) [@xidameng](https://forum.amebaiot.com/u/xidameng)
#### Post date: [August 16, 2021, 1:47am UTC](https://forum.amebaiot.com/t/buzzer-activation-after-xx-minutes-of-up-time/744/2 "2021-08-16T01:47:53Z")

</div>

You may use `timer` to track the time elapsed since power up, example code are also in the SDK,

> <https://github.com/ambiot/ambd_sdk/blob/bec1347debbbd7a2ad2a9143af896a39e9a0b65a/project/realtek_amebaD_va0_example/example_sources/TIMER/mbed/gtimer/src/main.c#L61>

---

<div class="post-metadata">

### Author: ![brcisna](https://avatars.discourse-cdn.com/v4/letter/b/b487fb/32.png) [@brcisna](https://forum.amebaiot.com/u/brcisna)
#### Post date: [August 16, 2021, 1:53am UTC](https://forum.amebaiot.com/t/buzzer-activation-after-xx-minutes-of-up-time/744/3 "2021-08-16T01:53:01Z")

</div>

Hi xidemeng,

Thank You for this . Perfect. I overlooked this looking through the ambd\_sdk.  
I will try and learn something from this.
