Creating 4 to 20MA ?


Closed Thread
Results 1 to 11 of 11
  1. #1

    Default Creating 4 to 20MA ?

    do anyone have knowledge of how to do circuitry for outputting the industry standard of 4-20ma, a internet search for "circuitry of/for 4 to 20MA" was fruitless.
    Some devices give the MA output from internal means or external DC supply thus governing the current.

    thanks,
    don
    amgen

    PS; did I not call the thermal switch in dc motor early on ??!!

  2. #2
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Are you wanting to make a sensor that outputs the signal or wanting to know how to read the signal?

    If it is reading the signal you want this may help
    http://www.omega.com/techref/das/4-20ma.html

    If you are making you own sensor, what type and method are you planning?

    Here is an article about current sources.
    http://en.wikipedia.org/wiki/Current_source

    And some other stuff.
    http://www.sensorland.com/HowPage028.html
    http://en.wikipedia.org/wiki/Current_loop
    Dave
    Always wear safety glasses while programming.

  3. #3
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amgen View Post

    PS; did I not call the thermal switch in dc motor early on ??!!
    Yes you did, And a good call it was too !
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by amgen View Post
    PS; did I not call the thermal switch in dc motor early on ??!!
    How did you know with the info given?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    How did you know with the info given?
    Probably borrowed mister_e's crystal ball, speakin' of Mister_e, where the heck is he ?
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  6. #6
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,807


    Did you find this post helpful? Yes | No

    Default

    Steve is a magnet for accidents. Hope he is doing much better now after testing how strong a car is...

    Ioannis

  7. #7
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    4-20mA Current Loop Primer:
    http://www.murata-ps.com/data/meters/dms-an20.pdf

    Best regards,

    Luciano

  8. #8
    Join Date
    Oct 2003
    Location
    holland
    Posts
    251


    Did you find this post helpful? Yes | No

    Default

    Here a schematic diagram I always use when using pic pwm and analog out.
    Attached Images Attached Images  

  9. #9


    Did you find this post helpful? Yes | No

    Default 4 to 20

    thankyou for links which I read all.

    Would like to make PIC ckts to output the 4-20 MA stuff.

    what I know (maybe), recieve ma. is easy, just read V across a 100 to 250 ohm resister and scale/calculate or limit the a/d reading. PIC can do 10 bit but many products reach to 12 or 14 bits.
    Send or creating ma signal seems a little more involved, apparently needed is 12 to 24 vdc supply to be able to adjust for wire and other loop resistance ??
    Getting a good DC level (0 to 5) volts from PIC with 1000 or more resolution --- not so easy. See diagram, and how to set limits of 4 and 20 ma with resisters ???
    .
    .
    .
    motor t-stat
    used simple process of elimination (mental process that is) the 2-A and F wires are generally all thats needed to run motor in both directions and more times than not, two small wires will be for temp sw.

    don
    Attached Images Attached Images  

  10. #10
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    See this link:
    http://www.maxim-ic.com/appnotes.cfm...te_number/722/

    Best regards,

    Luciano

  11. #11
    Join Date
    Aug 2012
    Location
    Comodoro Rivadavia - Patagonia Argentina
    Posts
    51


    Did you find this post helpful? Yes | No

    Default Re: Creating 4 to 20MA ?

    Name:  RX_4_20-0_5V_TX_0_5V-4_20ma.PNG
Views: 3430
Size:  26.8 KB
    Hello, last night very nearly completely finished my hardware to read 4-20mA (24VDC) and generate a PWM 4-20mA (24VDC) ... Everything runs based on two LM358 with single source (one is supplied 12Vdc and the other to 24VDC). GND is shared between the two operational amplifiers.
    I share the diagram, if you need anything else, ask me and I will share it...
    To read the 4-20mA signal and place it on the display, as I was tired last night and I can not think of anything to work with floating point, implement the following lines:

    Code:
    ADCIN 0, ent420
    nivel = ent420
    aux1=(ent420*100)/250            ;(V*100)/(R*100)
    aux1= aux1 *2
    ;****blabla bla
     LCDOUT $FE, 1
    LCDOut $fe,2,"Sal: ",DEC4 aux1,"mA"
    to generate the pwm to take me filter 0-5Vdc to create the 4-20mA, implement these lines:

    Code:
    PWM PORTC.2,nivelAUX,100  ;nivel PWM = (Vout * 255) / V.Fuente
    Sorry for my spanglish!!!!

    En Español
    Hola, anoche termine casi casi por completo mi hardware para poder leer señales 4-20mA (24Vcc) y generar con un PWM 4-20mA (24Vcc)... Todo corre en base a dos LM358 con fuente simple (uno se alimenta a 12Vcc y el otro a 24Vcc). GND se comparte entre ambos amplificadores operacionales.
    Te comparto el diagrama, si necesitas algo mas, me pedis y te lo comparto
    Para leer la señal 4-20mA y colocarlo en el display, como anoche estaba cansado y no se me ocurria nada para trabajar con punto flotante, implemente las siguientes lineas:

    Code:
    ADCIN 0, ent420
    nivel = ent420
    aux1=(ent420*100)/250            ;(V*100)/(R*100)
    aux1= aux1 *2
    ;****blabla bla
     LCDOUT $FE, 1
    LCDOut $fe,2,"Sal: ",DEC4 aux1,"mA"
    para generar el pwm que me lleve el filtro de 0-5Vcc para crear los 4-20mA, implemente estas lineas:

    Code:
    PWM PORTC.2,nivelAUX,100  ;nivel PWM = (Vout * 255) / V.Fuente
    Last edited by martintorres; - 3rd May 2014 at 22:55.

Similar Threads

  1. 4 pin 4 x 4 keypad interface using pic basic pro
    By dunlao_john in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 15th January 2009, 05:21
  2. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  3. 16f88 - pin RA4 as analog input
    By savnik in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 15th December 2006, 13:55
  4. Real Time Clock & Eeprom
    By smart_storm in forum General
    Replies: 8
    Last Post: - 17th February 2006, 19:03
  5. having problems with Hantronix 20x4 lcd
    By Rhatidbwoy in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 22nd December 2005, 12:22

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts