Community Question

User-inserted image

I want to start a new tutorial, and for this I am hoping for your input as well to make this work. With the ability of connecting more than one EZ-B v4 to a robot project, I feel that it would be very helpful for new and established members (myself included) to find out exactly what can be done using more than one v4.

My idea is to document what can and cannot be done on a secondary board, with a simple to understand format with a short explanation. There is information of what is achievable using more than one board in the EZ-Script menu (some may be included in this thread), clicking the "Help" icon on controls, and in the tutorials in the learn section, and some of EZ-builders controls have the option to select a board. But having a one stop list of all what can be done all in one place may be easier to search through, some of which may not be covered or easily understood in the script menu and learn section.

Some posible subjects with posible script examples that could be covered are...

.) Speech
.) SayEZB
.) i2c
.) GetVoltage and GetCPUTemp
.) MP3 triggers
.) Serial commands
.) GetServo
.) ADC ports (eg, ADC sensor readings)
.) Digital ports (eg, Digital On/Off)
.) Ping sensors (with or without motor controllers)
.) Battery monitor scripts
.) Using Cheat sheet (Control Commands)
.) Auto position control
.) Limitations and differences using "AP mode" and "Client mode" with multiple boards.

and I'm sure that there are more subjects I have missed.

I know that many of the experienced members here use multiple boards in their projects, so your input here would be would be valuable and most welcome. So to anyone who wants to participate in this dynamic tutorial, remember to keep it short, easy to understand, and give simple script examples where appropriate so that our newer members and current users who find scripting a bit challenging, can pick thing up quickly and easily.

Add as few or as many as you like, and if you see anything that you think may be incorrect, then please let us know with your correct answer and solution. And if you have something you would like to ask about using multiple boards, don't be afraid to ask however silly you may think the question is, and we'll see if someone can answer you. I hope you all find this a good and useful idea, and I hope you take part in an effort to helping our fellow community members. :)
Steve G
Commented August 2015
So to get the ball rolling, here are the first "cans" and "cannot's" with the example I would like to have used that would be "Board 0" and "Board 2".

Movement panels.

A movement panel can only be used with "Board 0".

Servos.

Controlling a servo can be done using any board, in this example, "Board 0" and "Board 2". An example of a simple servo script would be...

Code:

# A normal servo script connected 
# to "Board 0".

Servo (D0,90)



Code:

# This servo is connected to "Board 2"

Servo (2.D0,90)



The "2." in the above script is the number of the board the servo is connected to. The same can also be done with servo speeds.

V4 camera.

You can connect an EZ-B v4 camera to any board. You can also have two v4 cameras connected to both "Board 0" and "Board 2" and can be selected from the camera control. You can also have two camera controls in any one EZ-Builder project.

Now, it's over to you... ;)

Steve G
Commented August 2015
That's cool. Thanks Rich. I didn't actually now you could just use just the D0 input on board 0 when using multiple boards, and that's exactly the reason why I started this thread. Little gems like that people may not be aware of.

I'm also not aware of anything that won't work that way on another connected board except motor controllers where a movement panel is concerned.

Thanks for your input Rich. Much appreciated, and helpful.
Steve G
Commented August 2015
In the script menu, there is the following statement...

Quote:

SendSerial( digitalPort, baudRate, data, ... )



Does anybody know if a board number can assigned to this, like the following...?

Code:

SendSerial( Board number. DigitalPort, BaudRate, Data, ... )



Also, it would be great to see some input the from EZ-Robot guys, especially in regards to control commands, using Auto Position, getting v4 info, and the difference between AP and Client modes (if any) when using multiple boards. I know that there will be lots of members who would welcome any contribution.

Steve G
Commented August 2015
Another possibility that may be useful, can variables be set on a "per board" basis, and if so, what examples could this be used for?
Steve G
Commented August 2015
Thanks to the guys who have responded, but I think I'm going to close this thread due to the surprising lack of interest. I'm suppried there hasn't been more input from others willing to help, as I know many of you use more than one board in your projects. It's a shame, as I thought this would be a good way to document using multiple boards in one place, and find out things that may not necessarily mentionedor explained with examples in the learn section. As I mentioned, this needed input from others to make this work.

Thread closed.
thetechguru
Commented May 2016
Re-opening as this was a useful thread.

As of 5/23/16 build, SayEZB() and SayEZBWait() both accept an optional second parameter that specifies the EZB Index to output to as per this request: http://www.ez-robot.com/Community/Forum/Thread?threadId=5889

Example

Code:




SayEZB("Hello, i am a second ezb", 1)



Copied from release notes verbatim

Alan

Question
AvatarSteve G
Asked on Monday, August 24, 2015