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

Color Temp

This is a programmable circuit to transform temperature into a LED color in RGB.

More Projects

Color Temp

Imagen
One of the most important thing in any process is to have a stable temperature. For this reason I thought it was a nice idea to make a circuit that measures temperature and display it in a simple way that you can notice if it's hot or cold fast. For this I make a circuit to measure temperature and display it in a RGB led by turning on and off different colors.   

Imagen
this is the circuit.

Schematics

Imagen

How to program it

If you want to know how to program the circuit by ISP click here.
ISP Programming

The code

You can copy the code below or just download it from this link.
Download Code
int sensorPin=A3;
int reading;
float voltage;

float TempC;

int red=1;
int green=2;
int blue=0;

void setup() {

}


void loop() {

 //Read the sensor to get a sense voltage
 reading = analogRead(sensorPin);
 voltage = reading *5.0;
 voltage /= 1024.0;
 
 //Tranform millivolts to temperature
 TempC = (voltage -0.5)*100;


  if(TempC<10){
      digitalWrite(red, LOW);
      digitalWrite(green, LOW);
      digitalWrite(blue, HIGH);
  }
  else if(TempC<20 && TempC>10){
      digitalWrite(red, LOW);
      digitalWrite(green, HIGH);
      digitalWrite(blue, LOW);
  }
  else if(TempC<30 && TempC>20){
      digitalWrite(red, LOW);
      digitalWrite(green, HIGH);
      digitalWrite(blue, HIGH);
  }
  else if(TempC<40 && TempC>30){
      digitalWrite(red, LOW);
      digitalWrite(green, HIGH);
      digitalWrite(blue, HIGH);
  }
  else if(TempC<50 && TempC>40){
      digitalWrite(red, HIGH);
      digitalWrite(green, HIGH);
      digitalWrite(blue, LOW);
  }
  else if(TempC<60 && TempC>50){
      digitalWrite(red, HIGH);
      digitalWrite(green, LOW);
      digitalWrite(blue, HIGH);
  }
    else if(TempC<70 && TempC>60){
      digitalWrite(red, HIGH);
      digitalWrite(green, LOW);
      digitalWrite(blue, HIGH);
  }
    else if(TempC<80 && TempC>70){
      digitalWrite(red, HIGH);
      digitalWrite(green, LOW);
      digitalWrite(blue, LOW);
  }
    else if(TempC<90 && TempC>80){
      digitalWrite(red, HIGH);
      digitalWrite(green, LOW);
      digitalWrite(blue, LOW);
  }
      else if(TempC<100 && TempC>90){
      digitalWrite(red, HIGH);
      digitalWrite(green, HIGH);
      digitalWrite(blue, HIGH);
  }
  else if(TempC>100){
      digitalWrite(red, HIGH);
      digitalWrite(green, HIGH);
      digitalWrite(blue, HIGH);
  }

}

If you like this Project.

Facebook
Contact

Any doubt or comment also 

Write us to bioespin@gmail.com or follow 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
✕