Need help reading basic pot circuit diagram
Ragtop
Posts: 406
My circuit diagram comprehension just does not seem to be improving.
I am wanting to change the sensitivity of a EPIR motion sensor that seems to go crazy outside but works fine indoors. I currently have it set to max by connecting the txd/sense pin to ground.
I want to add a pot to vary the sensitivity but I don't understand the circuit inside the box.
The tutorials I have read run the wiper to a microcontroler pin and one of the outside pins to ground, but this seems to have three connections: power,ground, and EPIR pin.
Does the power go to wiper pin with the EPIR pin?
I am wanting to change the sensitivity of a EPIR motion sensor that seems to go crazy outside but works fine indoors. I currently have it set to max by connecting the txd/sense pin to ground.
I want to add a pot to vary the sensitivity but I don't understand the circuit inside the box.
The tutorials I have read run the wiper to a microcontroler pin and one of the outside pins to ground, but this seems to have three connections: power,ground, and EPIR pin.
Does the power go to wiper pin with the EPIR pin?
Comments
Look up "voltage divider" on wikipedia, etc. for a more detailed explanation.
Does this look right?
Also, I'm just guessing that the pot wiper (pot lead with the arrowhead in your schematic) is the middle lead (shown as green) and not the yellow wire. You need to check that with an ohm meter. Is the pot you are showing an adjustment for the delay input? I don't see two pots in your picture.
What should the blue wire be connected to?
With that assumption, if you look at the pot connections - orange, green, and blue - you should connect them this way:
1) green to sensor pin (the wiper which is the output of the voltage divider)
2) orange to ground
3) blue to 82K resistor that then connects to +3.3V
The pot itself should be 100K. There is no other resistor required.
The orange and blue connections are interchangeable. The only effect of switching them will be to change the direction you turn the pot to reduce (or increase) the voltage.
Like this?
It's worth looking up how voltage dividers work so that you understand what's going on here. The original schematic you posted has three different voltage dividers on it. All are used to adjust the voltage level at different connections on the sensor.
Voltage dividers are very common in electronics. If you look it up on wikipedia as suggested above, you should be primarily interested in simple resistive dividers. The description starts out talking about general impedances, then discusses resistive dividers, and then rapidly gets more complicated than you need right now.
If you turn the pot all the way to one end or the other, the corresponding resistor will effectively have zero resistance.
The extra resistor in this circuit is used to prevent the maximum voltage coming out of the wiper from going all the way to 3.3V.