Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
LinkBack Thread Tools Display Modes
Old 11th December 2007, 02:48 PM   (permalink)
Default drive circuit for IR sensor

hey
i am working on a project and i need to connect at89c51 interrupt to an ir sensor

my ir sensor has an output of 2 v, when its nc
when its broken, its output goes to .8v

i cannot drive my controller with 2v, so made a drive circuit
i havent yet connected it to my controller
here is the schematic...tell me...is it enuff to convert 2v to 5 v??

thanks
Attached Images
File Type: jpg drive.JPG (28.7 KB, 33 views)

Last edited by baftab; 11th December 2007 at 02:53 PM.
baftab is offline  
Old 11th December 2007, 03:03 PM   (permalink)
Default

hi,
As the signal Vmax is only 2.1V and the Vbe junction of the transistor is about 0.7V, this means the 10K series resistor has only 1.4V across it.
This gives a base current of only 0.14mA!, if the transistor has a gain of 100,the transistor will only have a collector current
in the order of 14mA, which is too low to drive a relay.

I would reduce the 10K resistor to a value of about 330R.

What is the purpose of the relay in the IR sensor circuit,
[do not connect as relay to a MCU as you have drawn it, the back emf could damage the MCU]

It would be possible to connect a 4K7 resistor in place of the relay and use the transistor collector out of 0V/+5V to drive
the MCU pin.
[the signal would be inverted, but this should be easy to correct in the program].
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 11th December 2007 at 03:08 PM.
ericgibbs is offline  
Old 11th December 2007, 04:07 PM   (permalink)
Default

oh am sorry...i am not connecting a relay...
i was thinking of directly connecting the output to the mcu....the two wires tht say "to microcontroller"

i dont intend to drive a relay...wrote it wrongly in the title...

i'll change the base resistor , but the collector resistor is fine..right??
i dont intend to use a relay

is there anything else wrong??
baftab is offline  
Old 11th December 2007, 04:11 PM   (permalink)
Default

Quote:
Originally Posted by baftab
oh am sorry...i am not connecting a relay...
i was thinking of directly connecting the output to the mcu....the two wires tht say "to microcontroller"

i dont intend to drive a relay...wrote it wrongly in the title...

i'll change the base resistor , but the collector resistor is fine..right??
i dont intend to use a relay

is there anything else wrong??
Hi,
The collector resistor is OK.
I see from your drawing that you have +6V to the top of the resistor, will your MCU accept a +6V input! or does it specify a maximum of +5V?
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 11th December 2007, 04:20 PM   (permalink)
Default

hi,
The 10K will limit the input to the MCU pin to +5V.
Attached Images
File Type: gif untitled.gif (2.8 KB, 21 views)
__________________
Eric
"Good enough is Perfect"

PIC tutorials:
Gramo's: www.digital-diy.net/
Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th July 2008 at 12:22 PM.
ericgibbs is offline  
Old 11th December 2007, 05:04 PM   (permalink)
Default

thanks a lot
baftab is offline  
Old 12th December 2007, 10:49 PM   (permalink)
Default

one thing more
using uln2803...will it work?
i mean instead of a frive circuit...can i use uln2803???
baftab is offline  
Old 29th January 2008, 12:14 PM   (permalink)
Default

dear sir,
can u send me remote controller circuit for control two relayas !!
please reply me soon as possible (kasungayantha@yahoo.com)

thankyou !!
kasungayantha is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
temperature sensor circuit mpj111 Electronic Projects Design/Ideas/Reviews 8 23rd September 2007 04:18 PM
temperature sensor calibration dukebound85 Micro Controllers 11 21st November 2005 11:28 PM
Pressure sensor and OpAMP circuit design Building_A_Robot_Fish Electronic Projects Design/Ideas/Reviews 3 21st September 2004 02:58 PM
Led cyclic dimmer/controller circuit? yel-low Electronic Projects Design/Ideas/Reviews 13 9th August 2004 05:00 PM
On-time delay circuit using LM555 mozikluv Electronic Projects Design/Ideas/Reviews 9 24th October 2003 02:45 AM



All times are GMT. The time now is 01:38 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.

eXTReMe Tracker