Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

How to interface a sensor to the 8051?

Status
Not open for further replies.

Altafhal

Member level 2
Joined
Feb 13, 2007
Messages
42
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Location
Pakistan
Activity points
1,573
interfacesensor to 8051

Hi
i am new to this forum and i wnana need some help.
we have a light sensor which gives logic 1 at the output of 8 bit adc when it comes on a white surface and 0 at blue. the o/p pins of the adc are 8 and we have appro. 8 sensors to interface with 8051. in 8051 we have 4 ports can v use 2 microcontrollers or there is some other way to interface these sensors to one microcontroller ie one sensor to one pin of uc.
we use all these sensors in our robotics project.
plz give me some ideas. thanks to all.
 

Without knowing what light sensors are you using it is a little bit a guess work ..
Usually chips have pins called /CS (chip select), /OE (output enable, or similar ..
You can connect all data bits of all 8 sensors together to one 8-bit port, P0, for example, and use another 8 8051's general purpose I/O pins to control /CS (/OE) pins ..
So, all together you will be using 16 pins .. and you will be reading one sensor at a time ..
For example, if you pull down /CS3 pin you will be reading sensor number 3 ..

Regards,
IanP
 

Hi,
I am hariharan.k from India, You better itegrate sensor and ADC part.ie
use single ADC and connect 8 light sensors through analog switch (like 4066 2Nos).

cheers.
K.hariharan.
 

cant you use a mux before adc and connect 8 sensors to that mux and out put to only one adc so that u can use onlu one mcu
--pradeep--
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top