A first project using the Cayenne Android App. A proof of concept of an alarm than notifies me via email when a door is opened. Still needs to be set up to be battery powered but the concept works.
The capacitive touch sensor is attached to digital pin 2 of the Arduino and Cayenne reads that input and inverts it. When the door is closed the magnet is near enough to the capacitive touch sensor to give a logic high level. This is inverted by Cayenne so while the door is closed, cayenne outputs a 0. When the door is opened, the magnet moves away from the sensor, the capacitive touch sensor outputs a 0, so cayenne outputs a 1 and triggers the notification.
Without the Cayenne App this project would've taken much longer.
Comments
Please log in or sign up to comment.