I am working on the first part of tutorial 5 (the first 7 minutes) and am trying to make the motor gradually increase and decrease in speed. The problem that I am running into is that my arduino is not giving my transistor any current. Here is my code and a picture of how I wired everything. Anyone see any potential problems? I would really appreciate any help!
int motorPin = 1;
void setup()
{
pinMode (motorPin, OUTPUT);
}
void loop()
{
for (int i=0; i<=255; i++)
{
analogWrite(motorPin, i);
delay(10);
}
delay(500);
for (int i=255; i>0; i--)
{
analogWrite(motorPin, i);
delay(10);
}
delay(500);
}






