Search the Community
Showing results for tags 'analogRead'.
-
Basic analogRead function doesn't seem working.. I am using Energia as a compiler. I am trying the minimum configuration. I am getting a value but this value doesn't change with potentiometer. I have even tried to ground the signal (to see if it is Zero) but nothing has changed.. What might be wrong? thanks .
-
Hello, I have the MSP-EXP430FR5969 Wolverine Launchpad (Rev 1.6) and I'm trying to read the voltage output of a LM35 temperature sensor. I went on and used adafruit's code and adapted it to the launchpad. However, I'm not getting the correct voltage values. I verified the sensor is working as I used a multimeter to measure the voltage and it is working. Here's a snippet of the code static uint8_t analogInPin = A7 ; int sensorValue = 0; int voltage = 0; int temp = 0; . . . . . sensorValue = analogRead(analogInPin); voltage=sensorValue*(3600/1023.0); temp=(volt