Bioespin
  • Bioespin
  • Proyectos Ecológicos!
    • Proyectos >
      • Riego Automatico Por Humedad Revision2
      • Filtro de Agua con Botella Pet
      • Estufa para Campamento Reciclada
      • Calefacción Solar
      • Manipulador con sensibilidad a la temperatura
      • Cargador solar USB en 20 minutos!
      • Sensor de Temperatura para la Regadera
      • Riego Automatico Por Humedad
      • Sifón campana para sistema hidroponico
    • English >
      • Color Temp
      • Prosthesis with temperature sensitivity
      • 20 minutes USB solar charger!
      • Temperature Sensor for Shower
      • Automatic Watering System
      • Bell Siphone for Hidroponic System
      • ISP Programming
  • Datos Ambientales
    • Cuales son los vehiculos mas eficientes
  • Otros
    • Donaciones
    • Donations
  • Contacto

Temperature Sensor for Shower

This is a device that help you to use less water

Principal

Temperature Sensor for Shower

Imagen
With this device you diminish the use of water in your house or work. Instead of waiting to see vapor in the shower to get in, this device help you to know when the water its at the temperature you want and you can instantly enter to the shower. In this way you don't waste the water by not knowing when its ready. 

This device shows the temperature of the water with a led bar (made from 10 leds). The leds get on when the temperature of the water rise. Because we know that every person likes different temperature while taking a shower we add a knob so you can regulate the led bar to show the amount of light up leds at the temperature you wish. So in this way you can adjust the device to your needs.

Material:

1 Arduino UNO

7 red leds

3 green leds

10 220ohms resistance

1 9 volts battery

1 copper plaque 

1 temperature sensor tmp36 o lm35

1 10kohms potenciometer


Imagen
This is the device. Its made with fritzing like an arduino shield. So we can integrate it easily to arduino. The conections are really simple, each led goes to arduino, and the other end goes to a resistor and then to ground.  

The temperature sensor and the potenciometer are connected equally. Voltage, ground, and the center pin goes to arduino analog in. 
Imagen

The code

//Declare the potencimeter and the temperature sensor pins
const int potenciometro= A1;
const int Temperatura= 0;

//declare each led pin
const int led1= 9;
const int led2= 8;
const int led3= 7;
const int led4= 6;
const int led5= 5;
const int led6= 4;
const int led7= 3;
const int led8= 2;
const int led9= 1;
const int led10= 0;

//Declare the variables for the temp regulation
int pot_regulador= 0;
int ajuste_de_temp= 0;

//declare leds as outputs
void setup() {
  
pinMode(led1, OUTPUT);
pinMode(led2, OUTPUT);
pinMode(led3, OUTPUT);
pinMode(led4, OUTPUT);
pinMode(led5, OUTPUT);
pinMode(led6, OUTPUT);
pinMode(led7, OUTPUT);
pinMode(led8, OUTPUT);
pinMode(led9, OUTPUT);
pinMode(led10, OUTPUT);

}

//main program

void loop() {
  
//read voltage from the temp sensor and transform to celsius
   int reading = analogRead(Temperatura);
    float voltage = reading * 5.0;
 voltage /= 1024.0; 
 float TemperaturaC = (voltage - 0.5) * 100 ; 
 
//This part if for regulating the temperature
//in this program we divide the value of the potenciometer by 30 to have 30 degrees of regulation
//if you divide by 100 you have 10 degrees of regulation
// and divided by 50 you get 20 degrees of regulation
//the values are only aproximate they are not exact

   pot_regulador=analogRead(potenciometro);
  ajuste_de_temp=pot_regulador/30;
  delay(50);
  

//the temperature is read and the leds light up for the temperature that is measuring

  if(TemperaturaC<(10-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, LOW);
      digitalWrite(led3, LOW);
      digitalWrite(led4, LOW);
      digitalWrite(led5, LOW);
      digitalWrite(led6, LOW);
      digitalWrite(led7, LOW);
      digitalWrite(led8, LOW);
      digitalWrite(led9, LOW);
      digitalWrite(led10, LOW);

  }
  else if(TemperaturaC<(20-ajuste_de_temp) && TemperaturaC>(10-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, LOW);
      digitalWrite(led4, LOW);
      digitalWrite(led5, LOW);
      digitalWrite(led6, LOW);
      digitalWrite(led7, LOW);
      digitalWrite(led8, LOW);
      digitalWrite(led9, LOW);
      digitalWrite(led10, LOW);
  }
  else if(TemperaturaC<(30-ajuste_de_temp) && TemperaturaC>(20-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, HIGH);
      digitalWrite(led4, LOW);
      digitalWrite(led5, LOW);
      digitalWrite(led6, LOW);
      digitalWrite(led7, LOW);
      digitalWrite(led8, LOW);
      digitalWrite(led9, LOW);
      digitalWrite(led10, LOW);
  }
  else if(TemperaturaC<(40-ajuste_de_temp) && TemperaturaC>(30-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, HIGH);
      digitalWrite(led4, HIGH);
      digitalWrite(led5, LOW);
      digitalWrite(led6, LOW);
      digitalWrite(led7, LOW);
      digitalWrite(led8, LOW);
      digitalWrite(led9, LOW);
      digitalWrite(led10, LOW);
  }
  else if(TemperaturaC<(50-ajuste_de_temp) && TemperaturaC>(40-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, HIGH);
      digitalWrite(led4, HIGH);
      digitalWrite(led5, HIGH);
      digitalWrite(led6, LOW);
      digitalWrite(led7, LOW);
      digitalWrite(led8, LOW);
      digitalWrite(led9, LOW);
      digitalWrite(led10, LOW);
  }
  else if(TemperaturaC<(60-ajuste_de_temp) && TemperaturaC>(50-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, HIGH);
      digitalWrite(led4, HIGH);
      digitalWrite(led5, HIGH);
      digitalWrite(led6, HIGH);
      digitalWrite(led7, LOW);
      digitalWrite(led8, LOW);
      digitalWrite(led9, LOW);
      digitalWrite(led10, LOW);
  }
    else if(TemperaturaC<(70-ajuste_de_temp) && TemperaturaC>(60-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, HIGH);
      digitalWrite(led4, HIGH);
      digitalWrite(led5, HIGH);
      digitalWrite(led6, HIGH);
      digitalWrite(led7, HIGH);
      digitalWrite(led8, LOW);
      digitalWrite(led9, LOW);
      digitalWrite(led10, LOW);
  }
    else if(TemperaturaC<(80-ajuste_de_temp) && TemperaturaC>(70-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, HIGH);
      digitalWrite(led4, HIGH);
      digitalWrite(led5, HIGH);
      digitalWrite(led6, HIGH);
      digitalWrite(led7, HIGH);
      digitalWrite(led8, HIGH);
      digitalWrite(led9, LOW);
      digitalWrite(led10, LOW);
  }
    else if(TemperaturaC<(90-ajuste_de_temp) && TemperaturaC>(80-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, HIGH);
      digitalWrite(led4, HIGH);
      digitalWrite(led5, HIGH);
      digitalWrite(led6, HIGH);
      digitalWrite(led7, HIGH);
      digitalWrite(led8, HIGH);
      digitalWrite(led9, HIGH);
      digitalWrite(led10, LOW);
  }
  else if(TemperaturaC>(100-ajuste_de_temp)){
      digitalWrite(led1, HIGH);
      digitalWrite(led2, HIGH);
      digitalWrite(led3, HIGH);
      digitalWrite(led4, HIGH);
      digitalWrite(led5, HIGH);
      digitalWrite(led6, HIGH);
      digitalWrite(led7, HIGH);
      digitalWrite(led8, HIGH);
      digitalWrite(led9, HIGH);
      digitalWrite(led10, HIGH);
  }
}

/*There are other ways to make this code but we made it like that to be easy to read and modify. If you have another way to making it, please share with all in here*/
Imagen

Files

Here are the PCB files ready to print. You just have to download the pdf and print in real size to transfer directly to the PCB. 
Imagen
PCB
medidor_de_temperatra_para_regadera_etch_copper_bottom.pdf
File Size: 30 kb
File Type: pdf
Descargar archivo

fritzing file
medidor_de_temperatra_para_regadera.fzz
File Size: 50 kb
File Type: fzz
Descargar archivo

Set up

For the set up you have to make sure all the pieces are isolated from water.The tmp36 or lm35 are really good to measure temperature but they are not water proof. The way we do it is placing a spacer (just a little copper extension) between the shower head and the wall pipe, in there we paste with silicone the temperature sensor and make sure all the metal connections are isolated with the glue. This tube also help to get a more accurate measure because the copper is a good conductor. 

The sensor has to be glue with cold glue, because if you use hot glue it can melt down by the temperature of the water and make a short cut.

 Also we have to make the circuit case water proof. here you can use the hot glue.
Imagen
We hope you enjoy this project

Remember: 

-Make all your electronic part water proof using silicone

-Save water in all moment

If you like this project! 

Facebook
Twitter
Contacto

Any comment or question:

Write to bioespin@gmail.com or search for us in facebook
Con tecnología de
  • Bioespin
  • Proyectos Ecológicos!
    • Proyectos >
      • Riego Automatico Por Humedad Revision2
      • Filtro de Agua con Botella Pet
      • Estufa para Campamento Reciclada
      • Calefacción Solar
      • Manipulador con sensibilidad a la temperatura
      • Cargador solar USB en 20 minutos!
      • Sensor de Temperatura para la Regadera
      • Riego Automatico Por Humedad
      • Sifón campana para sistema hidroponico
    • English >
      • Color Temp
      • Prosthesis with temperature sensitivity
      • 20 minutes USB solar charger!
      • Temperature Sensor for Shower
      • Automatic Watering System
      • Bell Siphone for Hidroponic System
      • ISP Programming
  • Datos Ambientales
    • Cuales son los vehiculos mas eficientes
  • Otros
    • Donaciones
    • Donations
  • Contacto
✕