Smart Waterpack
Description
Team members: Isaac Lee, Nathan Ojong, Michael Son
A smart waterpack that utilizes the mbed LPC1768, an eTape Liquid Level Sensor, a DS18B20 waterproof temperature sensor, an Adafruit Bluefruit BLE board, speaker, audio amplifier, SD card reader, and uLCD display. The waterpack notifies the user via the speaker when the waterpack is full, empty, and when the user needs to drink (based on how much the user drank within a certain period of time). The uLCD displays the current water level percentage and water temperature. Water level percentage and water temperature are sent over bluetooth via the Bluefruit board, allowing for data to be monitored through the Bluefruit mobile app.
Shortcomings
Liquid level sensor only takes accurate readings while completely unbent, requiring that length of the tape be equal to the height of the water container. The waterpack being used with this hardware must also be rigid in order to allow for accurate liquid level readings. Overall, there are issues with the responsiveness of the liquid level sensor used in this design.
Without the DS18B20Z IC chip to correctly interpret temperature readings, the temperature sensor used in this design sometimes gave incorrect readings (i.e., -999.0 C).
Hardware
- mbed LPC1768
- eTape liquid level sensor
- DS18B20 temperature sensor
- Adafruit Bluefruit LE UART Friend
- Speaker
- Audio Amplifier (TPA2005D1)
- SD Card Reader
- uLCD-4DGL
Schematic
eTape liquid level sensor
mbed | liquid level sensor |
---|---|
p17 | pin 1 |
gnd | pin 2 |
p17 | pin 3 |
Vout | pin 4 |
DS18B20 temperature sensor
mbed | temperature sensor |
---|---|
gnd | GND (black wire) |
Vu | DQ (red wire) |
4.7K ohm resistor between VDD (white wire) and DQ (white wire).
Adafruit Bluefruit LE UART Friend
mbed | Adafruit BLE |
---|---|
gnd | gnd |
(external 5V) | Vin |
p27 (Serial RX) | TXO |
p28 (Serial TX) | RXI |
Audio Amp (TPA2005D1)/Speaker
mbed | TPA2005D1 | Speaker |
---|---|---|
gnd | pwr - (gnd), in- | |
external 5V | pwr + | |
p18 | in + | |
out + | + | |
out - | - |
SD Card Reader
mbed | SD Card Reader |
---|---|
p8 | CS |
p5 | DI |
Vout | VCC |
p7 | SCK |
Gnd | Gnd |
p6 | D0 |
uLCD_4DGL
mbed | uLCD Header | uLCD Cable |
---|---|---|
5V=VU | 5V | 5V |
Gnd | Gnd | Gnd |
TX=p10 | RX | TX |
RX=p11 | TX | RX |
p12 | Reset | Reset |
Setup
Demonstration
Code
Import programmBED_smart_waterpack
An mBED smart waterpack.
Please log in to post comments.