I have a water valve which should be operated between 6-12V. I want to control this with an "standard" arduino-transistor switch (see image below, change the motor to a valve).
When trying to calculate the base-resistor needed, I use these basic formulas
$$ I_b = I_c/\beta$$ and $$R = \frac{V_{cc} - V_{be}}{I_b} $$
Since the data-sheet for the valve says it needs 320 mA @ 12V, and Vcc = 5v (voltage from arduino) and Vbe = 1.2 (my bc337 transistor), I can calculate that R = ... (something)
However, these formulas does not say anything about the collector voltage. What would happen if I choose 1.5v, 5v, or 12v etc ? If I change the voltage supply to the valve, shouldent the collector current change accordingly?
Extra question: can I in some way destroy/burn the aurdriono pin with this circuit?