Re: [IAEP] Arduino and XO-1
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
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
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', style='basic-style-2arg
Re: [IAEP] Arduino and XO-1
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
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
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
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 target=_blankhttp://firmata.org/wiki/Download
Re: [IAEP] Arduino and XO-1
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
Re: [IAEP] Arduino and XO-1
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 255
Re: [IAEP] Arduino and XO-1
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
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
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