Inspeed wind speed sensor (Reed switch) code - Printable Version
+- WeatherDuino Forum (
https://www.meteocercal.info/forum)
+-- Forum: Weather Stations - WeatherDuino Pro2 Line (
https://www.meteocercal.info/forum/Forum-Weather-Stations-WeatherDuino-Pro2-Line)
+--- Forum: Software Questions (
https://www.meteocercal.info/forum/Forum-Software-Questions)
+--- Thread: Inspeed wind speed sensor (Reed switch) code (
/Thread-Inspeed-wind-speed-sensor-Reed-switch-code)
Inspeed wind speed sensor (Reed switch) code -
atbukc - 29-03-2020
As I’m at home at lot now I can spend some time improving my setup, I recently purchased an Inspeed pair for wind speed and direction, the speed sensor is the reed switch model, so I specify according to this, Use 22 for Inspeed Vortex, read switch sensor.
#define WINDSPEED_SENSORTYPE 22
But I get a compilation error, 'FORM_FACTOR' was not declared in this scope
It looks to me like I need to add the following code
#if (WINDSPEED_SENSORTYPE == 22) // Inspeed Vortex Reed Sensor : Speed Pulse/sec 2.5 mph = 1.1176 m/s
#define ClickPerRev 1
#define FORM_FACTOR 1.1176
#endif
If I do it compiles ok, but want to be sure the calibration is the same for the reed switch version as the Hall sensor version.
I’m using WeatherDuino_Pro2_Universal_TX_v7.0_b002
Thanks Andy
RE: Inspeed wind speed sensor (Reed switch) code -
werk_ag - 29-03-2020
Hi Andy,
Indeed, the definitions for anemometer type 22 are missing. Your changes are correct and will be added on next software releases.
As much as I know the Inspeed anemometer with a read switch have the same characteristics of the model equipped with an hall sensor, so using the same definitions is correct.
Thank you.
Werk_AG