h1

Motion sensing tweeter

March 29, 2014

Yesterday, much like yesterday’s post here, was an example of scatterbrainedness.

Today, I made actual progress on the ayok widget. It now sends a tweet when it gets motion (tap or movement) and it lights the LED based on current orientation. The motion detection comes in via the Electric Imp’s wakeup pin so it could be spending almost all of its time asleep, preserving battery.

It still tweets when you have motion. I need to update the agent to tweet when no motion has occurred for a period of time. Of course, for testing, that period of time should be relatively small. I also need to hook up the fuel gauge to monitor the battery, tweet when it is low.

I’ll eventually need to make a webpage to enter caregiver information: their twitter handle (or email or text phone number), the frequency required for proof of life (10 minutes – 48 hours), a clear/snooze option (mom’s on a cruise for 10 days, leave me alone).

This little bugler alarm is kind of amusing. I’ll work on keeping it asleep next, I think. Or maybe the battery monitoring. Either way, that’s going to wait for a bit while I get on with my regularly scheduled Saturday.