[IAEP] Arduino and XO-1

Alan Jhonn Aguiar Schwyn alanjas at hotmail.com
Fri Oct 5 00:21:58 EDT 2012


If he have the latest version, the plugin makes a list of the ttyUSB availables andtry get the first that works.
The header of the Arduino Plugin says:
        self._dev = '/dev/ttyUSB0'        self._baud = 57600        self._arduino = None
        status,output = commands.getstatusoutput("ls /dev/ | grep ttyUSB")        output = output.split('\n')        for i in output:	        status,aux=commands.getstatusoutput("udevinfo -a -p /class/tty/%s | grep ftdi_sio > /dev/null" % i)	        if (not status):		        self._dev='/dev/%s' % i		        break
I'm not sure if the "udevinfo" commands exist in the XO.In my Ubuntu 12.10 I not have it, only the "udevadm"
Which sugar version you have?
In the Terminal Activity:
check for the N of the arduino:
ls /dev/ | grep ttyUSB
After, check if exist the udevinfo:
See the n, and replace the * in this line:
udevinfo -a -p /class/ttyUSB* | grep ftdi_sio

From: gerald.ardito at gmail.com
Date: Fri, 5 Oct 2012 00:14:08 -0400
Subject: Re: Re: [IAEP] Arduino and XO-1
To: forster at ozonline.com.au
CC: alanjas at hotmail.com; iaep at lists.sugarlabs.org

Tony,
Thanks.  I'll check it out.
Gerald

On Fri, Oct 5, 2012 at 12:09 AM,  <forster at ozonline.com.au> wrote:


Gerald



Maybe the baud rate or the device name do not match.



Somewhere in the Arduino plugin code it searches for ttyusbn where n=1,2,3 ...



Your Arduino board could be ttyusbn or ttyacmn where n increments each time you replug the Arduino. Somewhere, I think /dev , you can see what your Arduino is.



Somewhere in the Firmata listing the baud rate is set, check its the same in the plugin code.



Tony



> Alan,

>

> I have uploaded the newest version of Firmata to the Arduino board, and

> still get the first error in your list.

> Any thoughts about what I should do next?

>

> Thanks.

> Gerald

>

> On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn <

> alanjas at hotmail.com> wrote:

>

> > Hi,

> >

> > The Arduino plugin have some checks. This checks are:

> >

> > 'ERROR: Check the Arduino and the number of port.'

> > 'ERROR: Value must be a number from 0 to 255.'

> > 'ERROR: Value must be either HIGH or LOW.'

> > 'ERROR: The mode must be either INPUT, OUTPUT, PWM or SERVO.'

> >

> > The Arduino board needs have the Firmata firmware [1].

> >

> > The checks are catched with try/excepts that not allows see what is wrong.

> > I can make a version without it to test..

> >

> > Regards!

> >

> > Alan

> >

> > [1] http://firmata.org/wiki/Download

> >

> > ------------------------------

> > From: gerald.ardito at gmail.com

> > Date: Thu, 4 Oct 2012 23:09:03 -0400

> > To: forster at ozonline.com.au; support-gang at laptop.org;

> > iaep at lists.sugarlabs.org

> > Subject: [IAEP] Arduino and XO-1

> >

> >

> > Tony,

> >

> > I have been trying to get the Arduino to work with the XO-1 laptops.

> > (Thanks to your great blog posts) I have successfully installed the

> > Arduino IDE on the laptop, and it works great.

> > Tonight, I installed the Arduino plugin for Turtle Art and (once again

> > using your blog posts), created my first project. When I click "Start," I

> > get an error: "Check the Arduino and the number of port."

> >

> > How do I do this with TurtleArt/outside the IDE?

> >

> > Thanks so much.

> > Gerald

> >

> > _______________________________________________ IAEP -- It's An Education

> > Project (not a laptop project!) IAEP at lists.sugarlabs.org

> > http://lists.sugarlabs.org/listinfo/iaep

> >

> > _______________________________________________

> > IAEP -- It's An Education Project (not a laptop project!)

> > IAEP at lists.sugarlabs.org

> > http://lists.sugarlabs.org/listinfo/iaep

> >

>

> _____________________________________________________

> This mail has been virus scanned by Australia On Line

> see http://www.australiaonline.net.au/mailscanning

> Alan,<div><br></div><div>I have uploaded the newest version of Firmata to the Arduino board, and still get the first error in your list.</div><div>Any thoughts about what I should do next?<br><br>Thanks.<br>Gerald<br><br><div class="gmail_quote">



>

> On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn <span dir="ltr"><<a href="mailto:alanjas at hotmail.com" target="_blank">alanjas at hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



>

>

>

>

> <div><div dir="ltr">Hi,<div><br></div><div>The Arduino plugin have some checks. This checks are:</div><div><br></div><div><div>'ERROR: Check the Arduino and the number of port.'</div><div>'ERROR: Value must be a number from 0 to 255.'</div>



>

> <div>'ERROR: Value must be either HIGH or LOW.'</div><div>'ERROR: The mode must be either INPUT, OUTPUT, PWM or SERVO.'</div><div><br></div><div>The Arduino board needs have the Firmata firmware [1].</div>



>

> <div><br></div><div>The checks are catched with try/excepts that not allows see what is wrong.</div><div>I can make a version without it to test..</div><div><br></div><div>Regards!</div><div><br></div><div>Alan</div><div>



>

> <br></div><div>[1]�<a href="http://firmata.org/wiki/Download" style="font-size:12pt" target="_blank">http://firmata.org/wiki/Download</a></div><br><div><div></div><hr>From: <a href="mailto:gerald.ardito at gmail.com" target="_blank">gerald.ardito at gmail.com</a><br>



>

> Date: Thu, 4 Oct 2012 23:09:03 -0400<br>To: <a href="mailto:forster at ozonline.com.au" target="_blank">forster at ozonline.com.au</a>; <a href="mailto:support-gang at laptop.org" target="_blank">support-gang at laptop.org</a>; <a href="mailto:iaep at lists.sugarlabs.org" target="_blank">iaep at lists.sugarlabs.org</a><br>



>

> Subject: [IAEP] Arduino and XO-1<div><div class="h5"><br><br>Tony,<div><br></div><div>I have been trying to get the Arduino to work with the XO-1 laptops.</div><div>(Thanks to your great blog posts) I have successfully installed the Arduino IDE on the laptop, and it works great.</div>



>

>

>

> <div>Tonight, I installed the Arduino plugin for Turtle Art and (once again using your blog posts), created my first project. When I click "Start," I get an error: "Check the Arduino and the number of port."<br>



>

>

>

> <br>How do I do this with TurtleArt/outside the IDE?<br><br>Thanks so much.<br></div><div>Gerald</div>

> <br></div></div>_______________________________________________

> IAEP -- It's An Education Project (not a laptop project!)

> <a href="mailto:IAEP at lists.sugarlabs.org" target="_blank">IAEP at lists.sugarlabs.org</a>



> <a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a></div></div>                                     </div></div>



> <br>_______________________________________________<br>

> IAEP -- It's An Education Project (not a laptop project!)<br>

> <a href="mailto:IAEP at lists.sugarlabs.org">IAEP at lists.sugarlabs.org</a><br>

> <a href="http://lists.sugarlabs.org/listinfo/iaep" target="_blank">http://lists.sugarlabs.org/listinfo/iaep</a><br></blockquote></div><br></div>






 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/iaep/attachments/20121005/1e04d46d/attachment-0001.html>


More information about the IAEP mailing list