ECE497 Project Coffee Pot Control

Team members: James DiTucci  Hang Du,

Draft Feedback
Nice "Theory of Operation" and Instillation sections. Show a picture of your setup. I look forward to seeing your final project.

Add your names to this wiki!

I'm using the following template to grade. Each slot is 10 points. 0 = Missing, 5=OK, 10=Wow!

 00 Executive Summary 00 Installation Instructions 00 User Instructions 00 Highlights 00 Theory of Operation 00 Work Breakdown 00 Future Work 00 Conclusions 00 Demo 00 Late Comments: I'm looking forward to seeing this.

Score: 10/100

(Inline Comment)

Executive Summary
Our project is to use the BBB to create a web interface for a common home coffee pot. Our web interface should allow users to schedule brew times, see a photo of the current coffee pot, see the temperature of the liquid; additionally the BBB should turn off the coffee pot when it is running dangerously low to avoid sludge at the bottom of the pot and notify the user via email when the pot should be refilled.

Currently, our project accomplishes the goal of allowing users to schedule brew times, see a photo of the coffee pot, and plot the temperature all from a web interface.

Currently, our project does not accomplish the goal of notifying the user when the pot is running low and turning off the pot. We cannot accomplish this because the Sparkfun pressure sensor that we used to determine how much liquid is in the pot cannot withstand the heat of the burner.

In fine, this project demonstrates the ease at which a maker can automate their environment. The BBB's ability to simplify GPIO and I2C interfaces along with node js's extensive repository modules makes interacting with the outside world simple

Packaging
We have not put any work into final packaging. This project simply represents the rapid prototyping capacity of the BBB. The Hardware used in this design includes the following

Place the pressure resistor under the coffee pot. It is important to maintain consistency in the placement of the coffee pot relative to the resistor as well as the resistor relative to the burner. Currently, this piece of hardware is a weakness in the design. It cannot withstand the heat of the burner. If a replacement piece of hardware can be found this wiki will be updated. Additionally, it is necessary to calibrate the code to fit with your particular coffee pot.
 * Sparkfun Pressure Sensitive Resistor

The Temp Sensor that we used is from Dallas one wire. It communicates over serial one wire communication. It simply needs to be somewhere in the middle of the liquid.
 * Dallas One Wire Waterproof Temp Sensor

The PS Eyetoy is hooked into the USB input on the BBB.
 * Playstation EyeToy

The PowerSwitch Tail II is essentially a relay that can be used to switch a load that is connected to a wall outlet using a small signal from one of the BBB's GPIOs. Connect the GND and IN- to GND and attach IN+ to P9_13 for the current code configuration.
 * PowerSwitch Tail II

Installation Instructions
The first time:

1.set environment variable

vim ~/.bash_profile

add the following lines to the end of the file:

export SLOTS=/sys/devices/platform/bone_capemgr/slots

export DTS=/opt/source/bb.org-overlays/src/arm

exit beaglebone and login again export The result should include SLOTS and DTS.

2.install something

git clone https://github.com/hangdu/ECE497_finalproject.git

npm install ds18b20

npm install http

npm install fs

npm install child_process

npm install crontab

npm install nodemailer

npm install socket.io

install v4l2grab:

git clone https://github.com/twam/v4l2grab.git

make

3.1 for the camera to work

connect the camera to the beaglebone with USB

check /dev/vedio0 is showed

test camera using the command

v4l2grab -W 160 -H 120 -o test.JPEG

3.2 for temperature sensor to work

check the hardware connection

vim /boot/uEnv.txt

make sure HDMI is disabled and eMMC is enabled

cd $DTS

vim univ-emmc-00A0.dts

uncomment all things related to P9_12

cd ../../

make

cp ./src/arm/univ-emmc-00A0.dtbo /lib/firmware

cd /lib/firmware

echo BB-W1-P9.12 > $SLOTS

cat $SLOTS

to check BB-W1-P9.12 is loaded.

cd /sys/bus/w1/devices

ls

cd 28-000008291724

28-000008291724 is the id of the temperature sensor. Every temperature sensor has a its own id. So be sure to check that and go to that directory.

cat w1_slave

then the temperature will be showed.

3.3 for scheduling time to turn on coffee pot to work

on host computer(run specific shell):

cd BeagleBoard-exercise/setup

./firstssh.sh

on beaglebone(check the time is OK):

date

4.export gpio31

cd /sys/class/gpio

ls

to check if gpio31 appears(GPIO31 pin is used to connect the coffee pot)

otherwise

echo gpio31 > export

5.run Server

cd ECE497_finalproject/project/http

./setup.sh

./boneServer.js

6.open client

Go to the browser and go to 192.168.7.2:9090

Later:

You only need to start from step5 and step6.

User Instructions
Once everything is installed, how do you use the program? Give details here, so if you have a long user manual, link to it here.

Highlights
Here is where you brag about what your project can do.

Include a YouTube demo.

Theory of Operation
Nice diagrams. Could you scale them to fit in a page width?

Work Breakdown
List the major tasks in your project and who did what.

Also list here what doesn't work yet and when you think it will be finished and who is finishing it.
 * Setup web interface Hang Du
 * Set Brew Alarm Hang du
 * Send Email upon empty pot condition James DiTucci
 * Turn Off Pot upon empty pot condition James DiTucci
 * Take Picture of Pot Hang Du
 * Take Temp Data Hang Du

Future Work
Future work on the BBB Coffee Pot would include, choosing a suitable pressure sensor that can withstand the heat of the coffee pot. Unfortunately, the pressure sensitive resistor that was available to us cannot stand up to the heat of the coffee pot burner. The pressure sensor enables two neat features which are already implemented in the code: first the Bone will shut off the coffee pot when it senses the pot is critically low as to avoid evaporating all the liquid leaving gross coffee sludge in the bottom of the pot, second when the Bone senses the pot is running low it will notify the user of the event over email. currently, neither of those functions are actually implemented because we don't have the proper hardware. Future work on the software side would be to make the web page more user-friendly and aesthetically pleasing, create a system for user accounts, and increase the security of the BBBCoffeePot@Gmail.com email address. Currently, the password is plain text in the boneserver.js file.

Conclusions
Give some concluding thoughts about the project. Suggest some future additions that could make it even more interesting.