Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 1261

Python • pulse counting with python

$
0
0
Hello there

I have in the garden a Raspberry for charging a battery with a solarpanel, the Raspberry does also measure temp, RH and airpressure and sends this to a cloud.

Now I want also measure the windspeed with an anemometer and the rain with a rainmeter

I am looking for a simple code for counting pulses with python.

The anemometer is connected to input GPIO 31 and the windsensor os connected to input GPIO 29

The counts must be read every 10 seconds.

On a Arduino (nano) it is possible to use timers for counting, can this be done with Raspberry with Python.

thanks in advance

Jos

Statistics: Posted by The grumpy grandpa — Fri Mar 15, 2024 2:37 pm



Viewing all articles
Browse latest Browse all 1261

Trending Articles