moderndevice / Wind_Sensor

Documents and Arduino Code for using the Modern Device Wind Sensor
23 stars 20 forks source link

Example Code throwing NaN for Windspeed on Mine? #1

Closed bwstud closed 9 years ago

bwstud commented 9 years ago

Hey there,

I'm running the wind sensor of an Uno for a student project. In wiring it up I accidentally ran the pin for RV to A0 and the pin for TMP to A1. No big deal, right? Just flip-flop the analogPinFor___ variables.

I only ran it a couple times prior to extending jumper wires so I could put the sensor in a housing, but I'm now always getting NaN for windspeed, which I don't recall happening before.

screen shot 2015-03-17 at 11 01 48 pm

Am I losing it? Or just missing something that's right in front of my nose? Could I have broken something in the sensor that could cause this? Running the stock example code in Arduino 1.6.1

Thanks!

moderndevice commented 9 years ago

Brian,

Are you running on a regulated 5 volt supply. If the temp is too far off this can happen. Also you may need to set the zero wind calibration as explained in the sketch.

You may see this too if your temps are too far from 25C.

Let me know your circumstances please.

Paul Badger

On Mar 18, 2015, at 2:06 AM, Brian Studwell notifications@github.com wrote:

Hey there,

I'm running the wind sensor of an Uno for a student project. In wiring it up I accidentally ran the pin for RV to A0 and the pin for TMP to A1. No big deal, right? Just flip-flop the analogPinFor___ variables.

I only ran it a couple times prior to extending jumper wires so I could put the sensor in a housing, but I'm now always getting NaN for windspeed, which I don't recall happening before.

Am I losing it? Or just missing something that's right in front of my nose? Could I have broken something in the sensor that could cause this? Running the stock example code in Arduino 1.6.1

Thanks!

— Reply to this email directly or view it on GitHub.

bwstud commented 9 years ago

Figured it out! I'm an idiot, as suspected, and had a hardware issue. Now it works Swimmingly.

Thanks, for responding, Paul.