Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 25th August 2007, 07:38 PM   #1
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
__________________
Its what your friend in Your mind, what you in your friends mind

Last edited by aljamri; 25th August 2007 at 07:41 PM.
aljamri is offline  
Old 25th August 2007, 07:47 PM   #2
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
Leftyretro is offline  
Old 25th August 2007, 07:53 PM   #3
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
aljamri is offline  
Old 26th August 2007, 01:34 PM   #4
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
aljamri is offline  
Old 26th August 2007, 07:15 PM   #5
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:
Quote:
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 07:23 PM.
Hank Fletcher is offline  
Old 26th August 2007, 08:37 PM   #6
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
aljamri is offline  
Old 26th August 2007, 10:14 PM   #7
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
Nigel Goodwin is offline  
Reply

Tags
meter

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
Analog Meter windozeuser General Electronics Chat 19 3rd October 2007 03:44 PM
Simple Field Strength Meter ElectroMaster Electronic Projects 8 14th June 2007 02:07 PM
Meter Data Sheets Overclocked Datasheet/Parts Requests 4 12th June 2006 11:26 PM
Panel meter, analog VS digital Johnson777717 General Electronics Chat 7 23rd June 2004 12:33 AM
Specifications Applied Caltech General Electronics Chat 1 25th December 2003 06:00 PM



All times are GMT. The time now is 02:06 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker