LabHighCurrentArduinoTransistor_schem

Schematic view of a potentiometer and transistor connected to an Arduino.

Schematic view of a potentiometer and transistor connected to an Arduino. First leg of the potentiometer is connected to +5 volts. The second leg connected to analog in 0 of the Arduino. The third leg is connected to ground. The base of the transistor is connected to digital pin 9 of the Arduino through a 1-kilohm resistor. The collector is connected to ground.