Very new newbie; can't upload first sketch...

Hi everyone! I'm veery new to Arduino, in fact I just got a Duemilanove board for Christmas today. :slight_smile:

I'm on Ubuntu 9.04 (Linux), and I've got the IDE software, and (presumably) the serial drivers (i.e. libftdi, ftdi-eeprom). I've also gotten rid of brltty as per the site's instructions for Ubuntu. However, when I plug the Arduino into a USB port on my machine, start the IDE, write a small sketch (slightly simpler version of the "Blink" example on the website), and try to upload it, it acts as though the Arduino isn't there ("avrdude: stk500_recv(): programmer is not responding").

One thing the site does mention is the "ttyUSB#" device files. I can't find such files in /dev, and the IDE only lets me choose "ttyS0" as my port, and this is definitely not what I'm after. Is there any way I can create a "/dev/ttyUSB0" device file?

I do apologize if this is a common question, however I have searched Google for terms such as "ttyUSB0 arduino" and "how to create ttyUSB0 file" with no useful results; at least none that I can follow with any degree of accuracy.

The driver for the FTDI chip is part of the linux kernel and should just work. Your version of ubuntu should be recent enough. The files in /dev are created on-the-fly as soon as a new device is recognized.

Try this to check if your system recognizes the board:

sudo tail -f /var/log/messages

Then plug in the Arduino. You should see something very similar to this:

 kernel: [ 4708.864051] usb 2-1: new full speed USB device using ohci_hcd and address 69
 kernel: [ 4709.070077] usb 2-1: New USB device found, idVendor=0403, idProduct=6001
 kernel: [ 4709.070116] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
 kernel: [ 4709.070154] usb 2-1: Product: FT232R USB UART
 kernel: [ 4709.070170] usb 2-1: Manufacturer: FTDI
 kernel: [ 4709.070184] usb 2-1: SerialNumber: A6007nZC
 kernel: [ 4709.070448] usb 2-1: configuration #1 chosen from 1 choice
 kernel: [ 4709.195724] usbcore: registered new interface driver usbserial
 kernel: [ 4709.195753] USB Serial support registered for generic
 kernel: [ 4709.195786] usbcore: registered new interface driver usbserial_generic
 kernel: [ 4709.195793] usbserial: USB Serial Driver core
 kernel: [ 4709.236504] USB Serial support registered for FTDI USB Serial Device
 kernel: [ 4709.236564] ftdi_sio 2-1:1.0: FTDI USB Serial Device converter detected
 kernel: [ 4709.236594] usb 2-1: Detected FT232RL
 kernel: [ 4709.236600] usb 2-1: Number of endpoints 2
 kernel: [ 4709.236607] usb 2-1: Endpoint 1 MaxPacketSize 64
 kernel: [ 4709.236612] usb 2-1: Endpoint 2 MaxPacketSize 64
 kernel: [ 4709.236618] usb 2-1: Setting MaxPacketSize 64
 kernel: [ 4709.238122] usb 2-1: FTDI USB Serial Device converter now attached to ttyUSB0
 kernel: [ 4709.238238] usbcore: registered new interface driver ftdi_sio
 kernel: [ 4709.238247] ftdi_sio: v1.5.0:USB FTDI Serial Converters Driver

BTW, does the green power light come on ? The yellow L-LED should also blink a few times after the board gets power from your computer.

Hmm. No such luck getting that output with tail -f /var/log/messages when I plug in the Arduino.

I get this instead:

Dec 25 19:19:38 linuxbox kernel: [504955.976029] usb 5-1: new full speed USB device using uhci_hcd and address 2
Dec 25 19:19:38 linuxbox kernel: [504956.204952] usb 5-1: configuration #1 chosen from 1 choice

Also its lsusb listing is unusual(?):

Bus 005 Device 003: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC

I'm guessing this means that my system isn't registering the Arduino correctly. The unit works, though: I get a green power light, and the "L" LED blinks at a steady rate (about 3 blinks per second). Should it not be continuously blinking like that?

Thanks for the prompt reply BTW :wink:

The lsusb output looks OK.

The blinking is OK as well. It should blink even if the board hasn't been programmed before by the user. The bootloader is just saying 'hello'.

Well, I dunno how it happened, but it's working now...I plugged it in, opened a terminal and did an "ls /dev" and it found a ttyUSB0. The IDE listed it, too. I just needed to switch the device to my approprate board (Duemilanove/ATmega328), and I could upload sketches!

Thanks for your help :slight_smile: