Hello,
I’m trying to program an Arduino Fio using the FTDI Basic Workout. I have never programmed it before this way, a friend of mine always used to program it wirelessly through the Xbee modules.
My OS is Windows 7 64-bit and it seems that FTDI VCP drivers are correctly installed. The configuration of the USB serial port is 9600kbps, 8 data bits, no parity, 1 stop bit and no flow control. The program I want to upload is the following:
int potPin = 2; // select the input pin for the flex sensor
int val = 0; // variable to store the value coming from the sensor
void setup() {
// open the serial port at 9600 bps:
Serial.begin(9600);
}
void loop() {
val = analogRead(potPin); // read the value from the flex sensor
Serial.println(val, DEC); // print as an ASCII-encoded decimal
delay(100); // stop the program for 100 miliseconds
}
When I upload the error message I get is:
avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x00
and the sequence of events is the following:
-
the green Rx LED of the FTDI blinks (once),
-
then the red LED of pin 13 on the Arduino Fio blinks 3 times,
-
then the red Tx LED of the FTDI blinks 3 times,
-
then the green Rx of the FTDI blinks once,
-
Tx LED of FTDI blinks once more and
-
Rx LED of FTDI blinks again once before the error message pops up.
I have tried resetting the Arduino just after pressing “upload” and releasing it in different time intervals, although this is useless since there’s auto-reset on Fio right? Moreover, the pins of FTDI seem to be firmly connected on the Arduino. What I suspect is a different configuration for the serial port. Is the above (default) configuration for the virtual serial port what I need?
Friendly,
Giorgos