I would greatly appreciate it if someone send me a code for counter in PSoC 3.
Below is some information about what I want it for:
Flowmeters = Netafilm-M series
In one of our sites (Mandarin) the irrigation schedule is usually twice a month and 24 hours each time. For example between 10/22 and 11/22 Data logger shows 42456 pulses in total for 41 hours of irrigation. The average pulses/hr will be 1035.5 and also the average Gal/hr will be 1345.
Solved! Go to Solution.
Based on water meter brochure you have the following interfaces -
Reed Switch Register Pulse Outputs: 10 or 3.26
Photo Diode Register Pulse Outputs: 1.0 or 0.055
MPE Digital Register Pulse Outputs: 10 or 3.26
You would have to interface one of these to counter input. The
digital output would have to be checked for compatibility with
voltage range of PSOC inputs. Its not clear to me what the
electricals are for the meter you are planning to use.
My question was what board for the PSOC ? Which family
have you choosen ? If you have a more complete description
of what you want the product / solution to do we can help guide you.
If the board is a PSOC developmenet board (DVK) then there is a
part number on it, usually the top, that is one of the 3 part numbers
I gave you earlier. Or using a magnifying glass read the part number
on the large square package with tiny pins coming out all 4 sides ( if
its a DVK board).
The water meter has two "registers", either a reed switch or a photo coupler
interface, The latter allows you to galvanically isolate the meter from the
electronics, and also allows easy interface due to its open collector output.
If you use the reed switch it has to be debounced, that can be done in software
or by using the glitch component in PSOC.
Some more considerations:
A datalogger needs some interface to query the actual state of the counter or reset the counter like a start/stop button
Should the data be displayed only or transmitted to any other device (printer, PC etc)
Has the counter state to be maintained during power-off states?
Do you need something like a Store / Recall button?
What we are asking you is named "Functional Specification Document" (FSD) which usually is the beginning of every successful project.
As a matter of fact, all of the spect I offered you can be done with a PSoC5. So it is wise to choose what you need, but only what you need. Any additional unused feature makes the realization more work intensive and the product can get confusing.
As Dana suggested, try to find out the exact type of board you are using, probably there comes a lot of documentation with it that can be really helpful for you.
Keep in mind you can design portable products, products with character
or graphic displays, wireless point to point or networked, web based IP
designs......depending on your engineering resources. Or we can point
you to competent PSOC experts, CyPROs, that provide fee for design
Further you can measure temp and pressure and strain and .....easily with PSOC.
In fact depending on family advanced signal processing is available via onboard
digital filter engine.
So again a spec would help forum guide you.