03-06-2018, 17:19
(03-06-2018, 07:44)markkkk42 Wrote: Hi Werk
I have the 2 Inspeed sensors now and made up some fittings to mount them. i have used your style of mounting the pvc pipe. I am ready to hook it up but the wind vane outputs 0-3.3V and I saw somewhere a calibration routine you suggested for someone but I can not seem to find it now. I have both wired up to plug straight into my V3.1 TX boards but wanted to know about the cal program.
What else should I know about it.?
I see I need to select the inspeed 8 pulse for the speed but it was that 3.3V that I need to do something with?
By the way i got CumulusMX working and also rebooting straight into CumulusMX as well. I really like Cumulus and your weatherduino working together its a reallyneat system
Hi Mark,
Regarding the wind vane, if this is the first time you are connecting an analog wind vane to the TX board, the calibration procedure is automatic, you just have to manually do some complete rotations of the wind vane.
If you had previously used a different analog wind vane, then the previous calibration settings must be erased. The simple sketch bellow will do it for you:
Code:
#include <EEPROM.h> // Library to write and read from eeprom
byte Min_vane_reading_Eeprom_adr = 20;
byte Max_vane_reading_Eeprom_adr = 22;
void FirstRun_SetEeprom()
{
EEPROM.put(Min_vane_reading_Eeprom_adr, 1023);
EEPROM.put(Max_vane_reading_Eeprom_adr, (int)0);
}
void setup() {
FirstRun_SetEeprom();
}
void loop() {
}Copy and past to your arduino IDE, compile and upload it to your TX unit. Then reprogram the TX unit with the latest TX software.
Also, don't forget that for analog wind vanes, the JP1 jumper should be left open.

