Search found 4 matches

by ZooKeeper
Tue Feb 23, 2021 7:35 pm
Forum: Hardware Projects
Topic: Wind Speed?
Replies: 5
Views: 4809

Re: Wind Speed?

I had something like this in mind. This assumes you've installed the Switch primitive as per the docs: This is off the top of my head and untested. It will need adapting for your hardware, and after testing for scaling. The case of zero wind speed also needs some thought, whatever solution you adop...
by ZooKeeper
Mon Feb 22, 2021 5:00 pm
Forum: Hardware Projects
Topic: Wind Speed?
Replies: 5
Views: 4809

Re: Wind Speed?

I suggest you read up on uasyncio which is the library which supports concurrency. Official docs are here . There is a tutorial here . The latter library includes a class for switch debouncing, a subject explained here . Reading complete, understanding not. I did have debounce problems with the Rpi...
by ZooKeeper
Sun Feb 21, 2021 3:29 pm
Forum: Hardware Projects
Topic: Wind Speed?
Replies: 5
Views: 4809

Re: Wind Speed?

Thanks!! Now off to do some reading.... Admittedly the code first posted will not work, I copied the wrong one (this was a trial on the micro), see below to the correct working code on the Rpi and apologies for the confusion. My coding prowess (read: infancy) is quite clearly on display :( #!/usr/bi...
by ZooKeeper
Sun Feb 21, 2021 4:17 am
Forum: Hardware Projects
Topic: Wind Speed?
Replies: 5
Views: 4809

Wind Speed?

Excuse the potentially ignorant first post, been lurking/reading for a couple months. I have a working Python script for determining wind speed, my problem is that I cannot translate it into a working uPython script. I remember having similar problems when I began the Python project about 10 years a...