s0 Counter

Moderators: grovkillen, Stuntteam, TD-er, enesbcs

Post Reply
Message
Author
pietvdbroek
New user
Posts: 1
Joined: 29 Dec 2024, 18:13

s0 Counter

#1 Post by pietvdbroek » 29 Dec 2024, 18:17

Hello everyone, let me introduce myself, my name is Piet and I am an installation engineer. Now I am working on the next project. I would like to read 16 pulse meters in Domoticz via the Raspberry Pi. Now I have found a diagram on the internet with a 5k6 resistor and a 10k resistor. resistance, is there someone who can help me get all this going, even the connection with domoticz does not work

TD-er
Core team member
Posts: 9508
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: s0 Counter

#2 Post by TD-er » 29 Dec 2024, 19:57

S0 is typically the transistor output of an optocoupler.
So you need some resistor to allow the level to be pulled to some known level (either GND or 3V3)

There have been multiple topics about this on the forum, like this one:
viewtopic.php?t=9121

User avatar
Ath
Normal user
Posts: 4116
Joined: 10 Jun 2018, 12:06
Location: NL

Re: s0 Counter

#3 Post by Ath » 30 Dec 2024, 10:24

When using a Raspberry Pi to run RPiEasy, I would first work on getting RPiEasy to run properly on the RPi.
Then get the connection to Domoticz working as intended either via HTTP or MQTT (you'll need a MQTT broker like Mosquitto). You could use a temperature sensor like a BME280 or BMP280 connected via I2C, to have something simple that produces a regular stream of data.
And once that's running smoothly, concentrate on interfacing the 16 meters to the RPi. RPiEasy has a pulse counter plugin available.
/Ton (PayPal.me)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest