![]() It has been fine at 9600 baud until now, but now I am trying to do two way communication instead of the send only communication that I have been doing until now. The problem with the slow baud rate is that I am trying to do an external feedback loop using the Arduino, and so the commands that I send to the motor are very time sensitive. I don't have the exact data sheet for this motor, but some information can be found here: Downloads I had tried serial.end() before, but it still didn't work. I'll try the serial.flush() technique tomorrow and let you know. (Well, other than that I can only slow down the baud rate.) But it doesn't work when using the hardware port. Tell the motor to go to a new baud rate.Īs I said, I can use this with software serial, no problem. Send Go command to start motor servo with new values. Send the motor to a good central position. Start serial to communicate with motor. ![]() I figured that I could use the hardware serial port, but whenever I try and change the serial speed the motor stops responding. I have been very successful with using software serial, but I can't get it to be stable at over 9600 baud (at 19.2k it works for a little while, but then stops working.) I am trying to talk with an Animatics Smart Motor over serial, which defaults to 9600 baud. I am working with an Arduino Duemilanove and am having trouble getting serial to work correctly.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |