Temperature measuremnet can be used in applications such as 3D printers,common house hold applications,Electric vehicles etc.The proper management of battery temperatures will effect the performance and the life cycle of batteries. If not managed properly and temperature goes over optimum working conditions of the battery the rate of chemical reaction increses which will increse the performance temperorily but will degreade the life of the batteries because of the formation of unwanted reactions and sometimes can lead to conditions of thermal runway where heavy explosions can take place,if the temperature goes below optimum conditions (25 C) the chemical reactions process decreses but life incvreses but we cannot get hte performance that we expected that is the reason why electric vehicles does not provide expected mileage in the winter.By proper thermal management electric vehicle battery performance can be boosted and also provides saftey to vehicles.
There are various sensors available in the market such as LM35 from texas instruments and TMP36 from analog devices where you can buy and interface with a microcontroller such as Arduino and can measure with accuracy.The good thing about htese sensors is that they do ot require any calibration and easy to wire with just three pins named ground,Vcc,Output.the output of these type of sensors is a analog which has to be measured using analog pins.
I will write the code for finding the temperature of the sourroundings using microcontroller arduino.
float rawvalue;
float rawvoltage;
float tempC;
void setup()
{
Serial.begin(9600); //initialising
pinMode(A0,INPUT); //pin A0 as input where output of the sensor is read
}
void loop()
{
rawvalue=analogRead(A0);
rawvoltage=(rawvalue/1024)*5; //converting digital value to millivolts
tempC=rawvoltage*100; //converting the raw voltage to temperature in centigrade
Serial.print(tempC);
Serial.println('C');
delay(3000); //reading the temperature for every 3 seconds
}
why rawvoltage *100?
It is done because the sensor outputs temperature in value of 10mv/C.So to convert voltage in to temperature we multiply it with 100
If u have any doubts on above topic you can post in comment box or can mail me to avinashkalluri@gmail.com
There are various sensors available in the market such as LM35 from texas instruments and TMP36 from analog devices where you can buy and interface with a microcontroller such as Arduino and can measure with accuracy.The good thing about htese sensors is that they do ot require any calibration and easy to wire with just three pins named ground,Vcc,Output.the output of these type of sensors is a analog which has to be measured using analog pins.
I will write the code for finding the temperature of the sourroundings using microcontroller arduino.
float rawvalue;
float rawvoltage;
float tempC;
void setup()
{
Serial.begin(9600); //initialising
pinMode(A0,INPUT); //pin A0 as input where output of the sensor is read
}
void loop()
{
rawvalue=analogRead(A0);
rawvoltage=(rawvalue/1024)*5; //converting digital value to millivolts
tempC=rawvoltage*100; //converting the raw voltage to temperature in centigrade
Serial.print(tempC);
Serial.println('C');
delay(3000); //reading the temperature for every 3 seconds
}
why rawvoltage *100?
It is done because the sensor outputs temperature in value of 10mv/C.So to convert voltage in to temperature we multiply it with 100
If u have any doubts on above topic you can post in comment box or can mail me to avinashkalluri@gmail.com
No comments:
Post a Comment