Help!!! G15 doesnt reply

LINIX Brushless, VEXTA Brushless, RC Servo, DC Geared, Linear, Stepper, Tamiya.....

Help!!! G15 doesnt reply

Postby zargoun » Thu May 29, 2014 1:54 pm

i found the example for getting the temperature of the motor in the usermanual.

i have tried to use it, but there is no reply from the G15, i used realterm to verify my code. my code does work very well since the realterm receive whenever i send from my IOIO, and my IOIO receive whenever i send from realterm

here is the code :

CODE: SELECT_ALL_CODE
void ioioLoop(IOIO ioio) throws ConnectionLostException {
 
  led.write(false);
 
  DTR.write(true);
  try {
   
    try {
        out.write(0xFF);                         
         out.write(0xFF);
         out.write(0x01);
         out.write(0x04);
         out.write(0x02);
         out.write(0x2B);
         out.write(0x01);
         out.write(0xCC);
    }
    catch (IOException e){
    }
   
    delay(20);
   
    DTR.write(false);
   
     try {
       int count =7;

   
   
    int count1 = in.available();
   
    if (count1 > 0){

     in.read(reading); 
     
   
    }
     }
    catch (IOException e){
    }
   
   
   

    Thread.sleep(20);
  }
  catch (InterruptedException e) {
  }
}
zargoun
Newbie
 
Posts: 12
Joined: Thu Apr 05, 2012 3:25 pm

Re: Help!!! G15 doesnt reply

Postby sich » Thu May 29, 2014 3:09 pm

How do you connect the G15 to your IOIO board? Did you use GD02? G15 cube servo communicate with half-duplex UART. And lastly, does your G15's ID = 0x01?
~> How to ask QUESTIONS the SMART way in FORUM? <~
User avatar
sich
Moderator
 
Posts: 603
Joined: Tue Apr 21, 2009 2:15 pm

Re: Help!!! G15 doesnt reply

Postby zargoun » Thu May 29, 2014 3:45 pm

sich WROTE:How do you connect the G15 to your IOIO board? Did you use GD02? G15 cube servo communicate with half-duplex UART. And lastly, does your G15's ID = 0x01?


yes i have used GD02 and successfully control the motor, however i still need the feedback
i sat the CTRL pin low to receive. but still no response
zargoun
Newbie
 
Posts: 12
Joined: Thu Apr 05, 2012 3:25 pm

Re: Help!!! G15 doesnt reply

Postby yonghui » Thu May 29, 2014 7:31 pm

U will the missed the response packet if u DTR response is slow. Pls use an IO pin to control the g15 driver Ctrl pin. Switch to receive mode as fast as possible. G15 reply in 500us after it receive a complete packet. If u r late then u will miss it since the g15 driver is still set to transmit mode

Sent from my Nexus 4 using Tapatalk
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm


Return to DC Motor

Who is online

Users browsing this forum: No registered users and 5 guests

cron