Pages: [1]   Go Down
Author Topic: Arduino UNO and inspeed vortex wind speed sensor.  (Read 3710 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 13
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello all, I'm new in arduino developing. I want to use this sensor "http://www.inspeed.com/anemometers/Vortex_Wind_Sensor.asp" . It is supposed to create pulses and I have to measure the frequency in order to get my data.  Can someone please advice how can I do it with arduino UNO? What libraries can I use? I guess I will use the interupts , right? What else do I need to get readings from the sensor? Thanks in advance.
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 111
Posts: 5242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just put one wire to GND, the other to pin 2 (external interrupt 0) with a pullup resistor (10k should be OK) to 5V.

Then use the example code from attachInterrupt() (http://arduino.cc/it/Reference/AttachInterrupt). You have to register the time difference between two pulses (use micros() for that) and calculate the frequency from that.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 31
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just put one wire to GND, the other to pin 2 (external interrupt 0) with a pullup resistor (10k should be OK) to 5V.

Then use the example code from attachInterrupt() (http://arduino.cc/it/Reference/AttachInterrupt). You have to register the time difference between two pulses (use micros() for that) and calculate the frequency from that.

Hi Pylon,

Just wondering what you meant by a pull up resistor?

Thanks

- Heim
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 111
Posts: 5242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
Just wondering what you meant by a pull up resistor?

http://en.wikipedia.org/wiki/Pull-up_resistor
Logged

Charlottesville, VA
Offline Offline
Newbie
*
Karma: 0
Posts: 1
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I'm having trouble actually pulling the windspeed from the anemometer. It seems that the hall-effect sensor will send multiple pulses for each rotation if the windspeed is low enough. To account for this, I tried to set a required time differential between pulses, but when I set an adequate threshold (~0.1s) I lose performance at higher windspeeds (i.e. 25mph at 10Hz). Anyone have any suggestions?
Logged

Switzerland
Offline Offline
Faraday Member
**
Karma: 111
Posts: 5242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I would have to see how the signal looks like in low and high speed situations.

My first try would probably be to depend the time difference on the last value I calculated. That's because the wind speed cannot change immediately but it needs some time to accelerate the anemometer.
Logged

Pages: [1]   Go Up
Jump to: