Hi every one ;
I have 3d compass from Rion-tech.com its name HCM505B RS-232
and I need to get data from it to my Arduino UNO
I make a circuit that will transfere from TTL to RS232 using MAX232 and i test it and finally work
so just my problem now is how to send this “68 04 00 04 08” command to the compass from arduino and how to translate the recived command from compass
so can any one help me please . .
I know that is a very simple thing for experts but I am beginner to arduino
datasheet
http://www.rion-tech.net/uploadfile/20130110/20130110092946290.pdf
I use arduino uno and here is my code;
#include <SoftwareSerial.h>
SoftwareSerial mySerial(6, 7); // RX, TX
void setup()
{
// Open serial communications and wait for port to open:
Serial.begin(115200);
while (!Serial) {
;
}
Serial.println(“Goodnight moon!”);
// set the data rate for the SoftwareSerial port
mySerial.begin(9600);
mySerial.println(“Hello, world?”);
}
void loop() // run over and over
{
if (mySerial.available())
Serial.write(mySerial.read());
if (Serial.available())
mySerial.write(Serial.read());
}