loading

Easy Shower is a Technological project developed in Tecnológico de Monterrey (Campus Chihuahua) by a group of students currently becoming Mechatronic Engineers. This prototype allows the user to start a house-hold boiler from a smartphone application, via Bluetooth. The Dragonboard 410c not only starts and shuts down the boiler at users will; it also saves energy by preventing it from running all day long. The system includes a temperature sensor to indicate the user the moment hot water is ready. Always concerned about user's safety, the pressure sensor is capable to trigger an alarm notifying a person in case a gas leak is detected.

To elaborate this project properly you will nead AT LEAST:

· DRAGONBOARD™ 410C HACK KIT

· Mechanical pincers

· Lighter

· A balloon or any inflatable recipient

12V Solenoid·

MDF 2mx2m Sheet (Any thickness)

CPU Source power

Air pump

Glue or Cold Silicon

First, we need to connect the Hack Kit in order to be able to enter to Linaro’s terminal and configure GPIO, bluetooth and Analogical Inputs (Arduino’s Interface) programming the following configuration code in Linux language:

Configuration Code

$ sudo apt-get update

$ sudo apt-get upgrade

$ sudo apt-get dist-upgrade

sudo apt-get install python-pip python-dev ipython

sudo apt-get install bluetooth libbluetooth-dev

sudo apt-get install bluetooth libbluetooth-dev

sudo pip install pybluez

sudo apt-get install python-bluez

sudo apt-get update

sudo apt-get install Build-essential

sudo apt-get install autoconf

sudo apt-get install autogen

sudo apt-get install cmake

sudo apt-get install autoreconf

sudo apt-get install Libtool-bin

sudo apt-get install Pkg-config

sudo apt-get install Python-dev

sudo apt-get install python-pip

sudo apt-get install python-dev

sudo apt-get install ipython

sudo apt-get install libsoc-dev

sudo apt-get install libmraa-dev

sudo apt-get install libupm-dev

sudo apt-get update

sudo apt-get dist-upgrade -u –y

sudo apt-get install -y man-db manpages manpages-dev

sudo apt-get install -y libpython-dev libpython3-dev python-dev sudo apt-get install -y arduino-mk arduino

sudo apt-get install -y libmraa-dev libupm-dev libsoc-dev

sudo apt-get install -y scratch python-pip pip install spidev

sudo apt-get clean

After that, we have to download the Python programs and install the corresponding libraries:

Install libraries

$ sudo apt-get install libsoc-dev libmraa-dev libupm-dev

Install package dependencies

$ sudo apt-get install git build-essential autoconf automake libtool swig3.0 python-dev nodejs-dev cmake pkg-config libpcre3-dev

$ sudo apt-get clean

Install 96Boards configuration files

Using git clone the 96Boards-tools repository to your device and copy the respective files to your '/etc/udev/' directory

$ git clone https://github.com/96boards/96boards-tools.git

$ sudo cp 96boards-tools/70-96boards-common.rules /etc/udev/rules.d/

Use any text editor to edit /etc/profile.d/96boards-sensors.sh and add the following lines (This example uses “vim” text editor):

#EDIT THIS FILE

$ sudo vim /etc/profile.d/96boards-sensors.sh

#ADD THESE LINES

export JAVA_TOOL_OPTIONS=”-Dgnu.io.rxtx.SerialPorts=/dev/tty96B0”

export MONITOR_PORT=/dev/tty96B0

export PYTHONPATH=”$PYTHONPATH:/usr/local/lib/python2.7/site-packages”

#COPY FILE TO NEW LOCATION

$ sudo cp /etc/profile.d/96boards-sensors.sh /etc/X11/Xsession.d/96boards-sensors

Install 96BoardsGPIO:

$ git clone https://github.com/96boards/96BoardsGPIO.git$ cd 96BoardsGPIO$ ./autogen.sh$ ./configure$ make && sudo make install$ sudo ldconfig /usr/local/lib

//Code to create a new folder

mkdir foldername

//Code to go to an specific direction, it allow you to be inside on a folder

cd foldername

//This clone a library from internet and save it into your dragonboard

git clone https://github.com/96boards/96BoardsGPIO

//If you want to see the different files and folders on the current folder

ls

//To run a python program

sudo python name.py

print(“found %d devices” % len(nearby_devices))

Other requirement is to create an Android App, pereferably on the MIT App inventor webpage (http://appinventor.mit.edu/explore/) that is capable of recognizing and sending Dragonboard’s orders creating the main point of this Project… a controller at the palm of your hand.

For the creation of the physical prototype we will to work with the MDF sheet in order to make a kind of functional structure, we recommend to create the corresponding designs using AutoCAD and make the cuts using a professional LaserCut.

The code in charge of running the prototype is programmed in Python, You can find it below.

Step 1: Final Video

About This Instructable

101views

0favorites

License:

More by DanielP586:Easy Shower #Qualcomm #DragonBoard #96boards 
Add instructable to: