Go Down

Topic: Pin 13 blinks continuously (Read 3519 times) previous topic - next topic

tplasse

Just bought a new Uno board. Out of the box the surface mount LED next to pin 13 blinks continuously when plugged into USB port.
I wired up an external diode to output 13 and it also blinks at the same time.
When I hit the reset button and the blinking momentarily stops and then starts blinking again.

When I try to upload the (File/Examples/1.Basics/Blink) Program
 

   /*
  Blink
  Turns on an LED on for one second, then off for one second, repeatedly.

  This example code is in the public domain.
*/

void setup() {               
  // initialize the digital pin as an output.
  // Pin 13 has an LED connected on most Arduino boards:
  pinMode(13, OUTPUT);     
}

void loop() {
  digitalWrite(13, HIGH);   // set the LED on
  delay(1000);              // wait for a second
  digitalWrite(13, LOW);    // set the LED off
  delay(1000);              // wait for a second
}

I get this error:

Problem uploading to board.

Binary sketch size: 1018 bytes (of a 32256 byte maximum)
avrdude: stk500_getsync(): not in sync: resp=0x30
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

Tools/Serial Port  shows Com3 checked.

Am I doing something wrong or is there something wrong with my board?

Coding Badly

Quote
Just bought a new Uno board. Out of the box the surface mount LED next to pin 13 blinks continuously when plugged into USB port.


The Uno ships pre-programmed to output a Morse code message.

Quote
Tools/Serial Port  shows Com3 checked.


The software does not automatically detect the board.  You are responsible for determining the serial port assigned to your board and ensuring it is selected.  Typically, COM3 is an internal modem.

You also need to ensure the Uno is selected under the menu item Tools / Board.

tplasse

Uno is selected as board type.

I do not see any options for serial com. Only Com3 shows up.  What should you use for a USB port usually and how do you change it?

Coding Badly


When you connect the Uno to the computer, does the computer play the "device insertion" sound?

When you disconnect the Uno, does the computer play the "device removal" sound?

alah

Click on START and right click on MY COMPUTER
Click on PROPERTIES and then on DEVICE ADMINISTRATOR
CLICK to open PORTS ( COM & LPT ) You´ll see your Printer & COM ports.
Disconnect your Arduino USB cable and one of the USB COM ports disappears.
Plug it back in and it´s on the list again. That´s your Arduino COM port number.
When You run Arduino IDE, click on FILE, click on Preferences.
Cick on the link, open the .txt file.
Three important lines:

Upload.using= ¿????? The programmer you are using

board= ¿????? Your Arduino board

serial.port=COMX, where X= your Arduino COM port.

Close and SAVE.

You should check this each time you Start Arduino.

I´m a newbie so if theré´s any mistake, please correct.

tplasse

Thanks for the help, I figured it out.

I needed to do Windows 7 driver install. This is what I did.

Plugged board into USB.
Clicked Windows Start button/Control Panel/System and Security, then
Clicked System/Device Manager.
Arduino was in the list as a device with a yellow exclamation mark.
Right clicked on the Arduino Uno and choose "Update Driver Software."
Browsed to find the driver file where the unzipped downloaded files were.
Clicked OK and Windows installed drivers.
When it was completed it showed it was using Com4.
Opening IDE and under Tools/Serial Port I selected Com4.
Uploaded code to board with no errors

It works fine now and computer beeps when plugging in and unplugging board.

Go Up