This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello
i am new to the MSP430 but would like to create a device that records temperature, Time, and can alert me when a specified temperature is reached and how long it took to get to that temperature from a base temperature. any help with the code would be much appreciated.
I have been trying to adapt the demo that comes default on the device to use an exterior sensor but cannot seem to find were the sensing device is identified.
I am using the M430G2553 chip and a DS18B20 Temperature sensor.
thank you
The temperature demo code uses an analog input channel of the ADC that is internally connected to the MSPs internal temperature sensor.
If oyu have an external temperature sensor that produces a linear output voltage, you'll have to attach it to a por tpin that has analog input capabilities and change the ADCs input channel to use this input.
Of course the calculation for temperature offset and gain is different for a different sensor (such as a PT1000), so the code for converting the mesured voltage into a temperature needs to be changed.
If using an NTC with its non-linear behavior, a lookup table with (Excel-calculated) voltage/temperature pairs would be easiest.
If using a temperature sensor with a digital interface such as SPI or I2C, you'll need to fetch the information by programming the appropriate interface.
**Attention** This is a public forum