Thank you for all the thoughts. To be clear (if not already obvious) I am not a professional programmer. I dabble and can hack away at several languages but none with much experience/expertise. I am anxious to learn the Pico as it can so so much more than the Arduino that I can handle moderately well. But I struggle with compiling since there are so many parts to it and am just starting to feel like I can, maybe, start writing some some simple programs.
This OP was one part of what I hope to one day be a full weather station capable of taking and displaying readings and even supplying data to a web page. I may never get there and yes I could buy one cheaper and have it work, but where is the fun and learning in that.
The OP was just about the wind speed. None of the other functions are so time dependent. Most of the sensors will give me the info when I ask for it pretty quickly. The anemometer has no memory or communication other than 5V ticks timed relative to the speed of the wind. This is the part I struggle with the most. Easy enough to just watch the pin and count/calculate, but my limited experience with interrupts on the Arduino, seemed to have issues with the library I typically use for I2C LCD. there may have been something else was the cause, and it has been a while since I tried but it seemed the interrupts worked if I didn't use the library. So at the most important, I want to not miss a tick while doing other things without tying up processing time, watching a pin.
From the input, I think the PIO may be overkill/over complication. I think I will start playing with interrupts on the Pico and see if that will do what I need.
I am interested in this...
Thanks again for all the input, I realize I may not be clear on what I am trying to to and why, but I am learning.
Bob
This OP was one part of what I hope to one day be a full weather station capable of taking and displaying readings and even supplying data to a web page. I may never get there and yes I could buy one cheaper and have it work, but where is the fun and learning in that.
The OP was just about the wind speed. None of the other functions are so time dependent. Most of the sensors will give me the info when I ask for it pretty quickly. The anemometer has no memory or communication other than 5V ticks timed relative to the speed of the wind. This is the part I struggle with the most. Easy enough to just watch the pin and count/calculate, but my limited experience with interrupts on the Arduino, seemed to have issues with the library I typically use for I2C LCD. there may have been something else was the cause, and it has been a while since I tried but it seemed the interrupts worked if I didn't use the library. So at the most important, I want to not miss a tick while doing other things without tying up processing time, watching a pin.
From the input, I think the PIO may be overkill/over complication. I think I will start playing with interrupts on the Pico and see if that will do what I need.
I am interested in this...
Can you point me to more info? Where/how is it counted and accessed?Not yet mentioned in this thread is that the PWM blocks can also count edges if applied to the 'B' channel (ie. any odd numbered GPIO pin).
Thanks again for all the input, I realize I may not be clear on what I am trying to to and why, but I am learning.
Bob
Statistics: Posted by parrst — Sun Aug 18, 2024 8:36 pm