I recently found myself in possession of a Raspberry Pi Zero. I've never had a chance to play around with one before, and so I was just after a bit of guidance on how to go about a certain project.

I usually find myself sitting at my desk for way too long while working, and I figured that a good healthy use for the Pi would be an unobtrusive single-beep alarm that went off every hour to remind myself to stand up and walk around a little.

And that's it! I guess it's a pretty simple project, but honestly I'm pretty lost as to how I would begin to go about it. Any help or suggestions would be appreciated.


  • raspberrypi.org/magpi
    – joan
    Aug 11, 2016 at 6:04
  • Welcome to Raspberry Pi! Please take the tour and visit the helpcenter to see how things work here... and by all means could you please edit the title of the question to be meaningful and related to the specific question?
    – Ghanima
    Aug 11, 2016 at 18:54
  • One thing not addressed in your question or answer is that you will get up and move for some minutes once the alarm goes off. If you run this to go off every hour the length of time you are sitting before an alarm is reduced. For example if you plan to move around for 10 minutes and the alarm starts at 1PM thefirst alarm goes off at 2PM. After walking for 10 min. you sit back down at 2:10pm and the alarm goes off at 3PM (only 50 minutes). How do you account for the time when you actually get up during the hour should the alarm still go off at the top of the next hour? Aug 11, 2016 at 19:33
  • I am not saying this is impossible - it isn't but it is not completely thought out either. Aug 11, 2016 at 19:34
  • Hi Steve - That lost time would just be part of the hour. It would just go something like [5 minutes standing] -> [55 minutes sitting]. So going off exactly every hour would be perfectly fine.
    – Max
    Aug 12, 2016 at 4:52

1 Answer 1


You could create a cron job to execute a script every hour. https://www.raspberrypi.org/documentation/linux/usage/cron.md

Then you need to work out how to make the noise ... perhaps a sound card or a PWM through a piezo sensor ?

  • Thanks Matt. Definitely seems like cron job + piezo speaker is the way to go.
    – Max
    Aug 12, 2016 at 5:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.