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

Sensor - What kind will make life easy?

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



Joined: 18 Jan 2011
Posts: 13

View user's profile Send private message

Sensor - What kind will make life easy?
PostPosted: Fri Jan 21, 2011 7:47 pm     Reply with quote

Hi,

I'm sorry for the slightly off topic question. I have a system in place which currently has two free I/O pins free on the PIC (not UART - they are in use).

I am after a kind of sensor, preferably on a breakboard, which can be easily coded in CCS. I looked at digital temperature sensors, but the code seems very involved. Is there a simple temperature / light / barometric etc sensor which is suitable for someone just starting out in CCS.

I'd like to understand the code, so I still need it to be simple, even if there is already an existing library for it. I looked at the DS1820 but the code for this was surprisingly long and complicated.

Regards,

James
gpsmikey



Joined: 16 Nov 2010
Posts: 588
Location: Kirkland, WA

View user's profile Send private message

PostPosted: Fri Jan 21, 2011 8:22 pm     Reply with quote

If the pins you have available can handle analog, check out the LM35 temperature sensor (output is voltage proportional to temp) or the one I am using MCP9700A from Microchip. Similar to the LM35. Both have a linear analog relationship between temperature and voltage so they are pretty easy to work with.

mikey
_________________
mikey
-- you can't have too many gadgets or too much disk space !
old engineering saying: 1+1 = 3 for sufficiently large values of 1 or small values of 3
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