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

kwatters

9 years 5 months ago

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

 

 

GroG

9 years 5 months ago

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 :)