loading

Are you ever out shopping and forget if you are out of a your favourite food? If so, this project is for you.

This project creates a simple webserver that shows if you are low on a specific food or drink, for example, milk. It uses the linkit ONE microcontroller for the WiFi connection, and a small piece of Velostat, a force sensitive material. The board is able to detect the difference between a full milk jug and an empty one, using the pressure sensor.

Step 1: Parts and Tools

Here are the Parts and tools that you will need to make this project:

Parts:

Velostat

Red LED

Linkit ONE board and WiFi antenna

Wire

10k ohm resistor

Male headers

Tools:

Computer with the latest version of the Arduino IDE

Soldering Iron and solder

Smartphone

Step 2: Wiring

Use the attached wiring diagram to make the required connections to the linkit ONE. The red LED is mainly used to make sure that the sensor is working properly and for calibration if you want to use a specific type of food or drink.

For the velostat, strip two wires so it has about an inch of exposed wire. Then, attach them to each side of the velostat using some tape.

Step 3: Code

Download the (First) attached code. Now, change the line that says "#define WIFI_AP "Your Network" " and change "Your Network" to the name of your wifi network. Do the same with the line of code after that, but change "Your Password" to the password to your wifi network. Now, upload it to the Linkit ONE. Open the serial monitor and copy the first IP address shown as you will need it later.

Now that you have the IP address, download the second code and do the same to the two lines of code, in fact, you can just copy/paste. Now, upload the code to the linkit ONE

Step 4: Test...

To test the device, place a (full) container of some sort, like a milk jug, onto the velostat sensor. The red LED will turn on if the food or drink is heavy enough. Now, you can type in the IP address into your web browser to see if it is triggered when the container is on the sensor.

<p>Great idea!</p><p>Does the sensor measure ON or OFF (minimum weight needed), Or does it measure it from 0% - 100%?</p>
<p>I think the picture in Step #4 answered my question as &quot;ON or OFF&quot; am I correct?</p>
Yes, it is either on or off. However, I could add in an analog value to the webserver.

About This Instructable

2,065views

29favorites

License:

Bio: My name is Zach Sousa and I'm a Canadian highschool student that has a passion for making.
More by Zach Sousa:CNC Oak Watch Box CNC Camera SD Card Holder Edge 3D 3.0 - A $200 3D Printer 
Add instructable to: