Hello ,
I want my Arduino to "talk" with my computer
for this I have a USB-Serial cable
in the Arduino code I ahve setting
#include <SPI.h>
#include <SoftwareSerial.h>
#include <Wire.h>
SoftwareSerial SendToCom(8, 9);
void setup()
{
Serial.begin(9600);
SendToCom.begin(9600);
delay (3000);
SendToCom.println("Done!");
Serial.println("Done");
}
void loop()
{
Serial.println(millis());
SendToCom(millis());
delay(5000);
Serial.println("Again");
SendToCom("Again");
delay(2000);
}
in the serial usb cable I have connected the Rx\TX\GND 2\3\5 pins to 8\9\gnd on the arduino
but when I open putty on teh computer I see gibrish and spaces in the right times
once every 5 secnod and 2 seconds
did I miss something in the hardware?
if I undesrsatnd correct
the arduino is ttl 5V and the cable\computer is not?
can it be ?
this will explain the gibrish?
9600
but I have found the problem
I need to add max3232 between the computer usbserail to the arduino
after adding it - it's working
Thanks anywahy!
david1234:
but I have found the problem
I need to add max3232 between the computer usbserail to the arduino
It sounds like you have the wrong cable.
If you have a USB-TTL cable there is no need for a MAX3232
...R
Sounds like he is using a cable that plugs into a DB9 port hence the need for a MAX232.
Most PCs don't come with a genuine COM port these days.
.
ieee488:
Sounds like he is using a cable that plugs into a DB9 port hence the need for a MAX232.
The Original Post says "for this I have a USB-Serial cable"
...R
Robin2:
The Original Post says "for this I have a USB-Serial cable"
...R
I know.
What he has isn't what we think he has.
.
ieee488:
I know.
What he has isn't what we think he has.
AFAIK you can get some USB cables with RS232 serial at the other end and some with TTL serial at the other end. I have assumed the OP has the first type.
...R
maybe my the wording of the question was wrong...
the usb cable is rs232 with D9 in the end
I thought it's ttl(5V) because it's connected to the USB
after understdng it's not I have connected it throw a max2323 and now it's OK
the important thing is that I learned 
Thank you all
Your post makes no sense without a photo.
A DB9 to USB cable looks like this:

.
I am at a loss how you were able to connect such a cable between your PC and the Arduino Uno.
