Go Down

Topic: How to program to communicate between FTDI & Arduino? (Read 509 times) previous topic - next topic

Mohammad

I want to read the serial data transmitted by arduino on my computer using FTDI API (Visual C++).

Arduino uses Serial.print or Serial.write to send data to it's serial port. I am trying to capture this transmitted data on my computer using FTDI API.
Note: I have connected my Arduino to my computer using the FTDI breakout (from SparkFun).



Please see the following tutorial:
http://www.codeproject.com/KB/system/ftdi-chip.aspx

It worked until establishing connection to FTDI. But somehow I am getting reading error. My Arduino is using Serial.print to print 0..1.. ... ... 9 every 300ms. Meaning it prints 1 then after 300ms prints 2 and so on.

Any suggestion will be appreciated.

MikMo

Why are you using the FTDI API?

Your FTDI breakout from sparkfun will show up as a serial port on your computer.
You can use ordinary serial communication to talk to it.

Mohammad


Why are you using the FTDI API?

Your FTDI breakout from sparkfun will show up as a serial port on your computer.
You can use ordinary serial communication to talk to it.


I am trying to understand how arduino read/write or communicate to the ATmega chip. I'm building a custom MCU board. I will use the same technique there.

Go Up