Nick Koumaris
Published

DIY Art Deco Analog Thermometer

Learn how to build an Art Deco style analog thermometer with Arduino.

IntermediateFull instructions provided12 hours6,227
DIY Art Deco Analog Thermometer

Things used in this project

Hardware components

Arduino Nano R3
Arduino Nano R3
×1
Analog Voltmeter 0-5V DC
×1
DS18B20 Temperature Sensor
×1

Software apps and online services

Arduino IDE
Arduino IDE

Hand tools and fabrication machines

Dremel Tool

Story

Read more

Custom parts and enclosures

Thingiverse

http://www.thingiverse.com/thing:2180890

Schematics

Schematic

Code

Code snippet #1

Arduino
void loop() {  float temperature = getTemperature();
  int lightIntensity = getLightIntensity();
  
  if(lightIntensity < 30 && counter<60)
  {
    counter++;
    digitalWrite(12,HIGH);   
  }
  else if(lightIntensity < 30 && counter>=60)
  {
    digitalWrite(12,LOW);
  }
  else if(lightIntensity >= 30)
  {
    counter = 0;
    digitalWrite(12,LOW);
  }
  
  int voltage = temperatureToPWM(temperature);
  analogWrite(9,voltage);
  delay(1000);
}

Credits

Nick Koumaris

Nick Koumaris

13 projects • 187 followers
My name is Nick Koumaris and I am a software engineer from Sparta, Greece. I love building projects and share them with the world!

Comments