Go Down

Topic: Need some help with basic circuit design (Read 1 time) previous topic - next topic

ohnoezitasploded

Hi All,
     It's not precisely an Arduino question, but I'm hoping you can help me.  I'd like to connect 4 photoresistors to 4 analog inputs on the Arduino board.  The schematic I'm using and a picture of the hardware setup is below.  So I've got 5V into a 10K pot for bias adjustment, then it splits out to four 4.7K resistors, connects to the analog in, and passes through the photoresistor to reach ground.  Here's the schematic:



And a picture:



The problem is that changing the value on one photoresistor also causes the others to change.  I'd like to isolate them better.  I could use larger resistors, but as the 5% tolerance becomes closer to the total resistance range of the photoresistor, I'm going to have problems with calibrating all of them equally.  Any help?  Maybe throw a diode in there somewhere?

Thanks!

RuggedCircuits

I think the problem is that as the current through one photoresistor changes (since its resistance changes), the current goes through the 10k pot so changes the reference voltage for all of the photoresistors.

Try getting rid of that 10k pot and using a separate one for each photoresistor.

peter247

From what I can remember of my electronics , it`s the 10k pot which is the problem.

eg  changing res 1 will change the current going via res 2 due to res 3.

--- res 1 -----|
                   |---- res 3 ----
--- res 2 -----|    

ohnoezitasploded

I agree that the common 10K pot is the problem, but I'd like to avoid having four pots each of which have to be individually configured.  I'm making this device (it's a little theremin/synthesizer) for my sister, so I'd like to keep the control set simple.

Since I've put the LED/photoresistor combo inside the box, it's pretty stable.  So I could maybe put internal screw-driven pots for each input, and implement the remaining calibration dynamically in software... but that's hardly an elegant solution.  Any other ideas?


Ran Talbott

If your goal is to have a steady,  but adjustable,  voltage,  going into your resistor array,  use the pot in a voltage divider,  then feed that voltage into an opamp (like half an LM358) wired as a unity-gain buffer.  The opamp will compensate for the variations in current as the photoresistors change.

Ran

Go Up