Nick Koumaris
Published

DIY Art Deco Analog Thermometer

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

IntermediateFull instructions provided12 hours8,652
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
15 projects • 317 followers
Software engineer (13+ yrs) turned cybersecurity analyst. Passionate about AI security. SOC & IoT/embedded security. Maker & educator.

Comments