I am having problems getting my board to drive a 2n2907 transistor and could use some ideas from the community.
First, if I simply run the board bare, this gives me roughly 5-Volts on pin A7:
void setup() {
pinMode(A7, OUTPUT);
digitalWrite(A7, HIGH);
}
and this gives me 0.001V on pin A7:
void setup() {
pinMode(A7, OUTPUT);
digitalWrite(A7, LOW);
}
I have also tested the above on pin D13 with the same behavior.
I have a PNP transistor 2n2907 that I can manually drive without any issues at +5V on the collector if I use a 1kohm resistor on the base, connected to ground. The problem is that once I connect it to the arduino board on, I am unable to drive the transistor with any measureable change I cannot turn the transistor on or off - it simply floats its emitter, and shifts roughly 0.2V between being pulled high and low through the Arduino. This simple test doesn't work to turn the transistor on.
void setup() {
pinMode(A7, OUTPUT);
digitalWrite(A7, LOW);
}
Is there something that I'm doing wrong here? Thanks in advance!