I set up per the Motor Sketch Diagram the control circuit to turn a motor on and off. I wrote the sketch:
int motorPin = 9;
void setup()
{
pinMode(motorPin, OUTPUT);
}
void loop()
{
digitalWrite(motorPin, HIGH):
delay(1000);
digitalWrite(motorPin, LOW);
delay(1000);
}
After compiling the sketch I received the following message:
avrdude:stk500_getsync():not in sync: resp=0x00
PLEASE assist me in what I am doing wrong. I am using all the necessary components: Arduino Uno, breadboard, transistor, DC motor, diode, 2.2K ohm resistor, and jump wires.
Dave