View previous topic :: View next topic |
Author |
Message |
Chantry
Joined: 18 Jan 2011 Posts: 13
|
Sensor - What kind will make life easy? |
Posted: Fri Jan 21, 2011 7:47 pm |
|
|
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
|
|
Posted: Fri Jan 21, 2011 8:22 pm |
|
|
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 |
|
|
|