CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

Hardware Design input

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
rwskinner



Joined: 08 Dec 2006
Posts: 125
Location: Texas

View user's profile Send private message

Hardware Design input
PostPosted: Fri Mar 23, 2007 6:21 am     Reply with quote

I have to build a small industrial board for our own use which will allow several 4 to 20ma sensors and 24 volt logic DIO.

I generally take the 4-20ma and run thru a precision 250ohm resistor to get 1-5 volts and not any other filtering. Does anyone have any suggestions for a decent input conditioning circuit for the 4-20 inputs that is relatively simple and reliable other than what I'm doing. I'm using 12 bit adc and trying to insure I don't get to much noise of flutter. I'll most likely use a max 12 bit 8 channel ADC.

DIO, I plan on using optos with the high side on 24 volts and use the low side for the inputs. Grounding the input turns on the opto. Inadvertantly connecting 24 volts to the opto should hurt it. Instead of using all the pic's IO for this, I'll most likely use some P2S shift registers like the 165's.
165 input would be pulled low, the opto if on would pull the input High.
Neutone



Joined: 08 Sep 2003
Posts: 839
Location: Houston

View user's profile Send private message

Re: Hardware Design input
PostPosted: Fri Mar 23, 2007 8:48 am     Reply with quote

rwskinner wrote:
I generally take the 4-20ma and run thru a precision 250ohm resistor to get 1-5 volts and not any other filtering.

Use a resistor that is temperature and time stable. Precision is less of an issue as you can calibrate the inputs. I would expect you are going to put one side of the load resistor to ground. If you connect the other side to the analog input through a resistor and place a capacitor across the analog input and ground you will have a nice RC filter. This will help protect the input and keep the input stable. The RC time constant should be matched to your sampling rate and input resistance.

rwskinner wrote:
I'll most likely use a max 12 bit 8 channel ADC.

With filtering the PIC can read 12 bits. You could skip the external chip.

rwskinner wrote:

Instead of using all the pic's IO for this, I'll most likely use some P2S shift registers like the 165's.

You could chose a PIC with enough IO.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group