09-10-2017, 03:39
Wires switched. Now ADC0 and ADC1 are paired and Vcc and Gnd are paired.
Edited the code from:
To:
And so far no fluctuations in the readings. Last night it continuously varied from 0 up to 3, back to 0, up to 6 sometimes. That can be seen on last nights Cumulus MX graph before I added the line to clip anything below 6.
Of course I also forgot to stop Cumulus MX before I yanked the sensor connector off the TX board. Now I have to edit all the ini files and logs to delete the solar readings at 10pm at night, LOL. Oh well.
Edited the code from:
Code:
#if (Solar_Sensor == 2) // Apogee SP-110: Self-Powered Pyranometer (Solar / UV interface R2= 4700 Ohm)
if (RX_Data[2] <= 13) RX_Data[2] = 0;
SolarRad = map(RX_Data[2], 0, 1023, 0, 1600); // Using OP - Formula outputs an integer, between 0 and 1750 W/m2
//SolarRad = round(((RX_data[3] * (1100 / 1024.0)) * 5); // Not using OP. Sensor connected directly to ADC input
#endifTo:
Code:
#if (Solar_Sensor == 2) // Apogee SP-110: Self-Powered Pyranometer (Solar / UV interface R2= 4700 Ohm)
if (RX_Data[2] <= 0) RX_Data[2] = 0;
SolarRad = map(RX_Data[2], 0, 1023, 0, 1600); // Using OP - Formula outputs an integer, between 0 and 1750 W/m2
//SolarRad = round(((RX_data[3] * (1100 / 1024.0)) * 5); // Not using OP. Sensor connected directly to ADC input
#endifAnd so far no fluctuations in the readings. Last night it continuously varied from 0 up to 3, back to 0, up to 6 sometimes. That can be seen on last nights Cumulus MX graph before I added the line to clip anything below 6.
Of course I also forgot to stop Cumulus MX before I yanked the sensor connector off the TX board. Now I have to edit all the ini files and logs to delete the solar readings at 10pm at night, LOL. Oh well.

