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 CCS Technical Support

Comparing two LDR connected to PIC

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



Joined: 19 Jan 2007
Posts: 27

View user's profile Send private message

Comparing two LDR connected to PIC
PostPosted: Sat Feb 24, 2007 8:40 am     Reply with quote

Hi
I have two LDR connected to two analog ports op PIC16F876 in the potential divider sort. I want to compare the two LDR values (I mean the voltage) and then give appropriate signal to drive the mtor. I am using CCS C compiler. Any suggesstion???????

Many Thanks
Quium
asmallri



Joined: 12 Aug 2004
Posts: 1635
Location: Perth, Australia

View user's profile Send private message Send e-mail Visit poster's website

PostPosted: Sat Feb 24, 2007 11:29 pm     Reply with quote

You should be away that the transfer characteristics between LDRs even in the same batch can vary significantly. You may need to perform some form of calibration on them if you want fine or medium level of granularity for the delta.
_________________
Regards, Andrew

http://www.brushelectronics.com/software
Home of Ethernet, SD card and Encrypted Serial Bootloaders for PICs!!
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