![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
hi , i have a problem in interfacing sensors which work on 9-12 Volt and a microcontroller which work on 5 volt . Any ideaS? | |
| |
| | #2 |
|
Probably have to use two power supplies. If your sensors have analog outputs, you're going to have to put them through an A to D converter to make use of them anyway.
| |
| |
| | #3 |
|
Use an LM339 quad Comparator or an LM393 dual Comparator. They work well on a single supply. The output is a TTL/CMOS compatible open collector output which can be pulled up to whatever Vcc your processor is running on. If you look very carefully they may even have single comparators in a SOT23-5 package. Be careful you don't have both of the inputs outside the common mode range. With a reference at V+/2 this should be no problem if V+ is in the 9-12Volt range. Don't forget the bypass caps on the comparator either.
| |
| |
| | #4 |
|
How about two resistors as a voltage divider? All the other solutions seem overly complex to me for such a simple problem.
__________________ "Because I be what I be. I would tell you what you want to know if I could, mum, but I be a cat, and no cat anywhere ever gave anyone a straight answer, har har." | |
| |
| | #5 | |
| Quote:
Quality of answers we be in proportion to the quality of the specfic information you can provide...... Lefty | ||
| |
| | #6 |
|
it is an IR sensor which its output is 9-12 so this signal should be input to the micro controller 8051 atmel.
| |
| |
| | #7 |
|
How about a link to a datasheet. Your answers are just not very helpful.
| |
| |
| | #8 |
|
it is a 8051 atmel micro controller which is known and the sensor outputs 9 volt all i need is to interface it wid the micro controller input pin | |
| |
| | #9 | |
| Quote:
Well if it's a digital ouput from the sensor, that is it is either 9v or 0v then a simple voltage divider of say two 10k resistors should work. CMOS ouput to top of top resistor, common voltage of both sensor and micro to bottom of bottom resistor and micro input connected to where the two resistors hook together. That should give you a 4.5v input to your micro..... | ||
| |
| | #10 |
|
You need to check the max output from the CMOS IC's. TTL requires a larger operating current per gate then Cmos, check IC datasheets. You may have to drive it via a Cmos buffer. Also for TTL you have to use pull up / down resistors on gates not used, to avoid false triggering.
__________________ There are more ways to get to Rome. Electricity, Electric clocks, Meters and Trains are great. Please don't sent me private messages, I will not answer them. The questions asked can be discussed in the open forums. http://www.youtube.com/user/RODALCO2007 some interesting electrical stuff to watch. | |
| |
|
| Tags |
| cmos, ttl |
| Thread Tools | |
| Display Modes | |
| |
Similar | ||||
| Title | Starter | Forum | Replies | Latest |
| Need help with TTL | kittydog42 | General Electronics Chat | 5 | 17th April 2007 06:24 AM |
| CMOS gates | mtkee2003 | General Electronics Chat | 3 | 3rd July 2006 04:24 PM |
| Using a Microcontroller to replace TTL & CMOS ICs | William At MyBlueRoom | Micro Controllers | 3 | 25th June 2006 06:13 AM |
| TTL Vs CMOS Logic | ghauri | Electronic Projects Design/Ideas/Reviews | 1 | 2nd June 2006 06:57 PM |
| Logic Family characteristics | Styx | General Electronics Chat | 5 | 6th July 2005 08:01 AM |