How to connects multiple sensor to the PIC16F877A

Status
Not open for further replies.

aishahsenik

New Member
Hello

I just want to ask how we want to know which pin to connect to the sensors.

Im currently doing my fyp on wireless monitoring system.
 
The PIC16F877A has 8 pins that can be used to read voltages. You can connect your sensors to any, or all, of those 8 pins. Study the "ANALOG-TO-DIGITAL CONVERTER (A/D) MODULE" section of the PIC16F877A data sheet.
 
Thank you so much for your info . I have about 5 sensors to be connect on pic..is it i have to connect to different pin from that 8 pins?
 
It depends on the output of your sensors, if they are discreet sensors like a thermistor and have a voltage o/p then you'd connect to the a/d pin as mentioned, however if your using a sensor with a digital interface like a bmp085 pressure sensor then you'd need to configure and use the pics i2c interface as this is what this sensor uses.
There are sensors such as the dht11 which use a non standard digital interface, you have to write your own code for these, and that can be tricky.
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…