Тёмный

Measuring Wind Speed with an Anemometer and Arduino 

ForceTronics
Подписаться 30 тыс.
Просмотров 75 тыс.
50% 1

Опубликовано:

 

4 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 51   
@RVLifeNOW
@RVLifeNOW 6 лет назад
Finally, someone who could explain what I needed to know!
@902Steeler
@902Steeler Год назад
I had so many sensors and lcd's going that interrupts messed up my program big time so all I did was go in to each sensor function and check. I set my windspeed function up such that if it didn't produce one period in a given time to break out of the loop and report no wind to the display. This made my code run soooo much better. Interrupt is great if you don't have many other functions running (like a print to lcd function)
@902Steeler
@902Steeler Год назад
I used the same anemometer for a pic 18 controller. These are awsome quality
@klaus-peterkastrup1882
@klaus-peterkastrup1882 4 года назад
Excellent video, the best on this subject I (EE) have seen!
@RoadRunnerMeep
@RoadRunnerMeep Год назад
I imagine switch bounce is when you spring a ruler up and down whilst holding it, there's an initial vibration, then a residual one afterwards
@TwisterKidMedia
@TwisterKidMedia 5 лет назад
For those curious, cup anemometers over sample the wind speed by anywhere from 5 to 7% SO if you need hyper accurate data remember to apply a correction.
@mindracing
@mindracing 5 лет назад
Excellent, clear explanation. Thanks!
@patrickmclaughlin6013
@patrickmclaughlin6013 3 года назад
Does a hall effect sensor need debounce? I'll have to have a go at that. This is a good video to make a tachometer with.
@dawgrules1
@dawgrules1 7 лет назад
Outstanding video !Thanks bud, well explained.
@darkshadowsx5949
@darkshadowsx5949 6 лет назад
if the wind sensor circuit always bounces the same you can compensate for that in programming where you ignore signals for a micro second. that shouldn't effect the result unless you get wicked fast wind speed unheard of on earth.
@thibauttheconsultant3730
@thibauttheconsultant3730 6 лет назад
very nice project my brother
@Hulkeq2
@Hulkeq2 4 года назад
I usually fix relay float problems in software tbh.. it depends on the timescales involved.. Arduino is fast enough to continuously read input in the 5 microsecond range .. That is more than enough to detect the non floating bit.
@XeALabs
@XeALabs 4 года назад
Would it be okay if the Vcc is changed to 5v? Are there any changes to be made to the code if Vcc is 5v?
@andresamautagonzaleszapata9237
@andresamautagonzaleszapata9237 2 года назад
where do you find that 1 pulse per rotation = 2.5 mph/Hz? I dont find this in the datasheet , best regards!
@billd01rfc
@billd01rfc 4 года назад
Great video, fantastic explanation, thnx! . . . but . . . using your sketch I don't get consistent, repeatable results. I've set up my anemometer on a stable base. set up a fixed air flow (old hair dryer anchored to a bench), I get very variable results, even with a stable physical setup (I don't really acre what the output is, as long as its stable, then I can calibrate from there). Thnx again for your great video, much appreciated, and advice would be great. billd
@ForceTronics
@ForceTronics 4 года назад
Hmmm sounds like you are missing triggers. You are using some type of switch denounce method, correct?
@Sudakatux
@Sudakatux 6 лет назад
I dont get why in the comment it sais Falling event but you set it to Rising `attachInterrupt(interruptPin, anemometerISR, RISING); //setup interrupt on anemometer input pin, interrupt will occur whenever falling edge is detected`
@ForceTronics
@ForceTronics 6 лет назад
I may have misspoke in the video. You can use either the rising or falling edge.
@ismailkhan887
@ismailkhan887 4 года назад
is 2.5 circumference =d*pi ?
@moaks5125
@moaks5125 5 лет назад
Great Video. From where did you source the anemometer
@ForceTronics
@ForceTronics 5 лет назад
Hello, here is a link to the company I purchased the anemometer from www.inspeed.com/
@khenmehko1804
@khenmehko1804 3 года назад
do you know how to make real time velocity-time grapgh using arduino?
@ForceTronics
@ForceTronics 2 года назад
No I don't
@sondaubacvlog
@sondaubacvlog 2 года назад
Something wrong bro, attachInterrupt(interruptPin, anemometerISR, RISING); => I think it must be: attachInterrupt(digitalPinToInterrupt(interruptPin), anemometerISR, RISING);
@DavidLeeMenefee
@DavidLeeMenefee 7 лет назад
Nice. Thanks....PEACE
@rapunzeleh546
@rapunzeleh546 6 лет назад
so i should be able to use this to lower trackers on a solar panel array back to 'flat' in case of high winds?
@ForceTronics
@ForceTronics 6 лет назад
Anemometers are commonly used to measure wind out doors so yes
@rapunzeleh546
@rapunzeleh546 6 лет назад
haha... i know what they're for... just thinking i could program it with an arduino to do what i want... if i get one with the directional dohickey, if the wind is X and the direction is Y, then close, otherwise, the wind will sort of 'defect' off the panels. i'm surprised there are not more youtube videos for this purpose.
@kashafwania5406
@kashafwania5406 5 лет назад
Where is program?
@ltmnizam4168
@ltmnizam4168 5 лет назад
Can i know what software u use
@ForceTronics
@ForceTronics 5 лет назад
Are asking about the software on the Arduino. I wrote that for the video and you can access the code on my blog (see link in video description)
@sickvic3909
@sickvic3909 7 лет назад
What is the 3rd wire on some anmomynomyters :)
@ForceTronics
@ForceTronics 7 лет назад
I can't answer for all Anemometer, but the 3rd wire on mine is not connected to anything. My guess is they are using some standard connector that has 3 wires but they only use 2.
@sickvic3909
@sickvic3909 7 лет назад
Thanks
@phillevitt637
@phillevitt637 7 лет назад
What value diode do you use in the debounce circuit?
@ForceTronics
@ForceTronics 7 лет назад
By value do you mean forward voltage drop? You can use any standard diode but you do want to make sure that the forward voltage drop is not so high that it reduces the voltage of the pulse so much that it is lower than the "high" threshold of whatever digital pin you are using to detect the pulse. I typically just make sure the forward voltage drop is
@phillevitt637
@phillevitt637 7 лет назад
Thank you very much for the quick reply. I initially used a Fairchild 1N4001 diode, that is typically used as an AC rectifier, and got some unexpected results. I changed it to a small LED and your program works fine on the Uno, as written. I want to use the anemometer to close my patio awning when the wind speed hits a predetermined threshold, e.g. aSetting >20 mph, and trigger a relay. I also want to use the Adafruit Feather Huzzah and relay wing, instead of the Uno, because 1) small size of the microprocessor and relay, and 2) wifi capability to transmit the data to a Raspi Pi and display. I notice that your code compiles and loads to the feather huzzah, but I am not getting anything on the serial monitor other than a couple junk characters? I will try to modify the code to get the feather to work... wish me luck.
@ForceTronics
@ForceTronics 7 лет назад
Rectifier diodes are typically made for pretty high forward currents and this application is fairly low current so maybe that is the issue. I don't have any experience with the Huzzah, but the strange characters sounds like a baud rate setting mismatch. Sounds like an interesting project, good luck on it.
@phillevitt637
@phillevitt637 7 лет назад
Thanks. The Feather Hazzah and wings are pretty cool, and the on-board wifi is a nice feature, like the new Raspi Zero. I checked the baud rate mismatch, and the outputs, just to see if the program was working but not printing correctly. It does send the junk message to the serial monitor every 1.8 seconds. I can write my own code to send messages to the serial monitor and it works as expected. I'm not sure if the Adafruit Huzzah supports interrupts, or if I need a library to correctly access the GPIO pins? I will attempt to find out from Adafruit . I've looked at a few Arduino IDE sketches for the Huzzah on GitHub, but there is not a lot to choose from. P.S. I like your channel and your obvious expertise. I've "borrowed" your code numerous times for projects, e.g. nRF24L01 radio code for robotics projects.
@ForceTronics
@ForceTronics 7 лет назад
The Hazzah has an ESP8266 on it which I believe supports interrupts so the Hazzah should support interrupts. Glad you found the content on the channel useful and I put the code out there for others to use.
Далее
Converting an Arduino PWM Output to a DAC Output
18:48
Просмотров 110 тыс.
Raspberry Pi Anemometer: Measuring Wind Speed!
20:51
Просмотров 108 тыс.
ВЫЖИЛ В ДРЕВНЕМ ЕГИПТЕ!
13:09
Просмотров 180 тыс.
Arduino Windspeed Anemometer or Redneck Speedometer?
15:50
Using Inexpensive 433 MHz RF Modules with Arduino
29:50
#1099 How I learned electronics
19:55
Просмотров 1,3 млн
How to Use Analog Wind Direction Sensor with Arduino
8:12
DIY 3D Printed IoT Weather Station Using an ESP32
9:24
Eliminating Switch Bounce with a Debounce Circuit
16:49