Hi All,
I apologie if this is off-topic. Please let me know if you think it is.
I have been working on my arduino-based pedal, and im faced with a peculiar problem right now. I'm using 8 digital inputs ( 6 on the first socket of the board, inputs 2 through 8, and 2 on the second digital socket, inputs 9 and 10). The first 6 inputs work perfectly, but when i want to use any of the last two inputs (9 and 10), i have to trigger them twice before they start working. Then i'm faced with the exact same problem when i get back to the first 6 inputs. I am pretty sure that i used the very same wiring for all 8 inputs.
So... I thought that maybe this could be a problem with firmata or pduino (no offense, Hans!). I have been spending the last hour trying to write a simple program in the arduino software in order to print in serial monitor the values of my digital inputs.
Now my question... Is the arduino software just really really bad? Or was it just not designed to work on an ubuntu machine? It is randomly very slow at start-up, it randomly disables the serial port menu in Tools, it randomly decides to prevent me from uploading the program in the board, or warns me that serial port dev/ttyACM0 is already in use, or can't be found. The fact that i unplug and replug the board, or change the usb port, or restart the software doesn't seem to make any difference.
This is beginning to look more like witchcraft than computer science to me.
Please help me, or i'll teach it how to fly out my window.
Thank you.
Pierre
Pierre Massat wrote:
Now my question... Is the arduino software just really really bad?
Quite so, especially the serial port handling. The same applies for Processing, upon which the arduino IDE is founded. You can hog a brand new computer with a 9600bps transfer.
It is randomly very slow at start-up, it randomly disables the serial port menu in Tools, it randomly decides to prevent me from uploading the program in the board, or warns me that serial port dev/ttyACM0 is already in use, or can't be found.
I have the exact same behavior with the Uno (on archlinux). I believe it's mostly a matter of upgrading the bootloader that lies in the atmega8U. That's why I stepped back to the golden age of no autoreset, a trusty external ISP programmer, a good Makefile and a nice text editor.
It seems to occur more often when the program running on the board writes to the serial port. It looks like the usb bridge and the main microcontroller are not in the same stage.
Try holding the reset button, click upload and then release it. It sometimes help.
This is beginning to look more like witchcraft than computer science to me.
Bugs are computer science ;).
Fixed (partially, i haven't tried the board with Pduino yet).
Please read my new post "Got Arduino UNO to work in Linux (Ubuntu)" for the fix.
Pierre
2011/7/9 Charles Goyard cg@fsck.fr
Pierre Massat wrote:
Now my question... Is the arduino software just really really bad?
Quite so, especially the serial port handling. The same applies for Processing, upon which the arduino IDE is founded. You can hog a brand new computer with a 9600bps transfer.
It is randomly very slow at start-up, it randomly disables the serial port menu in Tools, it randomly decides to prevent me from uploading the program in the board, or warns me that serial port dev/ttyACM0 is already in use, or can't be found.
I have the exact same behavior with the Uno (on archlinux). I believe it's mostly a matter of upgrading the bootloader that lies in the atmega8U. That's why I stepped back to the golden age of no autoreset, a trusty external ISP programmer, a good Makefile and a nice text editor.
It seems to occur more often when the program running on the board writes to the serial port. It looks like the usb bridge and the main microcontroller are not in the same stage.
Try holding the reset button, click upload and then release it. It sometimes help.
This is beginning to look more like witchcraft than computer science to
me. Bugs are computer science ;).
-- Charlot
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list