This is a little off the beaten track so this is a...
# random
r
This is a little off the beaten track so this is an appropriate channel. I thought I’d share my recent pet (and first) Arduino project. I had a requirement to detect when my electric roller garage door had been left open as sometimes the button gets pressed accidentally and it opens without me knowing. Using a magnetic switch, an MKR1010 WiFi and AWS I’ve put together a first project that will send an SMS and email to defined numbers and email addresses when the door is left open for a defined period of time. It’ll then notify again when the door is closed, but only if it’s previously been left open. For anyone interested, the code for the Arduino and AWS resources is here. Any feedback, improvements, criticisms or even PRs to improve are welcomed There’s a high level architecture diagram in the readme but basically it uses an HTTPs request from the Arduino using the WifiSSLClient library and WiFiNina to an API Gateway endpoint in AWS which is secured using HTTP Basic Authentication. This invokes a lambda function which sends an email via Simple Email Service (SES) and posts a notification to a Simple Notification Service topic. The AWS SMS service is subscribed to that topic and so sends an SMS to each mobile phone subscriber when the topic is published to. It was a bit of a voyage of discovery, it’s a long time since I wrote any C, and never in any embedded project, but got something working in the real world with hardware through to cloud which I’m pretty chuffed about. Tomorrow out comes the soldering iron where I wire it up permanently and install in the garage. I posted similar in the Arduino forum too ( and gave a big old hat tip to SST )
d
That sounds like a super cool project @Ross Coundon! Thank you for sharing.
t
so can I send a text to close your garage door or what
r
I wish you, well I, could. Unfortunately that would have meant reverse engineering and modifying the IR receiver and motor enclosure. Despite being new, it's pretty old fashioned
f
Ross! How in the WORLD you have time for pet projects when u have those 2 trouble makers in ur profile image at home?!
r
It's a good and accurate question. However, it's also the same two troublemakers that keep opening the bloody door!