We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpElectronics,  Serial Library › finding my usb serial port
Page Index Toggle Pages: 1
finding my usb serial port (Read 1230 times)
finding my usb serial port
Dec 21st, 2007, 9:22am
 
 I'm working with arduino and processing, and I'm just trying to do one of the tutorials on the arduino site.  It involves setting up a serial connection between the arduino and processing, and using mouse location to vary the brightness of an LED.  The problem I've run into is that I can't get processing to recognize my port.  The arduino connects fine, but serial.list() lists only bluetooth ports.  I closed the arduino IDE in suspicion that it was occupying the port and keeping it from processing, but that didn't do anything.  Mactel 10.4.10.  Latest version of processing.  Thanks a lot.


edit:  I tried yet again, doing nothing differently as far as I can tell, and for some reason it worked.  But now my problem is the sketch doesn't do anything I would expect.  The LED just blinks, which is mind-boggling.
Re: finding my usb serial port
Reply #1 - Dec 27th, 2007, 6:37pm
 
Hi!

OK - couple of things.

Firstly - it sounds like your serial connection is working?

The blinking problem sounds like you've got your LED plugged into a digital pin. Only some of the arduino pins are capable of variable output. These are marked "PWM". On the arduino these are pins 9,10 and 11, I believe.

Hope this helps!
Alias
Re: finding my usb serial port
Reply #2 - Dec 27th, 2007, 7:27pm
 
The arduino board is pre-programmed to blink an LED, which can be quite confusing if it's your first time using it.

In order to load your program on to the arduino board, you need to first press the tiny 'reset' button on the board, then upload the program from the arduino software. On my board, the reset button is a small, circular black button, approximately centered on the side opposite the USB connection.

Hopefully this helps; I had similar problems when I first got my board.
Re: finding my usb serial port
Reply #3 - Dec 28th, 2007, 4:16am
 
Thanks guys.  I realized that my port wasn't showing up because the Arduino wasn't plugged in, so I guess the port doesn't count in that case.  And yeah, I had the LED in pin 13, so no PWM.  I've got it all worked out now.
Oh, and I have the Diecimila, which doesn't require a reset to load sketches.  But thanks for the help, guys.
Page Index Toggle Pages: 1