![]() | ![]() | ![]() |
| | |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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 Last edited by baftab; 11th December 2007 at 02:53 PM. | |
| |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| 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?? | |
| |
| | (permalink) | |
| Quote:
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/ | ||
| |
| | (permalink) |
| hi, The 10K will limit the input to the MCU pin to +5V.
__________________ 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. | |
| |
| | (permalink) |
| thanks a lot | |
| |
| | (permalink) |
| one thing more using uln2803...will it work? i mean instead of a frive circuit...can i use uln2803??? | |
| |
| | (permalink) |
| dear sir, can u send me remote controller circuit for control two relayas !! please reply me soon as possible (kasungayantha@yahoo.com) thankyou !! | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |