Question:

Question: 
how to configure more than one Arduino board in mrl without using the service inmoov?
kwatters's picture

start what ever services you like

Hi Mecax, 

  you can start up the arduino service directly .. you can attach your servos to it.  

arduino1 = Runtime.createAndStart("arduino1", "Arduino")

arduino2 = Runtime.createAndStart("arduino2", "Arduino")

arduino1.connect("COM10")

arduino2.connect("COM11")

you will have 2 new services called arduino1 and arduino2 .. 

the InMoov services just bundles together a bunch of other services...  arduino/servos/opencv/openni .. etc..

hope this helps!

 -Kevin

 

 

mecax's picture

yes, you helped me

yes, you helped me , thanks kevin

GroG's picture

Nice kwatters ! Ya .. there

Nice kwatters !

Ya .. there is NO limit :)

arduino1 = Runtime.start("arduino1", "Arduino")

arduino2 = Runtime.start("arduino2", "Arduino")

arduino3 = Runtime.start("arduino3", "Arduino")

arduino4 = Runtime.start("arduino4", "Arduino")

...

arduino(n) = Runtime.start("arduino(n)", "Arduino")

 

where you will run out of Arduinos & com ports before MRL can stop controlling them :)