Hi!
I'm making a modified version of the water leak detector from Make #28, please see attached image for my circuit. Right now it's working, with a LED (between Test point and GND) lighting up on when detecting water or when activating test switch. Now I want to calculate the maximum current that could rush through the circuit, before I dare to connect Test point to an input pin on the Arduino UNO (I would also like to be able to supply 5V from an output pin, which also depends on maximum current draw).
Since I'm new to PNP transistors, I'm not even sure where to start. Which route is the important one for me? Is it A) 5V --> PN2907 --> Test point --> R5 --> GND? (And in that case, maybe I should put a resistor between 5V and PN2907 Collector to minimize current to Test point?) Or is it B) 5V --> Test switch --> R1 --> R4 --> Test point --> R5 --> GND?
A)
I = V / R5
V = 5V
R5 = 12k
I = 0,42mA
B)
I = V / (R1 + R4+ R5)
V = 5V
R1 + R4 + R5 = 36k
I = 0,14mA

I'm making a modified version of the water leak detector from Make #28, please see attached image for my circuit. Right now it's working, with a LED (between Test point and GND) lighting up on when detecting water or when activating test switch. Now I want to calculate the maximum current that could rush through the circuit, before I dare to connect Test point to an input pin on the Arduino UNO (I would also like to be able to supply 5V from an output pin, which also depends on maximum current draw).
Since I'm new to PNP transistors, I'm not even sure where to start. Which route is the important one for me? Is it A) 5V --> PN2907 --> Test point --> R5 --> GND? (And in that case, maybe I should put a resistor between 5V and PN2907 Collector to minimize current to Test point?) Or is it B) 5V --> Test switch --> R1 --> R4 --> Test point --> R5 --> GND?
A)
I = V / R5
V = 5V
R5 = 12k
I = 0,42mA
B)
I = V / (R1 + R4+ R5)
V = 5V
R1 + R4 + R5 = 36k
I = 0,14mA
