Pages: [1]   Go Down
Author Topic: Serial Baudrate for HerkuleX motor.  (Read 726 times)
0 Members and 1 Guest are viewing this topic.
Brazin
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, I'm trying to use some motors that need serial communication. The standard baudrate of the Servo Motor is 115200, but the real baudrate of the motor is 117647, so sending packets for the motor is ok, but receiving they always get wrong.

I'm thinking if I can just put Serial1.begin(117647)... It will work in arduino Mega? Or the board doesn't support this baudrate?
If not, the arduino mega supports 1000000 bps ? Because I can change the servo motor for this baudrate.
« Last Edit: January 25, 2013, 12:02:04 pm by Lucas Cavalcanti1 » Logged

Lucas Cavalcanti

Global Moderator
UK
Offline Offline
Brattain Member
*****
Karma: 303
Posts: 26354
I don't think you connected the grounds, Dave.
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
I'm thinking if I can just put Serial1.begin(117647).
You should be able to?
Doesn't it work?
Logged

"Pete, it's a fool looks for logic in the chambers of the human heart." Ulysses Everett McGill.
Do not send technical questions via personal messaging - they will be ignored.

Brazin
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
You should be able to?
Doesn't it work?

I tested now, and it doesn't work. I really don't know why. Always send the package works, but when I put to receive data, it doesn't get correctly.
Logged

Lucas Cavalcanti

Rome
Offline Offline
Full Member
***
Karma: 2
Posts: 187
I love Arduino
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


in my experience the 115200 bauds speed and arduino mega works very well. I wrote a library for Arduino mega and i had no problems with this speed.link:http://robottini.altervista.org/dongbu-herkulex-arduino-library-2

Logged

Brazin
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


in my experience the 115200 bauds speed and arduino mega works very well. I wrote a library for Arduino mega and i had no problems with this speed.link:http://robottini.altervista.org/dongbu-herkulex-arduino-library-2



Ohh it seens pretty good. I will try your library! Thanks
Logged

Lucas Cavalcanti

Brazin
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset


in my experience the 115200 bauds speed and arduino mega works very well. I wrote a library for Arduino mega and i had no problems with this speed.link:http://robottini.altervista.org/dongbu-herkulex-arduino-library-2

Thank you soo much! It really works, I think that the previous library problem in receiving packs, was because the receive function doesn't wait the complete size of receiving pack to read, the function simple read while serial is available.

Can I make some changes in your library just to use functions that I need, and with other names ?
Logged

Lucas Cavalcanti

Rome
Offline Offline
Full Member
***
Karma: 2
Posts: 187
I love Arduino
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Yes, you can change what you want. It is open source!!!
Logged

Pages: [1]   Go Up
Jump to: