Go Down

Topic: Arduino and HOPE RF HM-TRS serial communication problem (Read 1 time) previous topic - next topic

I want to connect arduino uno smd with my computer wireless with Hope RF HM-TRS wireless transparent module, i've put the code byte high = 0;

void setup()
{
  Serial.begin(9600);
  // 2 Stop-bits please!
  UCSR0C = UCSR0C | B00001000;
  pinMode(13, OUTPUT);
}

void loop()
{
  if (high == 0)
  {
    digitalWrite(13, HIGH);
    high = 1;
  }
  else
  {
    digitalWrite(13, LOW);
    high = 0;
  }
  if (high == 0)
  {
    Serial.print("HELLO"); // The text
  }
  else
  {
    Serial.print("WORLD"); // The text
  }
  delay(500);
}


and on the computer i recive << ... for Hello and TX<<O for World. The modules are with default settings 9600, 8 , N.

What to do get data corectly?

MarkT

[ I won't respond to messages, use the forum please ]

http://www.hoperf.com/upload/rf_app/HM-TRS.pdf this is the datasheet for wireless module, i've connected arduino's RX to TX on module and TX from arduino to RX on module as shown in datasheet.

MarkT

You read the datasheet about the power supply being 2.2V to 3.8V then?
[ I won't respond to messages, use the forum please ]


MarkT

grounds and power lines shared I presume?  Reread datasheet for any thing you've missed, check all connections with multimeter?
[ I won't respond to messages, use the forum please ]

i will recheck all to see if is something wrong. tnx

Go Up