birdy61
Posts: 4
Joined: Wed Nov 20, 2019 6:05 pm

high speed counter

Wed Nov 20, 2019 6:53 pm

I am in need for a counter for my bubblecounter in my beerbrewery.
Does anyone know if there is a IC that can do the counting ( 4 -10 bubbles/sec) for me, and which I can readout on a 5 minute frequency my raspberry bij an I2C port or so?

Thanks for the hint in advance

Birdy61

boyoh
Posts: 1468
Joined: Fri Nov 23, 2012 3:30 pm
Location: Selby. North Yorkshire .UK

Re: high speed counter

Wed Nov 20, 2019 11:05 pm

You have got me beat, what is a bubble counter. What is the method you are using
To get your pulse in to the counter, the counter is no problem as long as it will get a pulse

Regards BoyOh
BoyOh ( Selby, North Yorkshire.UK)
Some Times Right Some Times Wrong

User avatar
joan
Posts: 14887
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: high speed counter

Thu Nov 21, 2019 8:54 am

boyoh wrote:
Wed Nov 20, 2019 11:05 pm
You have got me beat, what is a bubble counter. What is the method you are using
To get your pulse in to the counter, the counter is no problem as long as it will get a pulse

Regards BoyOh
You are overthinking. A bubble counter counts bubbles. Probably bubbles of CO2 or H during the fermentation process.

User avatar
B.Goode
Posts: 10191
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: high speed counter

Thu Nov 21, 2019 9:26 am

birdy61 wrote:
Wed Nov 20, 2019 6:53 pm
I am in need for a counter for my bubblecounter in my beerbrewery.
Does anyone know if there is a IC that can do the counting ( 4 -10 bubbles/sec) for me, and which I can readout on a 5 minute frequency my raspberry bij an I2C port or so?

Thanks for the hint in advance

Birdy61


I don't have a direct answer, but the hint is that the Author/Developer/Maintainer of the widely adopted RPi.GPIO library is Head Brewer here - https://www.fuzzyduckbrewery.co.uk/

(My understanding is that the library was developed to support the use of RPi boards in the automation of the brewery. I don't know if bubble counters are involved.)

birdy61
Posts: 4
Joined: Wed Nov 20, 2019 6:05 pm

Re: high speed counter

Thu Nov 21, 2019 5:47 pm

Joan is right, during the beer production sugar is being transformed to alcohol and CO2.
The CO2 is coming out of the brewingvessel passing a sifon with water.
I want to use a IR-switch to produce the pulse.
From there I am not sure how to get the pulses into the Rpi.

My idea was to use a counter IC which can be connected to a I2C-port of my Rpi to readout the counter.
Does anyone know wich IC might be useful?

User avatar
joan
Posts: 14887
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: high speed counter

Thu Nov 21, 2019 6:50 pm

If the pulses are 3V3 safe you can connect them to a Pi GPIO. Then use any GPIO library to count the pulses.

birdy61
Posts: 4
Joined: Wed Nov 20, 2019 6:05 pm

Re: high speed counter

Thu Nov 21, 2019 8:49 pm

joan wrote:
Thu Nov 21, 2019 6:50 pm
If the pulses are 3V3 safe you can connect them to a Pi GPIO. Then use any GPIO library to count the pulses.
Thanks Joan,
But will the Rpi be able to catch every puls at 5/sec?
There are other applications running on the pi as well like monitoring temperature

User avatar
joan
Posts: 14887
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: high speed counter

Thu Nov 21, 2019 8:55 pm

Yes. 5000 a second might start to give problems with Python, 50000 a second might start to give problems with C.

birdy61
Posts: 4
Joined: Wed Nov 20, 2019 6:05 pm

Re: high speed counter

Thu Nov 21, 2019 9:44 pm

joan wrote:
Thu Nov 21, 2019 8:55 pm
Yes. 5000 a second might start to give problems with Python, 50000 a second might start to give problems with C.
actualy I'm a python nerd. Does C has better performance?

User avatar
joan
Posts: 14887
Joined: Thu Jul 05, 2012 5:09 pm
Location: UK

Re: high speed counter

Thu Nov 21, 2019 9:48 pm

C will give better performance for some applications. Remember Python is very modular and most of the modules will actually be written in C anyhow. I'd only start worrying if you actually have a problem.

User avatar
davidcoton
Posts: 4909
Joined: Mon Sep 01, 2014 2:37 pm
Location: Cambridge, UK
Contact: Website

Re: high speed counter

Thu Nov 21, 2019 9:49 pm

birdy61 wrote:
Thu Nov 21, 2019 9:44 pm
actualy I'm a python nerd. Does C has better performance?
Yes. C is compiled to native machine code, while Python code is normally interpreted from source at run time.
As Joan says, it's unlikely to matter at 5 counts per second.
Signature retired

Return to “Beginners”