Back to Parent

Outcome


We always forget things under stress. Recently I had an injury and lost a tooth, and quite a few times I forget to wear my fake tooth ( imagine a day without the bunny tooth smile).

 But there are many things which are even more important that we forget like medicines, keys etc. and regret whole day. How we always wish that someone could have reminded us.  "Don't forget" is here to remind me, and take away my worries. 

"Don't forget" is a small pad or a place that is sensitive to pressure by using a  Force Sensitive Resistor. When one leaves home in the morning, a tilt motion sensor in the main door triggers an alarm if the objects are still on the pad. 

Components:

Spark Core

Breadboard

Jumper Wires

Force Sensitive Resistor

Tilt sensor – SW 200 D

2x 10K Ohm Resistors

2x 1K Ohm Resistors

Piezo Buzzer

Red LED

Step 1: Brain storm and sketches of various ways to connect these sensors to the spark core to have a better understanding about the circuits.

Img 20150128 054951214.thumb
Show Advanced Options

Step 2: Started connecting FSR and and core from the tutorials  https://github.com/daraghbyrne/DesigningIoT/blob/master/4.%20Basics%20of%20Sensors/b.%20Force/FSRExample/FSRExample.ino


Fsr 1 bb.thumb
Show Advanced Options

Variable readings from FSR sensor.

Fsr reading without weight
Show Advanced Options

Step 3: After FSR sensor was connected, I tried working with tilt motion sensor as a switch. Starting from here: https://learn.adafruit.com/tilt-sensor/using-a-tilt-sensor. initially  I coded the sensor just as FSR connecting it to analog pin at the core, and I struggled for hours trying to get variable readings for the angle to know in final result at what angle alarm gets triggered. But later I realized that Tilt sensor just works as switch  and it can only have high and low, and re connected the Tilt sensor to digital pin on the core, as shown below. 


Fsr tilt bb
Show Advanced Options

Step 4:  Now I tried connecting Peizo Buzzer to the core. But till now all these three sensors have been working separately.

Sketch 3 schem
Show Advanced Options

As I had started one sensor at a time, in the end I had too many wires jumbled up as shown in the picture below. But They could have been connected in much neater way which I figured out later as shown in the above diagram.

Img 20150128 055151085
Show Advanced Options
Fsr tilt buzz bb
Show Advanced Options

Step 5: After making all the three different sensors work separately, I started to put all the pieces together in terms of coding. Initially I was trying to  create music by giving different values as code from https://learn.adafruit.com/adafruit-arduino-lesson-10-making-sounds/playing-a-scale . But how much ever I tried I could not make it work. 

Show Advanced Options
Show Advanced Options

After many iterations, I still couldn't figure out the variations in tones, and moved towards a simpler code where it just makes continuous noise. At last I could figure it out looking at other people's project in the class that it can be done in much simpler way. Below is the final code for the Don't forget pad.

Show Advanced Options

Though it's not very aesthetic but in the end I could make my concept work. It does have flaws in the concept itself,  like alarm would ring each time door knob opens, and door can not identify when you are actually leaving the house. when you are just opening the door for certain task. But as a starting point I was only aiming at much simpler concept knowing that I may not have answers at present for bigger questions like identifying when it's an exit and when it's a movement of the main door knob for other purpose.  Below is the video of my first every connected object. " Don't forget." 

Show Advanced Options
Show Advanced Options
Show Advanced Options
Show Advanced Options
Show Advanced Options
Drop files here or click to select

You can upload files of up to 20MB using this form.