Back to Parent

Outcome


Intention

The drinks are always out of stock in the fridge. The purpose of this project is to remind user when the drinks are close to being finished by texting him/her.

Context


When I get home, it is always a great time to have a cup of drink until you open the fridge and all the drinks are out of stock. I have run into this situation hundreds of time. Even if I bear in mind that I have to buy drinks, sometimes I still forgot as I didn't get a notification before I got home.

This experience inspired me to start this IoT project.

There are two precedent projects I found that is related. 

1. "Raspberry Pi Beer Fridge of Awesomeness":

http://www.instructables.com/id/Raspberry-Pi-Beer-Fridge-of-Awesomeness/

That detect the stock and the overall condition of the beer.


2."Fridge Food Detector"

http://www.instructables.com/id/Fridge-Food-Detector/

It uses the force detector to monitor the volume of the milk, which is a more direct way to tell the user how much milk is left in the fridge.


Process

Outline your approach to the project? What ideas did you generate and how did you refine or reject them? What did you research and explore? what were the design choices? What challenges were encountered and how did you resolve them?

My starting point is to choose what approach to measuring the condition of the drinks. 

1. My first trial is the using the photoresistor to detect if there are drinks in the fridge. It turns out photo resistor is more suitable for detecting food stock, for example, if there is food left in the fridge or if the food is out of stock. The photoresistor will sense the light once the food in the fridge is removed.


2. Since my goal is merely detecting one kind of food and requiring more precise metric, I came up with using the weight of drinks to measure the condition. After a while, I found the FSR (force sensitive sensor) is the right one.


This variable resistor is just like a photocell or a flex sensor. The resistance changes by applying force on it.

For this project, we will need:

Particle Photon;

Breadboard;

Resistor;

FSR sensor;

LED;

The LED is used to ensure the FSR is working without reading the output of sensor in the console.sensor in the console.

3. The circuit

4. The code

Show Advanced Options
Show Advanced Options

Reflection

1. Iteration is the process to move forward. There is no need for having a blueprint before getting down to manipulate the components.

2. Always find another way to solve the problem. Components are abundant more than we expect.

3. Setting up a test system that can exam whether it is a hardware issue or a software issue.

4. Manipulate others' code rather than build it from the scratch. Focus on the purpose of the project instead of coding.


Drop files here or click to select

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