the Arduino software) to talk to hardware you connect to your computer (the Arduino board).
If you don't seem to have a serial port for your Arduino board, see the following information about drivers.ĭrivers provide a way for software on your computer (i.e. On Windows, it will be a COM port but you'll need to check in the Device Manager (under Ports) to see which one. On Linux, it should be /dev/ttyACM0 or similar (for the Uno or Mega 2560) or /dev/ttyUSB0 or similar (for older boards). On the Mac, the serial port should be something like /dev/tty.usbmodem621 (for the Uno or Mega 2560) or /dev/tty.usbserial-A02f8e (for older, FTDI-based boards). Then, check that the proper port is selected in the Tools > Serial Port menu (if your port doesn't appear, try restarting the IDE with the board connected to the computer).For more information on the board menu items, see the guide to the Arduino environment. To check, read the text on the microcontroller (the larger chip) on your Arduino board. Also, newer Arduino Duemilanove boards come with an ATmega328, while older ones have an ATmega168. If you have an Arduino Uno, you'll need to choose it. Make sure you have the right item selected in the Tools > Board menu.Here are some specific suggestions for troubleshooting each of the pieces.
They include: the drivers for the board, the board and serial port selections in the Arduino software, access to the serial port, the physical connection to the board, the firmware on the 8U2 (on the Uno and Mega 2560), the bootloader on the main microcontroller on the board, the microcontroller's fuse settings, and more. There are many pieces involved in getting a program onto your Arduino board, and if any of them aren't right, the upload can fail. Why I can't upload my programs to the Arduino board?
What if I get a gnu.io.PortInUseException when uploading code or using the serial monitor (on the Mac)?.Why doesn't my board show in the Tools | Serial Port menu ?.Why does do the Arduino software and the Tools menu take a long time to open (on Windows)?.What can I do about cygwin conflicts on Windows?.What about the error "Could not find the main class."?.What do I do if I get an UnsatisfiedLinkError error (about native library librxtxSerial.jnilib) when launching Arduino?.