Re: [IAEP] [Grassroots-l] send in a poster

2012-10-04 Thread Sameer Verma
We have 5 submissions. Send yours in soon!

cheers,
Sameer

On Wed, Oct 3, 2012 at 11:53 PM, Rabi Karmacharya r...@olenepal.org wrote:
 Sameer.

 According to the announcement, the first 10 submissions will be printed and
 displayed. Can you let us know many you have received till now? We would
 like to submit one from Nepal, but it will take a few days for us to discuss
 and design the poster. If you are close to hitting your target, then we will
 have to plan accordingly.

 Cheers.

 Rabi Karmacharya
 Executive Director
 OLE Nepal
 T: +977.1.551
 C: 98511.04280
 S: rabzkarma
 http://www.olenepal.org

 * Visit our Digital Library at http://www.pustakalaya.org *



 On Thu, Oct 4, 2012 at 1:02 AM, Sameer Verma sve...@sfsu.edu wrote:

 Do you run a OLPC [related] project, but can't make it to the OLPC SF
 Community Summit this year? Submit a poster!
 http://www.olpcsf.org/CommunitySummit2012/posters

 cheers,
 Sameer
 --
 Sameer Verma, Ph.D.
 Professor, Information Systems
 San Francisco State University
 http://verma.sfsu.edu/
 http://commons.sfsu.edu/
 http://olpcsf.org/
 http://olpcjamaica.org.jm/
 ___
 Grassroots mailing list
 grassro...@lists.laptop.org
 http://lists.laptop.org/listinfo/grassroots


___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep


Re: [IAEP] [Sur] TI MSP430 running on XO 1 - Robotics!

2012-10-04 Thread Dr. Gerald Ardito
Tony,

I have been using the Energia IDE on my MacBook Pro for the Launchpad.
As I understand it, it is an Arduino variant, free and open source:
http://energia.nu/
I am not sure if it will run on the XO, but it is an option as I see it.

I look forward to hearing about your progress. I will share whatever I
learn as well.

Thanks.
Gerald

On Wed, Oct 3, 2012 at 11:25 PM,  fors...@ozonline.com.au wrote:
 Gerald

 Thanks for the update.

 I just this link to a project using the TI Launchpad as a robot brain:
 http://e2e.ti.com/group/microcontrollerprojects/m/msp430microcontrollerprojects/496334.aspx

 I am going to give it a try.

 I have just got my MSP430 launchpad and am planning the next step.

 http://www.ti.com/ww/en/launchpad/msp430_head.html
 It seems that there are 2 development IDE's: CCS and IAR
 Neither are open source but they are free when used with a 16kB code 
 limitation.

 MSPGCC is open source but only works from the command line, no graphic IDE. 
 Yamaplos documents the command line mspdebug at 
 http://processors.wiki.ti.com/index.php/OLPC_XO-1 (I do not know if mspdebug 
 and MSPGCC are related)

 Currently Arduino, PIC, and LegoWeDo are being used with the OLPC XO with the 
 programming being done on the XO, either in TurtleArt or Scratch. The 
 electronics of the robotics kits are being used as I/O expanders. The 
 students are not programming the processors on the robotics kits. (I am not 
 sure what LegoNXT is doing).

 The Arduino is running Firmata software firmata.org/wiki/Protocol which turns 
 it into a dumb slave, I think the Butia team are using similar (but 
 different) software on their Arduino or PIC.

 Maybe the most productive approach is to find or write for the MSP430 a 
 Firmata emulator, then the MSP430 can be used as a replacement for the 
 Arduino, under control of TurtleArt (and maybe Scratch).

 The benefit is that the MSP430 is currently 1/10 the price of an Arduino. I 
 am concerned that this subsidised price may not continue indefinitely or that 
 schools may not be able to buy them in quantity though.

 I will look at MSP430 Firmata. So far I have installed the CCS IDE for 
 Windows (it looked easier than Linux). I will let you know my progress

 Tony


___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep


[IAEP] Turtle Blocks question

2012-10-04 Thread Dr. Gerald Ardito
Hello.

I have been playing with the Turtle Blocks plugins for Follow Me, We
Do Robots, Lego Mindstorms, and Arduino. They installed perfectly in
Turtle Blocks (as expected).

I have two questions:
1. I will need to install Turtle Blocks and these plugins on 25-50
XO-1s. Do I have to do the plugins one by one on each machine?
2. How do I go about requesting plug in(s) for the TI Launchpad?

Thanks.
Gerald
___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep


Re: [IAEP] Turtle Blocks question

2012-10-04 Thread Walter Bender
On Thu, Oct 4, 2012 at 10:43 PM, Dr. Gerald Ardito
gerald.ard...@gmail.com wrote:
 Hello.

 I have been playing with the Turtle Blocks plugins for Follow Me, We
 Do Robots, Lego Mindstorms, and Arduino. They installed perfectly in
 Turtle Blocks (as expected).

 I have two questions:
 1. I will need to install Turtle Blocks and these plugins on 25-50
 XO-1s. Do I have to do the plugins one by one on each machine?

TurtleBot comes with all of the above plugins pre-installed.
It is also possible to create a special spin of Turtle Art with just
the plugins you want (several deployments do this and I could walk you
through the process)

 2. How do I go about requesting plug in(s) for the TI Launchpad?

I need to know more about how to talk to the TI Launchpad and what
sorts of interactions between it and TA you are looking for.

-walter

 Thanks.
 Gerald
 ___
 IAEP -- It's An Education Project (not a laptop project!)
 IAEP@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/iaep



-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep


Re: [IAEP] Turtle Blocks question

2012-10-04 Thread Dr. Gerald Ardito
Walter,

Thanks for the amazingly quick response.
I see TurtleBot. I would like to learn how to create my own spin, so please
do walk me through it.
I will work more with the Launchpad. So far, it seems very much like the
Arduino. Once I know more, I will start to talk to you about requirements
for the plugin.
Thanks.
Gerald

On Thu, Oct 4, 2012 at 10:46 PM, Walter Bender walter.ben...@gmail.comwrote:

 On Thu, Oct 4, 2012 at 10:43 PM, Dr. Gerald Ardito
 gerald.ard...@gmail.com wrote:
  Hello.
 
  I have been playing with the Turtle Blocks plugins for Follow Me, We
  Do Robots, Lego Mindstorms, and Arduino. They installed perfectly in
  Turtle Blocks (as expected).
 
  I have two questions:
  1. I will need to install Turtle Blocks and these plugins on 25-50
  XO-1s. Do I have to do the plugins one by one on each machine?

 TurtleBot comes with all of the above plugins pre-installed.
 It is also possible to create a special spin of Turtle Art with just
 the plugins you want (several deployments do this and I could walk you
 through the process)

  2. How do I go about requesting plug in(s) for the TI Launchpad?

 I need to know more about how to talk to the TI Launchpad and what
 sorts of interactions between it and TA you are looking for.

 -walter
 
  Thanks.
  Gerald
  ___
  IAEP -- It's An Education Project (not a laptop project!)
  IAEP@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/iaep



 --
 Walter Bender
 Sugar Labs
 http://www.sugarlabs.org

___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep

[IAEP] Arduino and XO-1

2012-10-04 Thread Dr. Gerald Ardito
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@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep

Re: [IAEP] Turtle Blocks question

2012-10-04 Thread Walter Bender
On Thu, Oct 4, 2012 at 10:55 PM, Dr. Gerald Ardito
gerald.ard...@gmail.com wrote:
 Walter,

 Thanks for the amazingly quick response.
 I see TurtleBot. I would like to learn how to create my own spin, so please
 do walk me through it.

The easiest thing to do is to:
(1) clone the TA project*
(2) load the plugins you are interested in
(3) run setup.py dist_xo to generate a new .xo bundle

* git clone git://git.sugarlabs.org/turtleart/mainline.git

It may be useful to change the version number, for example, 160.1
instead of 160 in activity/activity.info

 I will work more with the Launchpad. So far, it seems very much like the
 Arduino. Once I know more, I will start to talk to you about requirements
 for the plugin.

OK. No hurry as I have my hands full at the moment.

 Thanks.
 Gerald


 On Thu, Oct 4, 2012 at 10:46 PM, Walter Bender walter.ben...@gmail.com
 wrote:

 On Thu, Oct 4, 2012 at 10:43 PM, Dr. Gerald Ardito
 gerald.ard...@gmail.com wrote:
  Hello.
 
  I have been playing with the Turtle Blocks plugins for Follow Me, We
  Do Robots, Lego Mindstorms, and Arduino. They installed perfectly in
  Turtle Blocks (as expected).
 
  I have two questions:
  1. I will need to install Turtle Blocks and these plugins on 25-50
  XO-1s. Do I have to do the plugins one by one on each machine?

 TurtleBot comes with all of the above plugins pre-installed.
 It is also possible to create a special spin of Turtle Art with just
 the plugins you want (several deployments do this and I could walk you
 through the process)

  2. How do I go about requesting plug in(s) for the TI Launchpad?

 I need to know more about how to talk to the TI Launchpad and what
 sorts of interactions between it and TA you are looking for.

 -walter
 
  Thanks.
  Gerald
  ___
  IAEP -- It's An Education Project (not a laptop project!)
  IAEP@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/iaep



 --
 Walter Bender
 Sugar Labs
 http://www.sugarlabs.org





-- 
Walter Bender
Sugar Labs
http://www.sugarlabs.org
___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep


Re: [IAEP] Arduino and XO-1

2012-10-04 Thread Alan Jhonn Aguiar Schwyn
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.ard...@gmail.com
Date: Thu, 4 Oct 2012 23:09:03 -0400
To: fors...@ozonline.com.au; support-g...@laptop.org; iaep@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@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep
  ___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread Dr. Gerald Ardito
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 
alan...@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.ard...@gmail.com
 Date: Thu, 4 Oct 2012 23:09:03 -0400
 To: fors...@ozonline.com.au; support-g...@laptop.org;
 iaep@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@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/iaep

 ___
 IAEP -- It's An Education Project (not a laptop project!)
 IAEP@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/iaep

___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread Alan Jhonn Aguiar Schwyn
Replace this file in TurtleArt.activity/plugins/arduino/
This file not have any calidation, if something is wrong, in the log will 
appears that.

From: gerald.ard...@gmail.com
Date: Thu, 4 Oct 2012 23:36:29 -0400
Subject: Re: [IAEP] Arduino and XO-1
To: alan...@hotmail.com
CC: fors...@ozonline.com.au; support-g...@laptop.org; iaep@lists.sugarlabs.org

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 alan...@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.ard...@gmail.com


Date: Thu, 4 Oct 2012 23:09:03 -0400
To: fors...@ozonline.com.au; support-g...@laptop.org; iaep@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@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep
  

___

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

IAEP@lists.sugarlabs.org

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

  #!/usr/bin/env python
# Copyright (c) 2012, Alan Aguiar alan...@hotmail.com
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA

import os
from time import time

from gettext import gettext as _
from plugins.plugin import Plugin

from TurtleArt.tapalette import make_palette
from TurtleArt.talogo import media_blocks_dictionary, primitive_dictionary, logoerror

import firmata
import commands

VALUE = {_('HIGH'): firmata.HIGH, _('LOW'): firmata.LOW}
MODE = {_('INPUT'): firmata.INPUT, _('OUTPUT'): firmata.OUTPUT,
_('PWM'): firmata.PWM, _('SERVO'): firmata.SERVO}

ERROR = _('ERROR: Check the Arduino and the number of port.')
ERROR_VALUE_A = _('ERROR: Value must be a number from 0 to 255.')
ERROR_VALUE_D = _('ERROR: Value must be either HIGH or LOW.')
ERROR_MODE = _('ERROR: The mode must be either INPUT, OUTPUT, PWM or SERVO.')


class Arduino(Plugin):

def __init__(self, parent):
self.tw = parent

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


def setup(self):
self._arduino = firmata.Arduino(port = self._dev, baudrate = self._baud)

palette = make_palette('arduino', [#00,#00A0A0], _('Palette of Arduino blocks'))

primitive_dictionary['pinmode'] = self._prim_pin_mode
palette.add_block('pinmode',
  style='basic-style-2arg',
  label=[_('pin mode'),_('pin'),_('mode')],
  help_string=_('Select the pin function (INPUT, OUTPUT, PWM, SERVO).'),
  prim_name='pinmode')
self.tw.lc.def_prim('pinmode', 2,
lambda self, x, y:
primitive_dictionary['pinmode'](x, y))

primitive_dictionary['analogwrite'] = self._prim_analog_write
palette.add_block('analogwrite',
  

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread Dr. Gerald Ardito
Alan,

Thanks. I'll try it out.

Gerald

On Thu, Oct 4, 2012 at 11:51 PM, Alan Jhonn Aguiar Schwyn 
alan...@hotmail.com wrote:

 Replace this file in TurtleArt.activity/plugins/arduino/

 This file not have any calidation, if something is wrong, in the log will
 appears that.

 --
 From: gerald.ard...@gmail.com
 Date: Thu, 4 Oct 2012 23:36:29 -0400
 Subject: Re: [IAEP] Arduino and XO-1
 To: alan...@hotmail.com
 CC: fors...@ozonline.com.au; support-g...@laptop.org;
 iaep@lists.sugarlabs.org


 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 
 alan...@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.ard...@gmail.com
 Date: Thu, 4 Oct 2012 23:09:03 -0400
 To: fors...@ozonline.com.au; support-g...@laptop.org;
 iaep@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@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/iaep

 ___
 IAEP -- It's An Education Project (not a laptop project!)
 IAEP@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/iaep



 ___
 IAEP -- It's An Education Project (not a laptop project!)
 IAEP@lists.sugarlabs.org
 http://lists.sugarlabs.org/listinfo/iaep

___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread forster
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 
 alan...@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.ard...@gmail.com
  Date: Thu, 4 Oct 2012 23:09:03 -0400
  To: fors...@ozonline.com.au; support-g...@laptop.org;
  iaep@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@lists.sugarlabs.org
  http://lists.sugarlabs.org/listinfo/iaep
 
  ___
  IAEP -- It's An Education Project (not a laptop project!)
  IAEP@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,divbr/divdivI have uploaded the newest version of Firmata to the 
 Arduino board, and still get the first error in your list./divdivAny 
 thoughts about what I should do next?brbrThanks.brGeraldbrbrdiv 
 class=gmail_quote
 
 On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn span dir=ltra 
 href=mailto:alan...@hotmail.com; 
 target=_blankalan...@hotmail.com/a/span wrote:brblockquote 
 class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc 
 solid;padding-left:1ex
 
 
 
 
 divdiv dir=ltrHi,divbr/divdivThe Arduino plugin have some 
 checks. This checks are:/divdivbr/divdivdiv'ERROR: Check the 
 Arduino and the number of port.'/divdiv'ERROR: Value must be a number 
 from 0 to 255.'/div
 
 div'ERROR: Value must be either HIGH or LOW.'/divdiv'ERROR: The mode 
 must be either INPUT, OUTPUT, PWM or SERVO.'/divdivbr/divdivThe 
 Arduino board needs have the Firmata firmware [1]./div
 
 divbr/divdivThe checks are catched with try/excepts that not allows 
 see what is wrong./divdivI can make a version without it to 
 test../divdivbr/divdivRegards!/divdivbr/divdivAlan/divdiv
 
 br/divdiv[1]�a href=http://firmata.org/wiki/Download; 
 style=font-size:12pt 
 target=_blankhttp://firmata.org/wiki/Download/a/divbrdivdiv/divhrFrom:
  a href=mailto:gerald.ard...@gmail.com; 
 target=_blankgerald.ard...@gmail.com/abr
 
 Date: Thu, 4 Oct 2012 23:09:03 -0400brTo: a 
 href=mailto:fors...@ozonline.com.au; 
 target=_blankfors...@ozonline.com.au/a; a 
 href=mailto:support-g...@laptop.org; 
 target=_blanksupport-g...@laptop.org/a; a 
 href=mailto:iaep@lists.sugarlabs.org; 
 target=_blankiaep@lists.sugarlabs.org/abr
 
 Subject: [IAEP] Arduino and XO-1divdiv 
 class=h5brbrTony,divbr/divdivI have been trying to get the 
 Arduino to work with the XO-1 laptops./divdiv(Thanks to your great blog 
 posts) I have successfully installed the Arduino IDE on the laptop, and it 
 works great./div
 
 
 
 divTonight, 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
 
 
 
 brHow do I do this with TurtleArt/outside the IDE?brbrThanks so 
 much.br/divdivGerald/div
 br/div/div___
 IAEP -- It's An Education Project (not a laptop project!)
 a href=mailto:IAEP@lists.sugarlabs.org; 
 target=_blankIAEP@lists.sugarlabs.org/a
 a href=http://lists.sugarlabs.org/listinfo/iaep; 
 target=_blankhttp://lists.sugarlabs.org/listinfo/iaep/a/div/div  

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread Dr. Gerald Ardito
Tony,

Thanks.  I'll check it out.

Gerald

On Fri, Oct 5, 2012 at 12:09 AM, fors...@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 
  alan...@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.ard...@gmail.com
   Date: Thu, 4 Oct 2012 23:09:03 -0400
   To: fors...@ozonline.com.au; support-g...@laptop.org;
   iaep@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@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/iaep
  
   ___
   IAEP -- It's An Education Project (not a laptop project!)
   IAEP@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,divbr/divdivI have uploaded the newest version of Firmata
 to the Arduino board, and still get the first error in your
 list./divdivAny thoughts about what I should do
 next?brbrThanks.brGeraldbrbrdiv class=gmail_quote
 
  On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn span
 dir=ltra href=mailto:alan...@hotmail.com; target=_blank
 alan...@hotmail.com/a/span wrote:brblockquote class=gmail_quote
 style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex
 
 
 
 
  divdiv dir=ltrHi,divbr/divdivThe Arduino plugin have some
 checks. This checks are:/divdivbr/divdivdiv'ERROR: Check the
 Arduino and the number of port.'/divdiv'ERROR: Value must be a number
 from 0 to 255.'/div
 
  div'ERROR: Value must be either HIGH or LOW.'/divdiv'ERROR: The
 mode must be either INPUT, OUTPUT, PWM or
 SERVO.'/divdivbr/divdivThe Arduino board needs have the Firmata
 firmware [1]./div
 
  divbr/divdivThe checks are catched with try/excepts that not
 allows see what is wrong./divdivI can make a version without it to
 test../divdivbr/divdivRegards!/divdivbr/divdivAlan/divdiv
 
  br/divdiv[1]�a href=http://firmata.org/wiki/Download;
 style=font-size:12pt 
 target=_blankhttp://firmata.org/wiki/Download/a/divbrdivdiv/divhrFrom:
 a href=mailto:gerald.ard...@gmail.com; target=_blank
 gerald.ard...@gmail.com/abr
 
  Date: Thu, 4 Oct 2012 23:09:03 -0400brTo: a href=mailto:
 fors...@ozonline.com.au target=_blankfors...@ozonline.com.au/a; a
 href=mailto:support-g...@laptop.org; target=_blank
 support-g...@laptop.org/a; a href=mailto:iaep@lists.sugarlabs.org;
 target=_blankiaep@lists.sugarlabs.org/abr
 
  Subject: [IAEP] Arduino and XO-1divdiv
 class=h5brbrTony,divbr/divdivI have been trying to get the
 Arduino to work with the XO-1 laptops./divdiv(Thanks to your great blog
 posts) I have successfully installed the Arduino IDE on the laptop, and it
 works great./div
 
 
 
  divTonight, 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
 
 
 
  brHow do I do this with TurtleArt/outside the IDE?brbrThanks so
 much.br/divdivGerald/div
  br/div/div___
  IAEP -- It's An Education Project (not a laptop project!)
  a href=mailto:IAEP@lists.sugarlabs.org; 

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread Alan Jhonn Aguiar Schwyn
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.ard...@gmail.com
Date: Fri, 5 Oct 2012 00:14:08 -0400
Subject: Re: Re: [IAEP] Arduino and XO-1
To: fors...@ozonline.com.au
CC: alan...@hotmail.com; iaep@lists.sugarlabs.org

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

On Fri, Oct 5, 2012 at 12:09 AM,  fors...@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 

 alan...@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.ard...@gmail.com

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

  To: fors...@ozonline.com.au; support-g...@laptop.org;

  iaep@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@lists.sugarlabs.org

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

 

  ___

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

  IAEP@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,divbr/divdivI have uploaded the newest version of Firmata to the 
 Arduino board, and still get the first error in your list./divdivAny 
 thoughts about what I should do next?brbrThanks.brGeraldbrbrdiv 
 class=gmail_quote





 On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn span dir=ltra 
 href=mailto:alan...@hotmail.com; 
 target=_blankalan...@hotmail.com/a/span wrote:brblockquote 
 class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc 
 solid;padding-left:1ex











 divdiv dir=ltrHi,divbr/divdivThe Arduino plugin have some 
 checks. This checks are:/divdivbr/divdivdiv'ERROR: Check the 
 Arduino and the number of port.'/divdiv'ERROR: Value must be a number 
 from 0 to 255.'/div





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





 divbr/divdivThe checks are catched with try/excepts that not allows 
 see what is wrong./divdivI can make a version without it to 
 test../divdivbr/divdivRegards!/divdivbr/divdivAlan/divdiv





 br/divdiv[1]�a href=http://firmata.org/wiki/Download; 
 style=font-size:12pt 
 

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread Dr. Gerald Ardito
When I do the grep, I get nothing returned.
When I go into the /dev directory, there is nothing ttyUSBn.

What do I do now?
Gerald

On Fri, Oct 5, 2012 at 12:21 AM, Alan Jhonn Aguiar Schwyn 
alan...@hotmail.com wrote:

 If he have the latest version, the plugin makes a list of the ttyUSB
 availables and
 try 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.ard...@gmail.com
 Date: Fri, 5 Oct 2012 00:14:08 -0400
 Subject: Re: Re: [IAEP] Arduino and XO-1
 To: fors...@ozonline.com.au
 CC: alan...@hotmail.com; iaep@lists.sugarlabs.org


 Tony,

 Thanks.  I'll check it out.

 Gerald

 On Fri, Oct 5, 2012 at 12:09 AM, fors...@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 
  alan...@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.ard...@gmail.com
   Date: Thu, 4 Oct 2012 23:09:03 -0400
   To: fors...@ozonline.com.au; support-g...@laptop.org;
   iaep@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@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/iaep
  
   ___
   IAEP -- It's An Education Project (not a laptop project!)
   IAEP@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,divbr/divdivI have uploaded the newest version of Firmata
 to the Arduino board, and still get the first error in your
 list./divdivAny thoughts about what I should do
 next?brbrThanks.brGeraldbrbrdiv class=gmail_quote
 
  On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn span
 dir=ltra href=mailto:alan...@hotmail.com; target=_blank
 alan...@hotmail.com/a/span wrote:brblockquote class=gmail_quote
 style=margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex
 
 
 
 
  divdiv dir=ltrHi,divbr/divdivThe Arduino plugin have some
 checks. This checks are:/divdivbr/divdivdiv'ERROR: Check the
 Arduino and the number of port.'/divdiv'ERROR: Value must be a number
 from 0 to 255.'/div
 
  div'ERROR: Value must be either HIGH or LOW.'/divdiv'ERROR: The
 mode must be either INPUT, OUTPUT, PWM or
 SERVO.'/divdivbr/divdivThe Arduino board needs have the Firmata
 firmware [1]./div
 
  divbr/divdivThe checks are catched with try/excepts that not
 allows see what is 

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread Dr. Gerald Ardito
Alan,

When I plug and unplug the board, I noticed changes to the list of stuff in
/dev.
When the Arduino is plugged in, I see /dev/ttyACHO (or ttyACMO). Does this
make sense?

Thanks.
Gerald

On Fri, Oct 5, 2012 at 12:42 AM, Dr. Gerald Ardito
gerald.ard...@gmail.comwrote:

 When I do the grep, I get nothing returned.
 When I go into the /dev directory, there is nothing ttyUSBn.

 What do I do now?
 Gerald


 On Fri, Oct 5, 2012 at 12:21 AM, Alan Jhonn Aguiar Schwyn 
 alan...@hotmail.com wrote:

 If he have the latest version, the plugin makes a list of the ttyUSB
 availables and
 try 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.ard...@gmail.com
 Date: Fri, 5 Oct 2012 00:14:08 -0400
 Subject: Re: Re: [IAEP] Arduino and XO-1
 To: fors...@ozonline.com.au
 CC: alan...@hotmail.com; iaep@lists.sugarlabs.org


 Tony,

 Thanks.  I'll check it out.

 Gerald

 On Fri, Oct 5, 2012 at 12:09 AM, fors...@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 
  alan...@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.ard...@gmail.com
   Date: Thu, 4 Oct 2012 23:09:03 -0400
   To: fors...@ozonline.com.au; support-g...@laptop.org;
   iaep@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@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/iaep
  
   ___
   IAEP -- It's An Education Project (not a laptop project!)
   IAEP@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,divbr/divdivI have uploaded the newest version of Firmata
 to the Arduino board, and still get the first error in your
 list./divdivAny thoughts about what I should do
 next?brbrThanks.brGeraldbrbrdiv class=gmail_quote
 
  On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn span
 dir=ltra href=mailto:alan...@hotmail.com; target=_blank
 alan...@hotmail.com/a/span wrote:brblockquote
 class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc
 solid;padding-left:1ex
 
 
 
 
  divdiv dir=ltrHi,divbr/divdivThe Arduino plugin have some
 checks. This checks are:/divdivbr/divdivdiv'ERROR: Check the
 Arduino and the number of port.'/divdiv'ERROR: Value must be a number
 from 0 to 

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread Dr. Gerald Ardito
Alan,

Upon doing some research, apparently /dev/ttyACM0 is  the identifier for
the board.

Do I have to modify the plugin? If so, how do I do this?

Thanks.
Gerald

On Fri, Oct 5, 2012 at 12:42 AM, Dr. Gerald Ardito
gerald.ard...@gmail.comwrote:

 When I do the grep, I get nothing returned.
 When I go into the /dev directory, there is nothing ttyUSBn.

 What do I do now?
 Gerald


 On Fri, Oct 5, 2012 at 12:21 AM, Alan Jhonn Aguiar Schwyn 
 alan...@hotmail.com wrote:

 If he have the latest version, the plugin makes a list of the ttyUSB
 availables and
 try 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.ard...@gmail.com
 Date: Fri, 5 Oct 2012 00:14:08 -0400
 Subject: Re: Re: [IAEP] Arduino and XO-1
 To: fors...@ozonline.com.au
 CC: alan...@hotmail.com; iaep@lists.sugarlabs.org


 Tony,

 Thanks.  I'll check it out.

 Gerald

 On Fri, Oct 5, 2012 at 12:09 AM, fors...@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 
  alan...@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.ard...@gmail.com
   Date: Thu, 4 Oct 2012 23:09:03 -0400
   To: fors...@ozonline.com.au; support-g...@laptop.org;
   iaep@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@lists.sugarlabs.org
   http://lists.sugarlabs.org/listinfo/iaep
  
   ___
   IAEP -- It's An Education Project (not a laptop project!)
   IAEP@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,divbr/divdivI have uploaded the newest version of Firmata
 to the Arduino board, and still get the first error in your
 list./divdivAny thoughts about what I should do
 next?brbrThanks.brGeraldbrbrdiv class=gmail_quote
 
  On Thu, Oct 4, 2012 at 11:22 PM, Alan Jhonn Aguiar Schwyn span
 dir=ltra href=mailto:alan...@hotmail.com; target=_blank
 alan...@hotmail.com/a/span wrote:brblockquote
 class=gmail_quote style=margin:0 0 0 .8ex;border-left:1px #ccc
 solid;padding-left:1ex
 
 
 
 
  divdiv dir=ltrHi,divbr/divdivThe Arduino plugin have some
 checks. This checks are:/divdivbr/divdivdiv'ERROR: Check the
 Arduino and the number of port.'/divdiv'ERROR: Value must be a number
 from 0 to 255.'/div
 
  div'ERROR: Value must 

Re: [IAEP] Arduino and XO-1

2012-10-04 Thread forster
 When I do the grep, I get nothing returned.
 When I go into the /dev directory, there is nothing ttyUSBn.
 
 What do I do now?
 Gerald

Hi
Just tried a Arduino Duomillenove on 2 XO-1.5, one running os373pyg Sugar 0.88, 
the other os883 Sugar 0.94

first dir /dev, get a long list of devices including many tty devices, then 
plug in the Arduino
dir /dev again and an extra device ttyUSB0 is appended to the end of the tty 
devices

Hope that helps.

Tony
___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep


Re: [IAEP] Arduino and XO-1

2012-10-04 Thread forster
 Alan,
 
 Upon doing some research, apparently /dev/ttyACM0 is  the identifier for
 the board.
 
 Do I have to modify the plugin? If so, how do I do this?

in my blogpost i give a link to a dirty hacked version for ttyACM0

This version http://www.box.com/shared/bsf8tmj6al is hard coded to dev/ttyACM0, 
that means it only works the first time the Leostick is plugged in and not at 
all for older Arduino boards. It is patched and works on Sugar 0.94.

I cant remember where or what I patched exactly but somewhere in the plugin 
code it looks for ttyUSBn, n=1,2,3 . and I hacked that

It would be good if a more competent programmer than me had it search the 
ttyUSBn and ttyACMn

Tony
___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep


Re: [IAEP] [support-gang] Turtle Blocks question

2012-10-04 Thread Kevin Mark


--- On Thu, 10/4/12, Walter Bender walter.ben...@gmail.com wrote:

From: Walter Bender walter.ben...@gmail.com
Subject: Re: [support-gang] [IAEP] Turtle Blocks question
To: Dr. Gerald Ardito gerald.ard...@gmail.com
Cc: iaep iaep@lists.sugarlabs.org, support-gang support-g...@laptop.org
Date: Thursday, October 4, 2012, 10:46 PM

On Thu, Oct 4, 2012 at 10:43 PM, Dr. Gerald Ardito
gerald.ard...@gmail.com wrote:
 Hello.

 I have been playing with the Turtle Blocks plugins for Follow Me, We
 Do Robots, Lego Mindstorms, and Arduino. They installed perfectly in
 Turtle Blocks (as expected).

 I have two questions:
 1. I will need to install Turtle Blocks and these plugins on 25-50
 XO-1s. Do I have to do the plugins one by one on each machine?

TurtleBot comes with all of the above plugins pre-installed.
It is also possible to create a special spin of Turtle Art with just
the plugins you want (several deployments do this and I could walk you
through the process)

 2. How do I go about requesting plug in(s) for the TI Launchpad?

I need to know more about how to talk to the TI Launchpad and what
sorts of interactions between it and TA you are looking for.

I have a TI Launch pad. Its a microcontroller board with 2 sample MSP430 
microcontrollers. This is different than the Atmel microcontrollers that 
Arudino uses. Someone is working on a fork of Aurdino software called Energia. 
I guess you need the MSP430 tool chain to support the launch pad as you would 
need the atmel tool chain for the Arduino environment. -Kev___
IAEP -- It's An Education Project (not a laptop project!)
IAEP@lists.sugarlabs.org
http://lists.sugarlabs.org/listinfo/iaep