Pages: [1]   Go Down
Author Topic: Arduino and HOPE RF HM-TRS serial communication problem  (Read 1028 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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?
Logged

0
Online Online
Shannon Member
****
Karma: 161
Posts: 10438
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

datasheet?  Wiring diagram?
Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

0
Online Online
Shannon Member
****
Karma: 161
Posts: 10438
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

You read the datasheet about the power supply being 2.2V to 3.8V then?
Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

yes, i use arduino 3.3 V power suply
Logged

0
Online Online
Shannon Member
****
Karma: 161
Posts: 10438
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

grounds and power lines shared I presume?  Reread datasheet for any thing you've missed, check all connections with multimeter?
Logged

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

Offline Offline
Newbie
*
Karma: 0
Posts: 4
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Jump to: