Problems with MAX483 (RS-485) and Arduino UNO

Hello,

I am new in this forum and I have a problem. I am using a MAX483 to convert from Arduino to RS-485

Arduino 9600-----> MAX483 <----------------------->RS-485/RS-232 Converter<----------------->Hyperterminal 9600bps, N,8,1

The code I used is

#include <SoftwareSerial.h>

#define rxPin 2
#define txPin 3
#define rxEnable 13
#define txEnable 4

SoftwareSerial ceSerial(rxPin, txPin); // RX, TX

void setup()
{
pinMode(rxPin, INPUT);
pinMode(txPin, OUTPUT);
pinMode(rxEnable, OUTPUT);
pinMode(txEnable, OUTPUT);

// Open serial communications and wait for port to open:
Serial.begin(9600);
digitalWrite( rxEnable,HIGH);
digitalWrite( txEnable,LOW);

// set the data rate for the SoftwareSerial port
ceSerial.begin(9600);
ceSerial.println("Hello, world?");
}

void loop() // run over and over
{
//ModoRecepción...esta escuchando
digitalWrite( rxEnable, LOW);
digitalWrite( txEnable, LOW);

//ReadyToWrite
digitalWrite( rxEnable, HIGH);
digitalWrite( txEnable, HIGH);

ceSerial.write( "testing" );
delay(2000);
ceSerial.write( "\r\n" );
delay(2000);
digitalWrite( rxEnable, LOW);
digitalWrite( txEnable, LOW);

}

My RS485/RS232-computer converter has leds and the arduino+MAX483 trigger those leds accordingly. However, I have only garbage on the Hyperterminal.

Ideas? Suggestions?

Thanks,

Carlos A. Estrada

Show the garbage you get. Maybe you have an invertation problem?

And use the code tags for posting your code, makes it much more readable and avoids errors from misinterpreting markup tags.