Welcome to Synthiam!

Program robots using technologies created from industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation and artificial intelligence easy.

Get Started
Asked — Edited
Resolved Resolved by Rich!

Robo Claw 2X60, Ezb 4, Speech Recognition?

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.

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
United Kingdom
#31  
I just knocked up a quick and simple RoboClaw Serial Demo.

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.
#32  
Richard R- I tried again.... nothing still wont stop.

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!
United Kingdom
#33  
Does speed control work?
Have you tried sending 64 and 192 to stop the motors?

Code:

SendSerial(D0,38400, 64)
SendSerial(D0,38400,192)
#34  
Rich I just ran your script, It started 1 motor, a second later the other motor started both again in opposite directions and continues to just run. I have to pull the battery again to make it stop.
Thanks for your efforts. I may see if my wife can video the set up of the robo claw for you guys to see.
United Kingdom
#35  
I'll have a look at the Arduino library/code for it and see if there's anything "special" about it. The manual doesn't say there is but sometimes they miss out something that seems small and irrelevant but is necessary.

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.
#36  
Thanks again! I just went through the setup of the robo claw with paper manual in hand. It definitely blinks 5 times for serial mode, and then next menu 4 times for baud rate 38,400. I really hope this can get figured out as I have a second robo claw 2x 30 for shoulder motors.

Thanks everyone! Chris
United Kingdom
#37  
We will sort it eventually, I haven't been beaten yet:) It's just usually a lot of trial and error especially when I don't have the same piece of kit to test out myself.

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, 0x0D)
SendSerial(D0, 38400, 255, 0x0D)
Sleep(2000)
SendSerial(D0, 38400, 0, 0x0D)
#38  
Hey Rich Ive been poking around at basic micro forums, this seems to be a known problem since may of this year. (Motors wont stop) One of the admins over there specifically said 0 will not stop the motors, and to use the individual commands 64 and 192 (stop respectively for each motor) I will try this and see what happens. Supposedly there is a firmware update that may address this problem. Thanks for all your help. I will let you know if this stops the motors,and then we can move on from there. Chris
#39  
AHA success! It is a firmware problem for sure. Re-wrote script


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
United Kingdom
#40  
Cool, glad it's working.

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.
#42  
or reverse one of the motor wiring so you can maintain the 127 and 255 forward numbers... add the speech control and try it...


....all that work and Rich gets the credit...LOL... Glad you are making progress
#43  
I don't know why some of my posts aren't coming through... Again I want to specifically thank RIchard R for all of his hard work. Im very gald to see you both help me finally get a resolution to this. All the help is so much appreciated, great fathers day present! Chris
#44  
No worries Chis, just glad you're almost there...Besides we need to get Rich to a 1000 credits.... The fact you stuck with it solved your problems....
United Kingdom
#45  
Sorry dude, I did try not to jump in and steel it, I'd been watching the topic for a while, there's nothing better than watching a man fish with the fishing rod I helped provide (a take on what someone said the other day about teaching a man to fish rather than giving him the fish):)

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?
#46  
No worries Rich... I am not bothered at all you got the for this nod...

Cheers:)
#47  
@kamaroman68, Nice work so far. I know it must feel good to make progress.

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
#48  
Thanks Dave, Yup I got the speech recognition working this weekend, and went a step further, built a mobile app ()very basic one) and was able to control via Samsung galaxy tablet. Really starting to pick up speed now with this system. Now I just need to "open" up my router to open port forwarding so I can remotely operate from anywhere in the world. Will probably have many questions on that in the future. Thanks guys it is much appreciated for all the help! Chris
#49  
Hey, Chris.... awesome to hear.... I myself am interested in controlling my robot from anywhere over the internet... I may need your help this time with the port forwarding stuff...

Cheers
Richard
#50  
Absolutely, as soon as I get it sorted on my end I would be glad to help! Chris