Good day,
I am a bit frustreted when suddendly the sensors does not return a value, while it was working...
I ma using an Davis anenometer and I have been helped with this tutorial
Actually, I am trying to understand what happen with the direction.
Note: My board works with 3.3V instead of 5V. My board is based on a Zero and a ATSAMD21G18 .
My Aref is open
My analogReadResolution is 12 (0-4095)
analogReadResolution(12);
analogReference(AR_DEFAULT); // 3.3V (10-12)
Case 1:
Then when the vane is lined up along the length of the support bar (North) I should read at A0 something close to 0 or 4025
Case 2:
when the vane is lined at 90° fromthe length of the support bar (Eats) I should read at A0 something close to 1000
Case 3
when the vane is lined at 180° fromthe length of the support bar (South) I should read at A0 something close to 2000
Case 4
when the vane is lined at 275° fromthe length of the support bar (West) I should read at A0 something close to 3000
And so on.
My problem, I read at my analog pin
Case 1 : 12 or 2346
Case 2 : 27
Case 3: 34
Case 4: 56
I ma surprised it goes from 56 and then to 2346.
Now, as I am not powering the sensor with a 5V, th output can different, but it should be lenear, istn't (specilly from case 4 to 2346)?
The sensors can be broken? I will try with anotherone later in the day...
What's your opinion?
Additionally the wind speed is not working, not at all.