Raspberry Pi Alexa

The diagram below is a state machine describing what happens in the code on the Raspberry Pi.  The code checks the AWS IoT dogbot Shadow for changes in the desired state.  If it sees that a different state than it is currently in is desired it will perform an action.  The desired state will either be set by scheduled CloudWatch Events, such as regular daily feedings or water bowl refills, or by changes coming from my voice via Alexa.  On the right side of the diagram, you'll also see actions to pause and unpause scheduled feedings, which is a must-have so that food doesn't pile up for rats while we're away on a trip.  At the bottom, you'll see the process to take a picture with the Pi camera, check it for a dog via AWS Rekognition, and then send it to Slack if Lula is spotted.


No comments:

Post a Comment