[Project 14] – Servo Motor Controlled Analog Thermometer Using Thermistor (NTC) + Arduino

In this project we will make Servo Motor controlled analog thermometer using thermistor (NTC: 1Kohm) with Arduino. You can change the temperature range by yourself. I will use arduino uno in the circuit design program. I use usually arduino mega 2560. You can use the other arduino cards. Good Luck.

 

Cİrcuit:


[Project 14] - Servo Motor Controlled Analog Thermometer Using Thermistor (NTC) + Arduino111

Materials:


Arduino Uno / Mega  x 1
Breadboard  x 1
Servo Motor  x 1
1 Kohm resistor  x 1
Thermistor (NTC, 1 Kohm)  x 1
Jumper Cable

 

Program:

// letsarduino.com
//  [Project 14] – Servo Motor Controlled Analog Thermometer Using Thermistor (NTC) + Arduino

#include<Servo.h>
#define thermistorPin A0 
int resistorValue = 1000; // resistor value in circuit
Servo myservo;
 
void setup(void)
{
  myservo.attach(11);
  Serial.begin(9600);
}
 
void loop(void) {
  int reading;
 
  reading = analogRead(thermistorPin);
  reading = ( reading / 10 )  – 1;
  reading = resistorValue / reading;
  Serial.print("Celsius :");
  Serial.println(reading);
  
  delay(1000);
  
  int val = (int) reading;
  int temp;
  
  temp = map(val, 0, 49 , 0, 179); // you can chanage degree (0,49)
  
  myservo.write(temp);
  delay(100);
}

 

Project Related Images:


[Project 14] - Servo Motor Controlled Analog Thermometer Using Thermistor (NTC) + Arduino 32423[Project 14] - Servo Motor Controlled Analog Thermometer Using Thermistor (NTC) + Arduino 2134234



 

You may also like...