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

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

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

Postby yonghui » Thu Apr 13, 2017 2:51 pm

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.
Attachments
G15err.png
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

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

Postby yewys » Thu Apr 13, 2017 3:37 pm

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
yewys
Novice
 
Posts: 20
Joined: Sun Apr 09, 2017 10:18 pm

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

Postby yonghui » Fri Apr 14, 2017 6:08 pm

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.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

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

Postby yewys » Sat Apr 15, 2017 7:08 pm

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.
yewys
Novice
 
Posts: 20
Joined: Sun Apr 09, 2017 10:18 pm

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

Postby A380 » Mon Apr 17, 2017 8:41 pm

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:
Attachments
Cytron_G15Shield.zip
(2.18 KiB) Downloaded 82 times
User avatar
A380
Discoverer
 
Posts: 119
Joined: Tue May 19, 2009 2:44 pm
Location: Malaysia

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

Postby yonghui » Tue Apr 18, 2017 8:01 am

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.
thanks&regards,
yh
yonghui
Moderator
 
Posts: 732
Joined: Mon Sep 28, 2009 3:27 pm

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

Postby yewys » Wed Apr 19, 2017 2:09 pm

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.
yewys
Novice
 
Posts: 20
Joined: Sun Apr 09, 2017 10:18 pm

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

Postby yewys » Tue Apr 25, 2017 1:17 am

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?
yewys
Novice
 
Posts: 20
Joined: Sun Apr 09, 2017 10:18 pm


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

Postby yewys » Tue Apr 25, 2017 6:55 pm

Hi A380,

Still can't work, did you try the GD-02 driver which it works successfully?
yewys
Novice
 
Posts: 20
Joined: Sun Apr 09, 2017 10:18 pm

PreviousNext

Return to DC Motor

Who is online

Users browsing this forum: No registered users and 1 guest

cron