tvalentius / as3glue

Automatically exported from code.google.com/p/as3glue
0 stars 0 forks source link

analog inputs or digital inputs don't work now and then #6

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I've programmed a monitor application to set and read inputs - outputs on
the Arduion. Sometimes when I start up the application I cannot
getDigitalData from the inputs. 

This happens more often when a have made an input high ( with a button )
and then startup the Flash application ( and thus reset Firmata with Glue ). 

I added a reset button to do a 'a.requestFirmwareVersion()'. I tried 
resetBoard() before but that doesn't seem to do anything. 

Resetting in that way sometimes solves the issue. However if I do it a few
times, the analog inputs are not sensed anymore ( amount of reset times is
not solid, sometimes after 3 times, sometimes 30 ).  
But I can keep reading the digital inputs. 

I don't get any errors. 

I've included my files. Maybe someone can see directly what goes wrong. 

I use standard firmata version 2.

Original issue reported on code.google.com by kasperka...@gmail.com on 11 Sep 2009 at 8:30

Attachments:

GoogleCodeExporter commented 9 years ago
considering the part below ( from the issue ) :
[
Resetting in that way sometimes solves the issue. However if I do it a few
times, the analog inputs are not sensed anymore ( amount of reset times is
not solid, sometimes after 3 times, sometimes 30 ).  
But I can keep reading the digital input
]

Resetting the board physically ( thus by pressing the reset button on the board 
),
solves the analog inputs that are not being sensed. However, I would like to do 
it
with actionscript code. 

Original comment by kasperka...@gmail.com on 13 Sep 2009 at 8:42

GoogleCodeExporter commented 9 years ago
Ok, problem seems solved. 
I connected the Arduino through an USB hub. That made it a bit instable I 
think. Now
it works fine. 

Only one question left : 
The arduino.resetBoard() function doesn't seem to do anything. 
The command is received, but the board keeps running the same. 

Original comment by kasperka...@gmail.com on 17 Sep 2009 at 1:27