Get data out of RS232 DE9 + send the data to a file

Hello, As a project at my school i need to find something to read the data of a RS232 DE9 cable. Then this data should be send: - or by bluetooth to a tablet where it is placed in excel. - or if easier to a SD card.

Can someone help me how i should do this?

Many thanks!

You need some time to get to know the Arduino. The Arduino Uno board is the easiest to start with, but the Arduino Leonardo has a hardware serial port that can be used.

First of all, the official RS-232 signals can be -15 to +15 Volt. http://en.wikipedia.org/wiki/RS-232#Voltage_levels You can use a few components, or buy a converter. Are you only reading RS-232 ? https://www.sparkfun.com/products/449

Connect it to a serial port of the Arduino board. For the Arduino Uno, you can use the serial port, but that is also used to upload a sketch. You can use a software simulation of a serial port: http://arduino.cc/en/Reference/SoftwareSerial The Arduino Leonardo has a hardware serial port that is not used for uploading a sketch. The Arduino Leonardo board is a little less easier to use, but that free to use hardware serial port is very handy.

Using an SD card or Bluetooth can be done. I don't know which is easier. http://www.adafruit.com/products/254 https://www.sparkfun.com/products/9802 http://www.adafruit.com/products/1628

Hi, thanks for your reply.
I have programmed a little at school with a arduino but not too much. I do have a Arduino Uno.
The signal as far as i can see is only a RS232 signal because i have a DE9 cable to get the data from.
I would convert it with a max3323 like said here: http://arduino.cc/en/Tutorial/ArduinoSoftwareRS232#.UwRqUoUmmpo

After that i have the signal in my arduino i guess. then i will need a SD shield and put it on the arduino. then the problem will be programming that stuff…

I won’t use the BT i checked the possibilities and a SD card would be easier, plug in PC and finished.

You can build a converter with that tutorial. Check the wiring very careful, so the higher voltage of the RS-232 is not going into the Arduino.

Storing data to the SD card is done with the SD library. http://arduino.cc/en/Reference/SD There are examples on that page, so you can try a few. It is not very hard to do. Connecting the hardware is harder, the SD card needs 3.3V SPI signals and the Arduino Uno has 5V signals. So there must be some kind of converter on the breakout board of the SD socket.

This is not a good idea: http://garagelab.com/profiles/blogs/tutorial-how-to-use-sd-card-with-arduino This is better, a logic chip converts the signals: http://mchr3k-arduino.blogspot.nl/2012/03/wireless-sensor-node-getting-started.html That one uses the Adafruit SD library, but I suggest you use the normal Arduino SD library.

Caltoa: Connecting the hardware is harder, the SD card needs 3.3V SPI signals and the Arduino Uno has 5V signals. So there must be some kind of converter on the breakout board of the SD socket.

What i actually meant with SD shield, was a datalogging shield, so i guess i dont need a votage convertor then?

And thank you for your response

Can you tell which datalogging shield ? This one ? http://www.adafruit.com/products/243 That shield has already voltage level converters on the board. I think most shields will have them, only a few small modules might not have them.

Caltoa: Can you tell which datalogging shield ? This one ? http://www.adafruit.com/products/243 That shield has already voltage level converters on the board. I think most shields will have them, only a few small modules might not have them.

i was thinking about this one: https://www.adafruit.com/product/1141 it is the updated version of yours i guess, because yours is discontinued. but i think the most will be the same.

Yes, it works the same. Sorry for a link to the discontinued product.