ClassicDIY / SkyeTracker

Dual Axis solar tracker
Apache License 2.0
64 stars 19 forks source link

anemometer sensorVoltage calculation #14

Closed thijstriemstra closed 4 years ago

thijstriemstra commented 4 years ago

What are these values in code/ESP32/SkyeTracker/src/Anemometer.cpp

double sensorVoltage = -0.000000000000016 * pow(reading, 4) + 0.000000000118171 * pow(reading, 3) - 0.000000301211691 * pow(reading, 2) + 0.001109019271794 * reading + 0.034143524634089;

can you add some code comments for this? do these constants change when using a different anemometer?

graham22 commented 4 years ago

comes from this i would not change them

https://github.com/G6EJD/ESP32-ADC-Accuracy-Improvement-function/blob/master/ESP32_ADC_Read_Voltage_Accurate.ino

On Sat, Mar 21, 2020 at 10:17 AM Thijs Triemstra notifications@github.com wrote:

What are these values in code/ESP32/SkyeTracker/src/Anemometer.cpp

double sensorVoltage = -0.000000000000016 pow(reading, 4) + 0.000000000118171 pow(reading, 3) - 0.000000301211691 pow(reading, 2) + 0.001109019271794 reading + 0.034143524634089;

can you add some code comments for this? do these constants change when using a different anemometer?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/graham22/SkyeTracker/issues/14, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABIYATOE5ODBMCLGNTHEUADRITD7NANCNFSM4LQ5WWSA .

-- Graham A. Ross (613) 769-1331

thijstriemstra commented 4 years ago

Thanks, I will document that.