Go Down

Topic: Serial Baudrate for HerkuleX motor. (Read 845 times) previous topic - next topic

Jan 25, 2013, 05:52 pm Last Edit: Jan 25, 2013, 06:02 pm by Lucas Cavalcanti1 Reason: 1
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.
Lucas Cavalcanti

AWOL

Quote
I'm thinking if I can just put Serial1.begin(117647).
You should be able to?
Doesn't it work?
"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.

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.
Lucas Cavalcanti

alegiaco


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




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
Lucas Cavalcanti



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 ?
Lucas Cavalcanti

alegiaco

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

Go Up