Go Down  Topic: [solved] Lilypad Erratic Temperature Sensor
Output (Read 1 time) previous topic - next topic  Andrew T.  Jun
12, 2013, 11:30 pm Last Edit: Jul 01, 2013, 04:50 pm by Andrew
T. Reason: 1 Hello, I am new to Arduino but I am looking forward
to learning about it and using it for some practical
applications.  Currently, I am using a Lilypad Simple Board with
the MCP9700 temperature sensor, both of which have been
disconnected from the protosnap board.  My goal is to measure
the ambient temperature and read it off of the COM port.
 However, I am getting erratic readings on screen.  The board is
connected to the computer via USB, with the sensor connected to
the board in what I understand to be the correct way: hot to
hot, ground to ground, and data to pin A2 (my own choice).  The
code I am using I found online:  Code: [Select] //TMP36 Pin
Variables int sensorPin = A2;  #define BANDGAPREF 14   //
special indicator that we want to measure the bandgap  * setup()
- this function runs once when you turn y