
Gerald
USA
Asked
— Edited

I have a question about the sending data between multiple ez-robots.
Basically, my PC will connect two or more ez-robots, how can I receive data from one robot and send data to other robots.
One more question, if my computer is connecting to a Arduino Board via USB, how can I send data from arduino to ev4 then the ev4 can process the data then sends back the data to arduino?
I.E. You have robot arrive at home base. You would have the robot trigger
Code:
And the second robot would be using a script to say "ill be right there" like
Code:
I can't guarantee the script is totally correct, but it should be close. Use this as an example for writing your own.
As for your arduino question, you can use analog ports on the ez-b connected to data ports on the arduino, and have the arduino send info, or you could also use the i2c or UART ports on the ez-b connected to the corresponding arduino port.
Then write a script to have the ez-b read the data.
If you don't want the boards connected but rather communicate over the pc, you could use the sendserial control to send info over the com port, if the arduino can except that.
Code:
How can I call a customized function for different robots.
The other way is to run multiple instances of ARC. You would need to send all variables to each instance of ARC though which isn't an easy task (at the moment - the cloud should solve that soon)
Robots are made up of a bunch of scripts and controls right? So build your ez robot project for the first (0) ebz board, then build another robot specifying board #1 then a third robot specifying board #2 and so on...
***edit*** Rich is right, forgot about that... One Movement Panel per project and I think only one speech rec as well... (not quite sure)
Last question, can ev4 read data from serial terminal?
You can connect to 5 ez robots with the software. You can have Auto Position controls for movements of each robot. You can also code as given example by previous posts.
You can do anything you want with it. Download the software
As for your Arduino, you can connect to it - but that's up to you. You will have to write code on your arduino and stuff. That's something I can't help you with. Which is why we made ez robot, so ppl don't have to write complicated code on arduinos to do very little and impress no one
Hi, I met another question.
I tried to use sayEZB() method to make multiple ez-robots say different sentences in the same ARC.
like the first border will say sayEZB("First"), but how to make the second board say sayEZB("Second") ?