Adaptable Sensor and Notification System
A easy to use adaptable sensor and notification system that is designed to be used as a temporary change of state notifier.
This project is for the World’s Largest Ardunio Maker Challenge 2016. It uses an Ardunio MKR1000 and associated Windows 10 UWP app to control and send an email to a defined email address. This does require that the email address has an associated phone to provide notification but this is likely not an issue. Originally the idea was to send a notification through google cloud messaging to Azure and then to the phone. This did work but I was not able to work out a way to send the notification using UWP as the NotificationHubClient solution only works on C# console applications.
This is designed to be a temporary sensor rig that you set by pressing the button and on a noticeable change the program sends an email. Connection is done via WiFi using the Firmata protocol.
Currently the only sensors that are included are the PIR, Knock sensor and LDR. It is easily expandable with simple addition to code.
The system works by first turning on the power supply (connects automatically to wifi on power-up). A companion application (a Windows 10 Universal App) needs to be launched on a Windows 10 device (I’ve used a desktop computer) which acts as the controlling device. Then you would select the sensor you would like to use by switching the companion switch on the device to HIGH. This reads the current value of the sensor and sets it to the base value. This allows it to be used either to read HIGH or LOW (in the case of digital). Then when the value read by the sensor changes the system notices and sends an email to the address specified (can be extended to send a notification to a phone). To reset the sensor it is necesary to set the switch to LOW again.
I’ve adapted code from a variety of places including:
A lack of time has limited me on this project but I am happy I had a chance to mess around with Windows Azure Mobile Services and sending notifications even though I didn’t end up being able to use it. Also Windows Remote Arduino was a good way to control Ardunio’s but does complicate things a bit. However for the extra complication you can do a lot more with them. Potentially a RPi 2 would be a better fit for this project as it wouldn’t require a separate control computer.
Read more: Adaptable Sensor and Notification System
JLCPCB – Prototype 10 PCBs for $2 + 2 days Lead Time
China’s Largest PCB Prototype Enterprise, 300,000+ Customers & 10,000+ Online Orders Per Day
Inside a huge PCB factory: https://www.youtube.com/watch?v=_XCznQFV-Mw