08-10-2017, 03:12
Sorry, I did a mistake.
Change this:
with this:
any further adjust, do it changing the 1600 value.
When posting code on the forum, please try using the "code" tag
Change this:
Code:
#if (Solar_Sensor == 2) // Apogee SP-110: Self-Powered Pyranometer (Solar / UV interface R2= 4700 Ohm)
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
#endifwith this:
Code:
#if (Solar_Sensor == 2) // Apogee SP-110: Self-Powered Pyranometer (Solar / UV interface R2= 4700 Ohm)
if (RX_Data[2] <= 6) 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
#endifany further adjust, do it changing the 1600 value.
When posting code on the forum, please try using the "code" tag

