Dry Bath

Made by Woo Kim

Found in DIoT 2018 1- Home Hack

People who live in a home furnished with bathtub sometimes thinks of taking a bath at their home. But, every time they fill up their tub, the user constantly checks the temperature of the water with their hands. Wetting their hands all the time. What if you have a sensor that tells you what exact temperature is? If so, all you have to do is to turn the knob as you want the temperature to be. Keep yourself dry until the last moment you jump into your tub!

0

Problem Statement

How can we help people who takes frequent bath at their homes experience extreme pleasure.

0

Goal

I believe many people experience and follow through certain routine when they take a bath at home. If you are lucky enough to afford electronically manipulated bathtub, this project may not be for you. But whomever has manually manipulated water nozzle for their tub, this is a project for you. Previous experience might have been cumbersome at some point. This project is for people who wants to put pleasure of revitalizing moment until the last moment.

0

Parts

Particle Photon

DB18B20 Temperature sensor (Sealed)

Jumpwires

10K resistor

IFTTT Android/iOS Application

0

Process

Below is my schematics. I followed a tutorial from "Using the Sensors" from http://diotlabs.daraghbyrne.me/3-working-with-sensors/DS18B20/.


After setting the basics for this project which was receiving data from temperature sensor, I was planning to utilize DO BUTTON application to get push notification on my smartphone. But, it seems like DO BUTTON does not provide service anymore on Google Play store. So I pivoted to rather receive SMS for notification every time I push the Check Now on IFTTT. This information will be provided on later section of this publication.

0

Make a new applet with monitoring variables as a trigger and SMS as output

0

Select test operation option as well as comparison value as you wish

0

Turn on the applet and press "Check now" button to see if it sends you notification and SMS

0

IFTTT Connected (cont.)


0

This is how it should look like if it is properly operating.

0

Outcome

0
tub temperature sensor
κΉ€ν˜•μš° - https://youtu.be/4J3JW573aMc
0
// This #include statement was automatically added by the Spark IDE.
#include "OneWire.h"

// This #include statement was automatically added by the Spark IDE.
#include "spark-dallas-temperature.h"

#include "math.h"

#include "application.h"
// -----------------
// Read temperature
// -----------------

// Data wire is plugged into port 0 on the Arduino
// Setup a oneWire instance to communicate with any OneWire devices (not just Maxim/Dallas temperature ICs)
OneWire oneWire(D0 );

// Pass our oneWire reference to Dallas Temperature.
DallasTemperature dallas(&oneWire);

// Create a variable that will store the temperature value
double temperature = 0.0;
double temperatureF = 0.0;

void setup()
{
  // Register a Particle variable here
  Particle.variable("temperature", &temperature, DOUBLE);
  Particle.variable("temperatureF", &temperatureF, DOUBLE);


  // setup the library
  dallas.begin();
}

void loop()
{
  // Request temperature conversion

  dallas.requestTemperatures();

  // get the temperature in Celcius
  float tempC = dallas.getTempCByIndex(0);
  // convert to double
  temperature = (double)tempC;

  // convert to Fahrenheit
  float tempF = DallasTemperature::toFahrenheit( tempC );
  // convert to double
  temperatureF = (double)tempF;

  delay(5000);

}


/*
The API request will look something like this:
GET /v1/devices/{DEVICE_ID}/temperature

# EXAMPLE REQUEST IN TERMINAL
# Device ID is 0123456789abcdef
# Your access token is 123412341234
curl -G https://api.particle.io/v1/devices/0123456789abcdef/temperature \
  -d access_token=123412341234
*/
Click to Expand
0

Reflection

Simplest form I could think of, this project led to to a new phase of coding and electronics. Ranging from as simple as how the circuit and electrons work to how to code each parts and components to work as you would want them to. Even publishing the data on the internet to retrieve relevant insight according to the topic we have dived into. This project worked for me as a stepping stone to discover one of the pain point I had a chance to alleviate those issues. By the end of this IoT course, I might be equipped with skills able to transform my home in to more 'personalized' place for me.

x
Share this Project

Courses

49713 Designing for the Internet of Things

· 25 members

A hands-on introductory course exploring the Internet of Things and connected product experiences.


Focused on
About

People who live in a home furnished with bathtub sometimes thinks of taking a bath at their home. But, every time they fill up their tub, the user constantly checks the temperature of the water with their hands. Wetting their hands all the time. What if you have a sensor that tells you what exact temperature is? If so, all you have to do is to turn the knob as you want the temperature to be. Keep yourself dry until the last moment you jump into your tub!

Created

January 24th, 2018