![]() |
![]() |
![]() |
|
|
|||||||
| 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? |
|
|
Thread Tools | Display Modes |
|
|
(permalink) |
|
Hi guys.
I know this might sound like a stupid question but how do i use a Pot to vary the resistance to ground. The reason i ask is because i am doing a project at university where the output from an infrared transistor goes first to an atmega88 's ADC an then to ground through a resistor (normally 10 k ) but i want to use a POT to vary the amount of voltage getting to the atmega88 (changing the sensitivity). Could someone please explain how i am meant to hook the pots up to achieve this. Cheers |
|
|
|
|
|
|
(permalink) |
|
hi,
The 10K0 pot has three terminals, one of the outer terminals goes to the voltage output of your IR device, the other outer terminal of the pot goes to 0Volt. The centre terminal of the pot goes to the atmega88. If you find that when you turn the pot 'clockwise' to increase the output it goes down, just swop over the two outer terminals of the pot. Is that clear?
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
|
|
|
|
|
|
(permalink) |
![]() ![]() Just to make sure i understood correctly. Is this what you ment? thank's a lot for your help |
|
|
|
|
|
|
(permalink) |
|
hi,
This way.
__________________
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 11:19 AM. |
|
|
|
|
|
|
(permalink) |
|
im still not 100% convinced because if i do that its just going to divide the voltage i get from the sensors and reduce it with increasing resistance wont it?
i thought that if you increases the value of the resistor behind the point where it goes to the atmega88 you would get a higher voltage according to V=IR please let me know if this makes any sense, because i need to get a PCB manufactured asap |
|
|
|
|
|
|
(permalink) |
|
>>> but i want to use a POT to vary the amount of voltage getting to the atmega88 (changing the sensitivity).
If you adjust the pot in my drawing it will reduce the voltage going to the am88 from the IR sensor.... will it not?? If you not convinced, just put together a quick test circuit and try it.
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
|
|
|
|
|
|
(permalink) |
|
Yea thats fair enough i know that what you are saying is true but its not i don't think thats the effect i'm looking for. When I was testing the light sensors in the lab it we got less voltage for a given distance with say a 10k resistor than a 51k resistor. Does that make sense? does it have something to with the amount of current getting to ground or why did i observe this? Its too late to test it now because i have to submit the pcb design tomorrow morning (8hrs)
|
|
|
|
|
|
|
(permalink) |
|
hi,
Can you post any info on the IR device, drawing, specification or web link, so that we can suggest an idea? Without knowing what the IR source is, its impossible to give a good answer.
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
|
|
|
|
|
|
(permalink) |
|
Ok a little background info on the project. It is simulation of a satellite defence system. There is an infrared target that has to be detected with these light sensors. http://www.farnell.com/datasheets/71965.pdf
The voltage from the light sensor is then read by the ACDC converter on the Atmega88 to determine when it is looking directly at it and then fire a laser. The satellite is rotated using a motor and a flywheel. Here is a circuit schematic soon. |
|
|
|
|
|
|
(permalink) | |
|
Quote:
The amount of light falling on the PD will effect the resistance of the PD. The stronger the light the greater the current [within the limits of the PD] and reduced light will give a lower current.. If you have a 10K say with 1mA flowing thru the PD you will get a voltage drop of about 10Vdp across 10K0. If you use a 50K0 resistor you get a drop of 50Vdp across the 50K If your Vsupply is say 24V, then the PD will voltage limit. The choice of resistor is a balance between the range of light intensity you are expecting and your supply voltage. Remember the ADC has a input impedance which may be lower than your PD's load resistance, so it will have an effect on the output voltage. Is this clear?
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
||
|
|
|
|
|
(permalink) |
|
To vary the resistance using a pot, just use the wiper and one of the other pins. As you turn the dial the resistance will change. But be VERY careful doing that if it is the only resistor to ground. If you turn all the way to 0 ohms you can damage the sensor, so put another resistor in series and use the pot to fine tune the resistance. the other resistor should be able to protect the device from too much current by itself if the pot is at 0 ohms.
If it is an IR "photo transistor" then increasing the resistance will decrease the base (IR) current that is needed to saturate the transistor. Therefore more of the voltage drop will be across the resistor. So increasing the resistor on the emitter side (if an npn detector) will make the sensor more sensitive. If it is an IR "photo resister" then it will simply act like a voltage diode as ericgibbs described. The transistor models the sensor if it is a photo transistor type. Last edited by Ambient; 14th May 2007 at 03:06 AM. |
|
|
|
|
|
|
(permalink) |
|
Actually I just looked at the spec sheet. It is a photo-transistor. The spec sheet does not list which lead is the emitter and which is the collector. Oddly, no IR photo-transistor spec sheets I have seen tell you either.
I do not know if it is true for this detector, but the ones I have use the long lead for the emitter and the short lead for the collector, the opposite polarity of an LED. It was very frustrating when I found out that was why I couldn't get a signal. Try them in both directions. Is this going to be for a DC IR signal or will it be oscillating? |
|
|
|
|
|
|
(permalink) |
|
damn if only you had posted before i had to submit the PCB design
|
|
|
|
|
|
|
(permalink) |
|
hi keyan,
The information I posted to you still stands. Look at the datasheet and you will see that the current flowing thru the PD is dependent upon the light falling on it. It is not a linear function for a PD or PT, but as stated, the load resistor must be chosen to suit the range of light intensity expected and the voltage applied across the PD/PT and load resistor. If you chose a high value of load resistor with a supply voltage that is too low to allow the required voltage drop across the load resistor, then the output voltage will limit. Also if for example, you have a 50K0 load and the input impedance to your Am88 is say also 50K0, then the effective load resistance is 25K0. You should always consider the effect of the 'sinks' impedance, if necessary use a buffer amp. Post the circuit you have submitted for the project, add any voltage values and we can see if its screwed up.
__________________
Eric "Good enough is Perfect" PIC tutorials: Gramo's: www.digital-diy.net/ Bill's: www.blueroomelectronics.com/ |
|
|
|
|
|
|
(permalink) |
|
Hey i am trying to post a schematic but im having a lot of trouble trying to upload the image to image shack or photobucket and it just says uploading forever. Is there any other way i could post it?
|
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Latest |
| Analog Meter | windozeuser | General Electronics Chat | 19 | 3rd October 2007 02:44 PM |
| Mains ground point and circuit ground point | Johnson777717 | General Electronics Chat | 9 | 1st September 2007 10:19 AM |
| Resistors | Marks256 | General Electronics Chat | 52 | 3rd August 2006 01:00 AM |
| PCI bus | hodamoodi | Electronic Projects Design/Ideas/Reviews | 22 | 17th June 2006 08:41 AM |
| Real world test measurements? | SomeoneKnows | General Electronics Chat | 8 | 26th August 2003 06:38 PM |