Maker Pro
Maker Pro

4-20mA Current loop transmitter for RPM Measurement

mando87

Apr 2, 2018
9
Joined
Apr 2, 2018
Messages
9
Hey everyone,
i need little clarity.. i am using 4-20 mA current loop Transmitter for RPM Measurement.. The Transmitter has a Frequency Range of 0.0005Hz to 50KHZ... i have 250ohm Resistor connected to a current loop.. which intend produce Voltage of 1-5V.. i Got confusion with calculating this to Frequency..
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
i Got confusion with calculating this to Frequency
This should be stated in the manual of the transducer.
It could be proportional (linear mapping of 4 mA -> 0.0005 Hz ... 20 mA -> 50 kHz).
It could also be logarithmic or any other mapping which is not unlikely considering the dynamic range of 1:100 000 000
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,878
Joined
Jun 21, 2012
Messages
4,878
I am going to go way out on a limb here and guess that the "Transmitter for RPM Measurement" actually produces pulses in the range of 0.0005 Hz to 50 kHz.

With a 250 Ω resistor in the 4 mA to 20 mA current loop, a 4 mA state would produce 1 V and a 20 mA state would produce 5 V. Thus the signal is a series of pulses with low levels of 1 V and high levels of 5 V. The question then becomes: how will the OP process this (basically) digital signal and do something useful with it?

The usual method (because of the extremely wide frequency range) is to simply measure the period between successive pulses, typically by gating a counter, driven by a precision clock oscillator time-base, with the edges of the pulse train. It is important to capture the period of the pulse train, not just the period of the high states or the low states. That means the counter gate would be triggered ON with a rising (or falling) edge of the pulse train and then triggered OFF with the next rising (or falling) edge of the pulse train. The count in the counter would then represent the period between successive rising (or falling) edges of the pulse train. The reciprocal of the period measurement would then be proportional to the RPM.

If a continuous read-out is required, then two counters could be used in alternation. However, if the counter is implemented with a microcontroller, it is possible to start and stop the counter with pulses from the RPM transmitter, read the counter, and then reset the counter between "oscillator clock" pulses. This would allow a "continuous" read-out of the RPM, but limited in update speed by how long the interval is between the pulses from the RPM transmitter... 2000 seconds or about 33 minutes for 0.0005 Hz pulses. Also, the counter "clock oscillator" would have to operate at a significantly higher frequency than the fastest RPM transmitter frequency of 50 kHz to avoid losing resolution at the fastest RPMs.

A clock oscillator frequency of 1 MHz would probably be feasible with a fast microprocessor and efficient coding. If not, then two discrete IC counters can be used, with some latency in obtaining "real time" RPM data while each counter is gated on and off, its count read into memory, and the counter reset. Note that the "length" of the counter must be long enough to accommodate the number of counts accumulated during the period of the slowest RPM or else the counter will overflow and provide an inaccurate measurement of the period.
 

mando87

Apr 2, 2018
9
Joined
Apr 2, 2018
Messages
9
So as per your answer
if i have to convert the data into from analog to digital then i should use 4-20mA current loop receivers to be interface with Raspberry PI OR particle photon if I wanted the the counter to be use in continuous or discrete for long time or if modify the frequency i should go for Open source circuit boards ???
it will give far better results for RPM measurements?
 

Harald Kapp

Moderator
Moderator
Nov 17, 2011
13,700
Joined
Nov 17, 2011
Messages
13,700
So as per your answer
Which of the two answers do you refer to?
If to post #3 by Hop: is the assumption about the operating principle correct? What i sthe part number for the transducer? Can you post a datasheet or a link to the datasheet?
 

hevans1944

Hop - AC8NS
Jun 21, 2012
4,878
Joined
Jun 21, 2012
Messages
4,878
...if i have to convert the data into from analog to digital
You have only asserted, not established, that the transducer produces analog data.

Because of the extremely wide range of frequencies the transducer allegedly handles, I made a (possibly incorrect) assumption that it produces digital pulses in the range from 0.0005 Hz to 50,000 Hz, and that this pulse repetition frequency is directly related to RPM.

Although a 4 to 20 mA current-loop interface is typically used for analog signals, it is not necessary that an RPM transducer produce an analog signal. A current-loop interface will easily handle digital pulses.

Please do as @Harald Kapp has requested: post a description (manufacturer and part number) of the transducer. If possible, post a link to the vendor from which you obtained the transducer. Post the datasheet or a link to the datasheet.
 
Top