Page 2 of 4

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Thu Apr 13, 2017 2:51 pm
by yonghui
Hi,

you can use Serial.print(error, HEX) ; to print the error in HEx for easier debugging process.
look at the error return from the cube servo library in the link https://github.com/CytronTechnologies/Cytron-G15Shield/blob/master/Library%20References/Return%20Status.md
[img]
G15err.png
[/img]


0xE00 means Checksum error, ID mismatch, Wrong header, this means the received packet is corrupted.

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Thu Apr 13, 2017 3:37 pm
by yewys
Hi yonghui,

Nice! Just like what i've doubted on yesterday. Do you know what could be the cause of this data crash? Any suggestion to duel with this kinda problem?

B.T.W
Thanks again for your reply! :D :D

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Fri Apr 14, 2017 6:08 pm
by yonghui
Hi,
Corrupt packet can be cause by incorrect Ctrl pin polarity in software definition, or timing of Ctrl pin to change from transmit to receive orayb some other problem.
Do you have USB to serial/ UART converter in hand? If yes maybe you can try to read the signal from both before and after gd02 to troubleshoot.

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Sat Apr 15, 2017 7:08 pm
by yewys
Hi yonghui,

I see. How is the USB to serial/ UART converter looks like? i guess i don't have that kinda stuff. From what you know, any other method to troubleshoot the signal? Does the example code I posted here previously work for you? If that code works for everyone else, then i might have to consider the hardware which causing the problem. Apart from that, have you ever tried other platform to run the G15 servo motor? For example like matlab or labview.

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Mon Apr 17, 2017 8:41 pm
by A380
Hi,

I've noticed that GD02 V1.0 Ctrl pin logic is inverted if compared to GD02 V2.0.

For your old version GD02, I've added some coding to the library, so just download the attached Cytron_G15Shield.h file and replace to your PC, its directories somewhere here
C:\Users\PCNAME\Documents\Arduino\libraries\arduino_402927\src

If you are going to use GD02 v2.0 or G15 Shield in future, you have to comment this line in Cytron_G15Shield.h first.
Image

Image

Hopefully this can solve your problem.. :roll:

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Tue Apr 18, 2017 8:01 am
by yonghui
Hi,

try suggestion by A380. He tested with real hardware of GD02 v1. if still cannot, i will show you the way to use Arduino uno itself as USB to serial converter.

Please make sure of these below for GD02 V1:
1. Tx arduino connect to Tx of GD02 V1.
RX arduino connect to RX of GD02 V1. ( GD02V1 treat it self as duplex to half duplex converter)
2. replace the file modified by A380 into your library folder, and restart your arduino IDE, then recompile the code. A380 properly defined the ctrl pin polarity in the .h file.

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Wed Apr 19, 2017 2:09 pm
by yewys
Hi A380 & yonghui,

Do i just simply replace the header file to the the original shield header file? I've tried, but nothing different. I've tried the pin 3 as Tx and pin 2 as Rx, or inverted them, still getting the same results (G15 LED didnt light up). Or is there any simpler mistake that i've made? Like, i've to disconnect the motor from the driver first while uploading the code, or others? Try me please.
BTW, i'm still doubting whether the GD-02 Rev 1.0 that i'm using has hardware problem.

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Tue Apr 25, 2017 1:17 am
by yewys
Hi,

I've tried to run the servo motors using arduino shield and it works! But how come it doesn't work when using GD-02 driver? I've even bought a new GD-02 Rev2.0 to test but still the same, motors don't move :(
May someone teach me on how to write coding referring to the g15 source code, please?

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Tue Apr 25, 2017 4:23 pm
by A380

Re: G15 : Error 'E00' in hex or '3584' in decimal

PostPosted: Tue Apr 25, 2017 6:55 pm
by yewys
Hi A380,

Still can't work, did you try the GD-02 driver which it works successfully?