Arduino Service - almost like "real" software

If you get version intermediate.765.20120904.0647 or above

 

You get “Quicky-Fu” Style Updating…

Applicable for versions intermediate.765.20120904.0647 and above 

Help->About

This version has a nifty update functionality too regarding, updating...
The "really good part" is it only takes about 4 seconds to update & all of your previously loaded services are still installed !!

a2.png

"I feel lucky, give me the bleeding edge!"

m1.png

"Yes, hit me daddy-O!"

m2.png

restart - 4 seconds later - "fresh mrl" !

m3.png

Woohoo !

 

Closer…

The sketch didn’t go in.

Ok, played around… I converted my Duemilanove into an Uno (which did not help). From there, I zapped-in the sketch a few more time, each time wondering how it was going in so fast. I did indeed see the RX/TX blink, but for a very quick second only. In the end, I installed a blink sketch, then zapped in the MRL sketch via MRL. After that sketch was sync’ed, my blink sketch was still blinking --It didn’t go in. Again, RX/TX lights did their little flicker thing, but proof is in pudding or something, and in this case proof was a blinking pin13, still blinking.

I cut and pasted the MRL standard sketch into the regular Arduino IDE (023) and zapped it to the Uno. It went in like any other sketch. I fired up MRL again and connected. I have a scope --Which is quite fantastic, by the way, but no manual access to pins.

So far, I have tried a pot on one analog input and I have tried to turn pin13 on and off via the “pins” tab. I am getting nothing from my pin13 led. I am moving on to a meter so I can test some of the PWM sliders and I need to jump 5v into some of the digitals to be sure I can see them on the scope as well.

I really want this to work, dude --The scope alone is incredibly beautiful and simple and fast and great. 

I’ll let you know.

 

I got pins

I have no idea what the hell is going on with my 13… 

Yup, I have all analogs and all the digitals/ pwm’s work via the “pins” tab. I have digital inputs on the scope too. 100%

Oddly enough, I am getting exactly 1.75v on my pin13 when I send it high. Every other digial pins works just fine with a clean 5.04v on each. Once again, the blink sketch works great but when run via MRL, only 1.75v. Friggin’ weird, dude.

Oh well, whatever, I don’t need to stinkin’ pin13 --screw it.

Everything else is working. I am going to go play with it now.

 

 

Hardware issue?

Pin 13 saw one to many LEDs ? 

Yay !

Your up (ish)…

maybe flip the pin 13 out to in then back to out ?

pin 13 has a different default initialization of pinmode if I remember correctly…

Anyhoo, its great that its working(ish) for you…

So, the MRLComm.ino was a little rough, and you had to use the real Arduino IDE to get it “worky” … hmm need to add more logging…

Pin13 was always a chump

I always had bad feelings about this particular pin13 on this board. I could tell he was going to be trouble maker. Well, its his loss, he could be triggering a ping or enabling a motor, but HA! You ain’t doin’ any of that now, are ya, pin13? 

As of now, there is no pin13…   He is dead to me.

Post a picture !

Post a picture !

Fixed …data sent to the

Fixed …

  • data sent to the console during upload
  • board, pins, & oscope changes when switching to Mega boards
  • auto-update fixed up
  • "no worky" - button as suggested by TinHead works 

So, theoretically if you got a new enough version you can simply press :

Help -> About -> I feel lucky, give me the bleeding edge !   - to get updates

Thanks.

Here’s a 2560 Mega … I

mega1.png

Here's a 2560 Mega ...  I had to "zap" the pde in from the Arduino IDE...  this is after fighting Window 7 64bit with drivers for an hour Grrr...  Found some more parts to fix (of course), but it is possible !

So everything can be

So everything can be controlled by Python script…   It’s the glue between the services…

If you got your Arduino working previously throught the gui, you “should” be able to use this script & simply copy/paste it to the jython tab - then hit the 

execute.png

 execute button…

You’ll probably have to adjust the COM setting appropriately, but it "should’ start an Arduino - and add a digital & analog trace…
Initial startup is slow - but that’s because of a delay in the RXTXComm package - the Arduino IDE has this same delay starting on windows 7 64 bit… 

from time import sleep

from org.myrobotlab.service import Arduino

 

arduino = runtime.createAndStart(‘arduino’,‘Arduino’)

 

# set and open the serial device 

# arduino.setSerialDevice(’/dev/ttyUSB0’, 57600, 8, 1, 0)

arduino.setSerialDevice(‘COM6’, 57600, 8, 1, 0)

sleep(4)

arduino.pinMode(14, Arduino.INPUT)

# arduino.digitalReadPollingStop(7)

arduino.analogReadPollingStart(14) # A0

arduino.digitalReadPollingStart(7)

 

copy/paste/click

mrl1.png

wait & view