MRL not working on MAC

Hello guys,

I am new on Inmoov and MRL and try to do the tutorial on how to move a servo with MRL.

Quick presentation:

I am 33 years old, French and currently working in Shanghai. I used arduino some time ago when I had a reef tank in France, I used it to monitor my tank (Temperature, PH, light, pump...). Unfortunately I had to stop everything to go in China.

My issue:

In arduino runtime i have no board proposed but I can select the port used by my board (mega 1280).

I saw on other thread that it can be solved but uploading the script with the external arduino IDE.

I did it but I am not able to control a servo.

I select the pin and attach the board but nothing happen.

 

In arduino runtime it is written "Status: null / dev/ tty.usbserial-A4007nDr"

I send the NO Worky report and hope you can help me.

Thanks

BR

Laurent

ambroise's picture

salut laurent    bienvenue

salut laurent 

 

bienvenue sur myrobotlab

moi aussi je suis francais lol sur marseille dans le sud de la france

ambroise

GroG's picture

Hello and Weclome Miserovitch

Hello and Weclome Miserovitch !

Your English is impeccable.  Alessandruino has been trying to teach me Italian for years.. I haven't done very well :)

So lets jump into your no-worky and find the problem..

This is the interesting part of your no-worky:

[main] INFO  class org.myrobotlab.framework.Service  - ivy [runtime,x86.64.mac]
69   [main] INFO  class org.myrobotlab.framework.Service  - os.name [Mac OS X] getOS [mac]
69   [main] INFO  class org.myrobotlab.framework.Service  - os.arch [x86_64] getArch [x86]
69   [main] INFO  class org.myrobotlab.framework.Service  - getBitness [64]
70   [main] INFO  class org.myrobotlab.framework.Service  - java.vm.name [Java HotSpot(TM) 64-Bit Server VM] getVMName [hotspot]
74   [main] INFO  class org.myrobotlab.framework.Service  - version [1695.20130913.0508
 
18429 [arduinp] INFO  org.myrobotlab.serial.SerialDeviceFactory  - getSerialDevice /dev/tty.usbserial-A4007nDr|8|8|1|0
18429 [arduinp] INFO  org.myrobotlab.serial.SerialDeviceFactory  - Loaded class: class org.myrobotlab.serial.gnu.SerialDeviceFactoryGNU
 
The method to open the serial port is getSerialDevice - and I can see that its trying to open it with 8|8|1|0 - which is 8 bit rate 8 databits 1 stop bit and 0 parity.  WHAT ?!? 8 BIT RATE !!! - Ya .. so thats the problem. And below is a log segment from KMCGerald - our resident Mac expert. 
 
[main] INFO  class org.myrobotlab.framework.Service  - ivy [runtime,x86.64.mac]
215  [main] INFO  class org.myrobotlab.framework.Service  - os.name [Mac OS X] getOS [mac]
215  [main] INFO  class org.myrobotlab.framework.Service  - os.arch [x86_64] getArch [x86]
215  [main] INFO  class org.myrobotlab.framework.Service  - getBitness [64]
215  [main] INFO  class org.myrobotlab.framework.Service  - java.vm.name [Java HotSpot(TM) 64-Bit Server VM] getVMName [hotspot]
218  [main] INFO  class org.myrobotlab.framework.Service  - version [1823.20131021.0701
 
[Thread-8] INFO  org.myrobotlab.serial.SerialDeviceFactory  - getSerialDevice /dev/tty.usbmodem1421|57600|8|1|0
 
This looks more  "normal" - 57600 bit rate ;)
 
So the biggest difference I see between your two systems, is his is the latest version and yours is very very old.  Step 1 .. update to the latest and see if it works.  If it doesn't send me another noworky.
 
 
Alessandruino's picture

Hi and welcome..sometimes GUI

Hi and welcome..sometimes GUI (graphic interface) could be pretty "sissy"...

Use "strong" code-fu !!
http://myrobotlab.org/service/Servo

In that post you LL find a code to copy paste in the python tab

Tweak the script modifying your comport and the servo pin...

Then hit execute !!

And it will auto-magically create services for arduino and servo !!

Let us know

Alessandro

Miserovitch's picture

Hi, Thanks for your help. I

Hi,

Thanks for your help.

I tried last release before and forgot to speak about it. I am not able to install runtime. I have a huge list of unresolved dependencies. I send a new No Worky for that, sorry :-p

 

Using 1695 release i tried the "Python hard code" solution;

Status has changed to : connected to serial device /dev/tty.usbserial-A4007nDr which is good but servo is not responding.

In order to check that the hadware is right i uploaded a small script with external arduino IDE and it works so connections, board, servo are right.

 

Thanks to spend time to help me.

BR

Laurent