Go Down

Topic: RX TX PROBLEM (Read 1 time) previous topic - next topic


i am using  http://robokits.co.in/shop/index.php?main_page=product_info&cPath=2&products_id=368  this motor in my project .
when i am writing data to motor using arduino via tx and rx .. it is responding to data character like "R1212" .. but while i am trying to read the value from motor .. i am not able to get anything ..
please help me .. i am stuck in my project work

void setup()
  Serial.println("Y");  // to reset the  values of servo motor
  Serial.println("R1212");  // go to this relative angle ..  ( and it worked )
  // here  is the problem while reading from motor .
  Serial.println("R");  // comman byte to be read
  int c =  Serial.read();
void loop()


So what's your question?  That pic you attached tells you exactly how to do it. 


now i got it ..
if i am using rx0 tx0  ..
for transmission and reciving ... problem is coming ..
so , i used serialport2 .. and it wrked :)

Go Up