The accelerometer is definitely an analog sensor. Make sure you have the wires connected correctly; the color code is nonstandard. Black goes to +5 volt power, red goes to ground, and white is the output to the RC.
Quote:
|
Originally Posted by psquared
should it be an int instead of double?
|
The value returned by the
Get_Analog_Value() function is a ten-bit integer. It can range from 0 to 1023.