![]() | ![]() | ![]() |
| | |||||||
| General Electronics Chat This forum is for general chat about electronics, eg: Dont know what a part does? Dont know how to read a circuit? Want to get an opinion? |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) | |
| Quote:
iv went over what you have said and come up with a schematic for my application, i have swapped the pins over so i dont have to use a pullup resistor, is this schematic correct??? i have not purchased the LM339 yet to test this as im not sure if this schematic is right? | ||
| |
| | (permalink) |
| Looks good, except for the LED details. See below. You should also connect a 0.1uF ceramic capacitor from +V to ground to prevent oscillation. You can also use LM393, which is the same comparator, but there are only two of them, in a 8 pin package. | |
| |
| | (permalink) |
| so is the output a 0 or a 1???????? and whats the best way to get the input from 7 down to 4.5 for my input,eg: resistors...,im just a little unsure how to go about it, because iv never had to do it. | |
| |
| | (permalink) | |
| Quote:
Use a resistor divider to get 4.5V from 7V. The resistor to ground will have 4.5V across it, and the resistor to +7V will have (7 - 4.5) 2.5V across it. So, the resistors have to be in the ratio of 4.5 to 2.5, which equals 1.8 to 1. I would use 180k from the + input to ground, and 100k from the + input to +7V. | ||
| |
| | (permalink) |
| thank's for the help i really appreciate it, one last question before i go and buy the LM339, does the current coming out of the voltage divider need to be around a certain current (mA) to work properly on the input or is it just reliant on the volts??? | |
| |
| | (permalink) | |
| Quote:
You can also consider buying the LM393 which is a 8-pin device having exactly the same type of comparators as LM339(two instead of four) inside.
__________________ L.Chung | ||
| |
| | (permalink) | |
| Quote:
Your biggest source of possible error is the tolerance of your 470uF capacitor. It is good that you are aware of the possible consequences of using resistors whose values are too high. | ||
| |
| | (permalink) |
| i went and bought the LM339 and set it all up and it works great | |
| |
| | (permalink) |
| Yes. You can discharge the capacitor using a diode to connect the positive end of the capacitor to the +ve power supply rail. When you switch the power off, the LM339 supply will falls and when its voltage falls to below capacitor terminal voltage minus one diode drop, the diode will conduct and dump the charge of the capacitor to the LM339 circuit until the whole circuit reaches 0.6V. This diode is reversed biased when the supply is healthy so plays no part in charging the capacitor and your RC time constant will remain the same.
__________________ L.Chung | |
| |
| | (permalink) | |
| Quote:
so thanks to everyone for all the help on this topic, i now know alot more about RC time constant and how to put it to practice. | ||
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| Title | Starter | Forum | Replies | Latest |
| Using Oscilloscopes | mechie | Electronic Theory | 9 | 29th November 2007 10:49 PM |
| microphone question | ulot | General Electronics Chat | 7 | 29th January 2005 06:16 PM |
| Question on 3-phase power | Kurupt | General Electronics Chat | 1 | 8th January 2005 07:12 AM |
| Pic Basic Question | Tako Kichi | Micro Controllers | 2 | 13th November 2003 08:54 PM |
| PIC Programming question | Tako Kichi | Micro Controllers | 3 | 14th October 2003 09:02 PM |