+ Reply to Thread
Results 1 to 7 of 7

Thread: 4 - 20 mA meter possible?

  1. #1
    aljamri Okay
    Join Date
    Jun 2006
    Posts
    278

    Thumbs up 4 - 20 mA meter possible?

    As Instrumentation Tech, we had a lot of repeated problems. One of them is lossing the panel meters and not getting replacement simillar in size and specifications, so that i thought if possible to make a panel meter using my new world of PIC using Assemblly and PIC16F876 with the following Specs:

    4 - wire meter ( not loop supplied )
    4 - 20 mA input ( or 1 to 5 V using 250hm: Resistor )
    0 - 10 output figures using two units of 7-Sigments LED ( Common Cathode ) with reselution of 0.1
    if it is possible and got a room from the outputs we may need two alarming set points for LO and HI signalling.

    All replys are very wellcommed starting from YES or NO and not ending with Web Links and Schematics. If it is possible i'll set this my next goal to achive.

    Thanks
    Last edited by aljamri; 25th August 2007 at 06:41 PM.
    Its what your friend in Your mind, what you in your friends mind


  2. #2
    Leftyretro Excellent Leftyretro Excellent Leftyretro Excellent Leftyretro Excellent
    Join Date
    Mar 2007
    Location
    Hercules, California
    Posts
    1,420

    Default

    Quote Originally Posted by aljamri
    As Instrumentation Tech, we had a lot of repeated problems. One of them is lossing the panel meters and not getting replacement simillar in size and specifications, so that i thought if possible to make a panel meter using my new world of PIC using Assemblly and PIC16F876 with the following Specs:

    4 - wire meter ( not loop supplied )
    4 - 20 mA input ( or 1 to 5 V using 250hm: Resistor )
    0 - 10 output figures using two units of 7-Sigments LED ( Common Cathode ) with reselution of 0.1
    if it is possible and got a room from the outputs we may need two alarming set points for LO and HI signalling.

    All replys are very wellcommed starting from YES or NO and not ending with Web Links and Schematics. If it is possible i'll set this my next goal to achive.

    Thanks
    Well it is all possible, none of your requirements are hard to reach with a PIC, however your third requirment would require three 7 segment decimal displays in that you specified .1% resolution which will requires a 0-999 display capacity, displaying as XX.X%.


    Good luck
    Lefty

  3. #3
    aljamri Okay
    Join Date
    Jun 2006
    Posts
    278

    Default

    Quote Originally Posted by Leftyretro
    Well it is all possible, none of your requirements are hard to reach with a PIC, however your third requirment would require three 7 segment decimal displays in that you specified .1% resolution which will requires a 0-999 display capacity, displaying as XX.X%.

    Lefty
    This remided me of another Spec. if possible which will save one 7-Seg and will not require a minus sign.

    we may add two LED's to show if the Input below 4mA ( 1V ) and over 20mA ( 5V ). This situation is likely to happen in our area of industry.
    Its what your friend in Your mind, what you in your friends mind

  4. #4
    aljamri Okay
    Join Date
    Jun 2006
    Posts
    278

    Default

    i am reading Nigel's analog tutorial to get idea how to start. but is 16F876a has enough pin for all my requirments:

    analog input ( voltage or current )
    output to TWO 7-segments
    two alarm set points indications
    two over/under range indications
    Its what your friend in Your mind, what you in your friends mind

  5. #5
    Hank Fletcher Excellent Hank Fletcher Excellent Hank Fletcher Excellent Hank Fletcher Excellent Hank Fletcher Excellent
    Join Date
    Mar 2007
    Location
    N.B., Canada
    Posts
    930

    Default

    Quote Originally Posted by aljamri
    i am reading Nigel's analog tutorial to get idea how to start. but is 16F876a has enough pin for all my requirments
    I think you'd be pushing the limits, but that depends on how you plan to drive the LED display. If you used BCD to 7-segment drivers (like the 74LS47) instead of driving the LED display directly from the PIC, you'd save considerably on the amount of PIC output pins you'd need (four or five for each LED digit as oppose to seven or eight, depending on whether you're using a decimal point).

    I don't fully understand your plan for these:
    two alarm set points indications
    two over/under range indications
    but depending on what they are and what you need, you might be able to accomplish what you want even without using the BCD to 7-segment drivers. Sorry I can't be of more help, but it doesn't seem like your PIC's datasheet is on the Microchip website - I just get diverted to the 16F877. I don't know how different that is from what you have, so it's hard for me to say. It seems that with the amount of I/O pins your PIC has (22, right?), that what you want should be possible, depending on what you need for your alarm set points and outside-range indications.
    Last edited by Hank Fletcher; 26th August 2007 at 06:23 PM.

  6. #6
    aljamri Okay
    Join Date
    Jun 2006
    Posts
    278

    Default

    Quote Originally Posted by Hank Fletcher
    I don't fully understand your plan for these:
    i need just single LED for each alarm set point to be let when certain limit reaches say 25% for LO and 85% for Hi ( preset in program )

    Quote Originally Posted by Hank Fletcher
    Sorry I can't be of more help, but it doesn't seem like your PIC's datasheet is on the Microchip website - I just get diverted to the 16F877.
    You are right they are at the same data sheet PIC16F87X along with another one. but my chip is 28pins. 16F877 is 40 pins.
    Its what your friend in Your mind, what you in your friends mind

  7. #7
    Super Moderator Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent Nigel Goodwin Excellent
    Join Date
    Nov 2003
    Location
    Derbyshire, UK
    Posts
    29,791

    Default

    Quote Originally Posted by aljamri
    i am reading Nigel's analog tutorial to get idea how to start. but is 16F876a has enough pin for all my requirments:

    analog input ( voltage or current )
    output to TWO 7-segments
    two alarm set points indications
    two over/under range indications
    Plenty of I/O pins on a 16F876 for you!, even a 16F88 or 16F819 would have enough.
    PIC programmer software, and PIC Tutorials at:
    http://www.winpicprog.co.uk

+ Reply to Thread

Similar Threads

  1. Analog Meter
    By windozeuser in forum General Electronics Chat
    Replies: 19
    Latest: 3rd October 2007, 02:44 PM
  2. Simple Field Strength Meter
    By ElectroMaster in forum Electronic Projects
    Replies: 8
    Latest: 14th June 2007, 01:07 PM
  3. Meter Data Sheets
    By Overclocked in forum Datasheet/Parts Requests
    Replies: 4
    Latest: 12th June 2006, 10:26 PM
  4. Panel meter, analog VS digital
    By Johnson777717 in forum General Electronics Chat
    Replies: 7
    Latest: 22nd June 2004, 11:33 PM
  5. Specifications Applied
    By Caltech in forum General Electronics Chat
    Replies: 1
    Latest: 25th December 2003, 05:00 PM

Tags for this Thread