Show Posts
Pages: [1]
1  Forum 2005-2010 (read only) / Troubleshooting / Error inside Serial.serialEvent() on: August 07, 2008, 09:37:45 pm
Greetings All,
 
I was working on my Arduino Diecimila this evening and came across an error.  The reason why I am emailing you directly is because I did a search of the forum and found a similar error message from another user to which you started to reply.  
 
From  Arduino Forum › Software › Troubleshooting  
Error inside Serial.serialEvent()
27. Jan 2008 at 23:05  
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1201489509
 
The error message I am receiving is:
Error inside Serial.serialEvent()
 
java.io.IOException: Bad file descriptor in nativeavailable
     at gnu.io.RXTXPort.nativeavailable(Native Method)
     at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532)
     at processing.app.Serial.serialEvent(Serial.java:206)
     at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
     at gnu.io.RXTXPort.eventLoop(Native Method)
     at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)
 
This message repeats.  
 
What I am doing is trying to measure capacitance.
See code:  
http://hmmtheresanidea.blogspot.com/2008/06/capacitance-measurer-v10.html
 
First I looked over the hardware and it seems fine.
Then I tried the simple stuff like unpluging and repluging the Arduino.
Then starting and stopping the Serial Monitor, which i can do
Then restarting the IDE software.
 
The first person who came across this error said they got it 'occasionally' I get it consistently.
 
Any thoughts,
Oaxacamatt
2  Forum 2005-2010 (read only) / Troubleshooting / Programming Question on: June 25, 2008, 11:07:48 am
Hi All,
I have a programming question, probably simple to some... (but not for me)

I have set up my Arduino with 6 leds (outputs = 3,5,6,9,10,11) for PWM on my breadboard.  That is ok.

What I would like to do is have a program that increases the led intensity like a bell curve moving like a wave front down the line of leds.  I would like to have that wave loop continously.  

In other words, I am trying to set up the led intensities to scroll or loop (i=intensity,  i, i+1, i+2, i+3, i+3, i+2, i+1, i).  I am little baffled on how to have this loop around.

Oaxacamatt1
3  Forum 2005-2010 (read only) / Troubleshooting / Re: Fixed: Can't program diecimila on: June 20, 2008, 10:31:48 am
Hi Optique,
I was searching around the forum for help with my arduino 'issue' and came across your post.  I was having the error:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

when I started up by arduino.  I was wondering if you figured out your problem.  I solved this problem by uninstalling the FTDI drivers but I think more importantly changing the USB post AND changing the com port.  I have seen this many times on machines that one USB port is not always equal to others.  Also go into the IDE/Tools/Serial Port and try ALL the com ports listed one by one and reload the sketch each time.  I have found the resetting the button did nothing for me, btw.
Good Luck,
Oaxacamatt1
4  Forum 2005-2010 (read only) / Syntax & Programs / Programming Question on: June 30, 2008, 12:16:21 pm
Hi All,
I have a programming question, probably simple to some... (but not for me)
 
I have set up my Arduino with 6 leds (outputs = 3,5,6,9,10,11) for PWM on my breadboard.  That is ok.
 
What I would like to do is have a program that increases the led intensity like a bell curve moving like a wave front down the line of leds.  I would like to have that wave loop continously.  
 
In other words, I am trying to set up the led intensities to scroll or loop (i=intensity,  i, i+1, i+2, i+3, i+3, i+2, i+1, i).  I am little baffled on how to have this loop around.
 
Oaxacamatt1
5  Forum 2005-2010 (read only) / Troubleshooting / Error inside Serial.serialEvent() on: August 07, 2008, 09:36:26 pm
Greetings All,

I was working on my Arduino Diecimila this evening and came across an error.  The reason why I am emailing you directly is because I did a search of the forum and found a similar error message from another user to which you started to reply.  

From  Arduino Forum › Software › Troubleshooting
Error inside Serial.serialEvent()
27. Jan 2008 at 23:05
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1201489509

The error message I am receiving is:
Error inside Serial.serialEvent()

java.io.IOException: Bad file descriptor in nativeavailable
      at gnu.io.RXTXPort.nativeavailable(Native Method)
      at gnu.io.RXTXPort$SerialInputStream.available(RXTXPort.java:1532)
      at processing.app.Serial.serialEvent(Serial.java:206)
      at gnu.io.RXTXPort.sendEvent(RXTXPort.java:732)
      at gnu.io.RXTXPort.eventLoop(Native Method)
      at gnu.io.RXTXPort$MonitorThread.run(RXTXPort.java:1575)

This message repeats.  

What I am doing is trying to measure capacitance.
See code:
http://hmmtheresanidea.blogspot.com/2008/06/capacitance-measurer-v10.html

First I looked over the hardware and it seems fine.
Then I tried the simple stuff like unpluging and repluging the Arduino.
Then starting and stopping the Serial Monitor, which i can do
Then restarting the IDE software.

The first person who came across this error said they got it 'occasionally' I get it consistently.

Any thoughts,
Oaxacamatt
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Diecimila troubles on: June 20, 2008, 10:41:55 am
Hi Travisevil,
I saw your message while looking around for answers with my own arduino problems.  

One thing I would suggest you might try is to go over the board with a multimeter.  I did this with mine to make sure I soldered everything ok.  I know you bought your board but it may help.  Plug the board into the usb power and simply go thru the soldered joints on the back side.  also look to see if they are good joints or not.  Sometimes looking at the joint is the easitest and quickest way.

Good Luck,
Oaxacamatt1
7  Forum 2005-2010 (read only) / Troubleshooting / Re: sync and protocol error on: June 20, 2008, 10:33:47 am
I was searching around the forum for help with my arduino 'issue' and came across your post.  I was having the error:

avrdude: stk500_getsync(): not in sync: resp=0x00
avrdude: stk500_disable(): protocol error, expect=0x14, resp=0x51

when I started up by arduino.  I was wondering if you figured out your problem.  I solved this problem by uninstalling the FTDI drivers but I think more importantly changing the USB post AND changing the com port.  I have seen this many times on machines that one USB port is not always equal to others.  Also go into the IDE/Tools/Serial Port and try ALL the com ports listed one by one and reload the sketch each time.  I have found the resetting the button did nothing for me, btw.
Good Luck,
Oaxacamatt1
8  Forum 2005-2010 (read only) / Interfacing / Leds on Outputs for PWM on: June 25, 2008, 11:11:26 am
Hi All,
I have question regarding the outputs of the Arduino.

I have set up my Arduino to use outputs 3,5,6,9,10,11 for PWM.  That is ok.  I would like to control more than 6 leds this way.  

Q. Is it possible to use all 13 outputs in some fashion to simulate/emulate the 6 outputs listed above in a manner similar to PWM?

Oaxacamatt1
9  Forum 2005-2010 (read only) / Interfacing / Re: PWM speed on: June 25, 2008, 11:57:00 am
The easiest way that I can think of changing the frequency of your 'entire' system is to change out the crystal.  If you look in the Digi-key catalogue you will find a slew of different crystals that are the same physical size and electronic config as the 16 MHz one used currently.  It would be an easy job of desoldering the current one out and voila...  I would suggest only going down in speed not up too much.

Try the Digi-key current catalogue, P1241 rt hand side.

Give it a try.
Oaxacamatt1
10  Forum 2005-2010 (read only) / Interfacing / Re: soldering solar cells (RS 276-124) on: June 25, 2008, 11:47:22 am
I read your question and I know I have seen stuff on the web for this but i could not find the exact site.

Try this though...
http://www.instructables.com/id/Make-a-high-powered-solar-panel-from-broken-solar-/

Oaxacamatt1
Pages: [1]