, for answering the question and has received an EZ-Credit award! Share what you have learned and create a tutorial to help others by clicking here
I have has excellent success in this hack thanks to EZ- Robot and now I need a little assistance. The Movement Panel works great, but ultimately it must be a autonomous script. I need to know what verbage / language to use when scripting. I will give example of some things that must happen.
To Dock -
INIT ( initialize)
Select Seek Dock
To undock itself-
Select Disable sensors
Select INIT (initialize)
Select Disable Sensors ( agian)
Drive in Reverse
Can anyone write an acceptable example for each of these to try. I will research it in the meantime but combining talents makes things so much quicker.
EDIT: I found this as well, now I just need help putting it all together
Roomba( cmd )
Execute the specified command on a connected Roomba Vacuum on Port D0 and EZ-B 0. Look for the available Roomba commands further below in this document.
You may also add the Roomba Movement Panel for graphical controls.
I have found a few conversations, tutorials and activities that may help with your question. Take a look at these links. I've sorted them by what I believe to be most relevant but that is not always the case as I'm still learning.
Also, consider reviewing the Learn section for informative lessons and activities.
Check it out!
Here is what I could find looking through the SCRIPT " ?" , I just dont know how they are to be written to work.
Would it be? -
Return to base from sitting-
Do I need to enter a wait timer between or is this fine?
Remove from base-
I think you're going to have to send serial strings to the D0 port with the Roomba Open Interface commands that will place the robot into the different modes like "clean", "seek dock".
Do an internet search for this document: iRobot® Roomba® Serial Command Interface (SCI) Specification
That document contains all the commands that can be sent to your Roomba.
The script commands will look something like this to start
1 # This command starts the SCI and must be sent
2 # before any other command
6 # This command places the Roomba in the Clean mode
10# This commands tell the Roomba to look for the Dock
Here are some scripts I currently use on my Robot with ICreate platform with voice commands.
I use the script below in connection script, beep allows me to know Create is init. You must use the "" now in all the commands.
My robot is somewhat tall, the command below reduces rocking.
# Forward slow Command
# Forward slow Command
I cannot test the docking for you, because my docking station is broken.
There are other usefull scripts by RobMcc and Doug Pope.
Edit- I don,t know why the smilling face shows above with the
Did any of the script suggestions help you?
You can change the script arrangements and sleep times to fit your wishes.
Don,t forget the " " around Roomba commands. Example Roomba("SeekDockingStation"
@ Steve. I have not been home yet to try some example scripts , I will try tonight I believe. I appreciate the help. Whatever I test I will post the result back up.
The script for turning right is, sleep value gives my Robot about a 90 degree turn. You can adjust.
@Steve S, Jstarne1 Josh, be sure to get a copy of Serial Command Interface (SCI) Specification for Roomba... I do it the way Steve S does it, just not on the EZB (since I don't have one yet).... It works well on the AtomPro, so it will work on the EZB (as Steve can attest to)...
Just a quick note on the Roomba commands, they need to be enclosed within quotes to meet EZ-Script syntax.
That's provided those commands are correct, I've not got a roomba to play with so have never used the commands.
The newest update (today) should now include the roomba and robosapien commands in the Cheat Sheet "click & paste" section of EZ-Script.