Go Down

Topic: Arduino UNO and inspeed vortex wind speed sensor. (Read 4022 times) previous topic - next topic

panagath

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.

pylon

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.


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


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?

pylon

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.

Go Up