Saturday, May 2, 2015

How to fix errors in Arduino

How to fix errors and test your arduino board:
by J.B. Wylzan

Arduino R3 UNO

I was so excited when I got my Arduino R3 Uno in the mail.  Although a Clone, the manufacturer claimed that it is arduino compatible and its microprocessor runs smoothly like the original Arduino board.

The mail contains only the following components:

UNO R3 Board
USB Cable
1x 170 point Breadboard
1x 9V Battery Connector
10x 5mm LED (red, green, blue, white, yellow)
10x 200 Ω Resistors
5x Jumper Wires
2x Switches

From these 8 basic components, I designed the prototype as shown in the picture and created 25 projects out of these components. I even programmed these simple projects using only at 5 commands.

Before we go to the projects, let us first check if our Arduino board is working properly. To do this, let's go to the Arduino site (www.arduino.cc) and download the software. After unzipping all the programs, let's connect our Arduino board using the usb cable provided to your computer. Then launch the arduino interface and open the Blink example. After verifying the program (known as sketch) and uploading it, make sure that the led-on-board is blinking. If so, congratulations, you just made your first arduino project.

If not, and you have the following errors below, don't despair I have the fix.

avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 1 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 2 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 3 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 4 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 5 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 6 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 7 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 8 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 9 of 10: not in sync: resp=0x58
avrdude: stk500_recv(): programmer is not responding
avrdude: stk500_getsync() attempt 10 of 10: not in sync: resp=0x58

In took me awhile before I figured out the solutions on how to fix these errors. If you have these problems, make sure to follow the procedure below step by step:

First: Install the Arduino driver.
  • a. Connect the board and windows XP will run the driver installation process.
  • b. If not, click on Start and right click My Computer.
  • c. The System window pops out and select the Hardware tab.
  • d. Click the Device Manager button and click Ports (COM & LPT)
  • e. You will see the name Arduino in this Ports category
  • f.  If not, check a yellow question mark on top under Other devices.
  • g. Right click and select Update the driver
  • h. Under the question - Can Windows connect to Windows Update to search for software? choose the button that says; No, not this time. Then click Next to continue.
  • i. Select Install from a list or specified location (Advanced) and click next. 
  • j. Select Search for the best driver in these locations, uncheck Search removable media, and check Include this location in the search. Click next.
  • k. The wizard will search for the driver and when found. Click finish.
  • l. Verify if the drivers have been installed under Other devices: the yellow question mark should no longer present; and under Ports: the word Arduino should now be present.
Second: Launch the Arduino Application.

  • a. In the Tools Menu, select Board and choose your Arduino board (Uno, Mega Mini, Pro)
  • b. In the Tools Menu, select Serial Port and highlight your com port (com1, com2, com3, com4)
  • c.Open the Blink example: File > Examples > 1.Basics > Blink.
  • d. Click Verify
  • e. Click Upload.

Third: The RX and TX lights begin flashing and the on board led starts blinking.

Congratulations your board is now working.




Disclaimer:  We shall not be liable for any loss or damage of whatever nature - direct, indirect, consequential, or otherwise - which may arise as a result of your use of any information on this website. However, if you are interested in using any of the projects for personal or educational purposes, please inform the author by email. 

Public Domain Notice: Copyright (c) 2000. All rights reserved. This article is part of a book entitled iHackRobot. Copies are welcome to be shared or distributed publicly as long proper citations are observed. Please cite as follows: Biotronics: The Silver Species, Joey Lawsin, 1988, USA.

================================================================== 
The Homotronics® and Homodruinos® logos are registered trademarks.
Copyright Biotronics© Inc. iHackRobot®. All Rights Reserved.
Patent Pending. 2000 © ®

L.A.W.S.I.N. Educational Production
 ================================================================== 

No comments:

Post a Comment