
kamaroman68

I have a robo claw 2x 60 motor controller. I have ezb4 connected via DO and D1. I am connected to the EZB4 with my computer as I can send sound files to it and it plays out the EZB4. I have assigned ports DO to left motor and D1 to right motor. I cannot make the motors do anything. I have previously used this controller with a RC receiver and it worked. Is the EZB 4 not able to replicate those commands? Do I have to speak with it serially? A script? When I read the script control instruction it says something about needing a Movement Panel associated with it? Thanks ahead of time.
Download it, change your connection settings as required and (provided the roboclaw is on D0 and set for 38400 baud) it should give a demo of forward, reverse, left and right then stop if you run the script. The Movement Panel included should also control the roboclaw.
Rich - I will try in the next few minutes.
ALL I did submit a post at basic micro forums for help with this controller. I firmly believe every setting is correct. I was really hoping my extra comment in the baud rate was the issue but, no go!
Have you tried sending 64 and 192 to stop the motors?
Code:
Thanks for your efforts. I may see if my wife can video the set up of the robo claw for you guys to see.
The script should have had both channels moving at the same time so if one started and then nothing for a second or so it would indicate there's something else needed after initially sending the 128 or 255 or whatever byte is needed.
Thanks everyone! Chris
It may be as simple as needing a carriage return at the end of the data, 0x0D in hex.
Quick example to spin both channels forwards for 2 seconds then stop;
Code:
SendSerial(D0,38400,127)
SendSerial(D0,38400,255)
Sleep(5000)
SendSerial(D0,38400,64)
SendSerial(D0,38400,192)
Motors now run, again in opposite directions but now STOP. Now I need to figure out how to do firmware update to the board. Thanks Chris
To reverse the direction of one of the motors just use the full reverse number for forward i.e. change 127 to 1 and 1 to 127.
If you need to use 64 and 192 to stop you could use the custom Movement Panel and just throw the send serial commands in each script for the movements and in stop throw in the commands with 64 and 192 in, that would work in the absence of updating the firmware.
....all that work and Rich gets the credit...LOL... Glad you are making progress
For what it's worth I think you deserved the credit - if EZ-Robot staff can change it and are reading this maybe they can change it?
Cheers
I don't think I've read where anyone answered your question about Speech Recognition. You need to install the Speech Recognition control into ARC and in there you can link your scripts or actions to your robot. Take a look at some of the examples DJ and others have built. They will give you a good idea how to do this.
Good luck, Dave
Cheers
Richard