Hi,
I got a LCD shield (monochrome) to add to my Arduino, downloaded the library and uploaded the "Hello World" sketch from the examples directory.
Sketch compiles and runs fine, showing "Hello World" and an incrementing second counter.
However, when I try to upload a different sketch, I get an error panel reporting "Serial port /def/tty.usbmodem1421 not found. Retry the upload with another serial port?" The popup list shows only
tty.Bluetooth-PDA-Sync
cu.Bluetooth-PDA-Sync
tty.Bluetooth-Modem
cu.Bluetooth-Modem.
If I unplug and disconnect the LCD shield, the port option tty.usbmodem reappears when I plug in again, but this seems pretty circumstantial.
Questions: (of many - I know little about electronics)
- shouldn't I be able to upload another sketch without having to disconnect the shield?
- can't I use the serial monitor to monitor what's happening when I have this shield connected?
Thanks for any help
Jeff
Hello World sketch zaps tty.usbmodem port
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- adafruit_support_bill
- Posts: 88153
- Joined: Sat Feb 07, 2009 10:11 am
Re: Hello World sketch zaps tty.usbmodem port
The shield and Hello World sketch should have no effect on the serial communication. Can you post photos of the assembled shield?
-
- Posts: 25
- Joined: Thu Aug 01, 2013 2:24 pm
- adafruit_support_bill
- Posts: 88153
- Joined: Sat Feb 07, 2009 10:11 am
Re: Hello World sketch zaps tty.usbmodem port
Your assembly looks fine. The shield itself uses only i2c communication. But I don't see anything on it that might have an effect on serial communication. What Arduino are you using with this shield. And which operating system?
-
- Posts: 25
- Joined: Thu Aug 01, 2013 2:24 pm
Re: Hello World sketch zaps tty.usbmodem port
Thanks for checking out the pix -
My Arduino is an Uno and I'm using OS-X 10.8.4 on a fairly new MacBook Air - Arduino 1.0.5 for OS-X to compile and upload sketches.
I notice that when I don't have the Arduino plugged into USB port and try to upload sketches that the tty.usbmodem options likewise vanish until I make the USB connection. Is that a clue?
Jeff
My Arduino is an Uno and I'm using OS-X 10.8.4 on a fairly new MacBook Air - Arduino 1.0.5 for OS-X to compile and upload sketches.
I notice that when I don't have the Arduino plugged into USB port and try to upload sketches that the tty.usbmodem options likewise vanish until I make the USB connection. Is that a clue?
Jeff
- adafruit_support_bill
- Posts: 88153
- Joined: Sat Feb 07, 2009 10:11 am
Re: Hello World sketch zaps tty.usbmodem port
Yes, the tty.usbmodem device should go away when you unplug the Uno. But installing the shield and/or running the example sketch should not affect communication at all. Is this repeatable?
-
- Posts: 25
- Joined: Thu Aug 01, 2013 2:24 pm
Re: Hello World sketch zaps tty.usbmodem port
It's very repeatable - I was just putting together switches for my project and used the Serial Monitor without problem. After I disconnected the breadboard with that stuff, I mounted the shield, and uploaded HelloWorld.pde from the examples directory.
It shows "Hello World!" and starts the seconds counter.
I selected Serial Monitor from the Tools menu and got only error messages (see below).
I unmounted the shield, reloaded my KilnAdjustments sketch, and launched a functioning Serial Monitor without any problem.
Here are the error messages that appeared in the sketchbook console:
It shows "Hello World!" and starts the seconds counter.
I selected Serial Monitor from the Tools menu and got only error messages (see below).
I unmounted the shield, reloaded my KilnAdjustments sketch, and launched a functioning Serial Monitor without any problem.
Here are the error messages that appeared in the sketchbook console:
Code: Select all
processing.app.SerialNotFoundException: Serial port '/dev/tty.usbmodem1411' not found. Did you select the right one from the Tools > Serial Port menu?
at processing.app.Serial.<init>(Serial.java:191)
at processing.app.Serial.<init>(Serial.java:92)
at processing.app.SerialMonitor.openSerialPort(SerialMonitor.java:207)
at processing.app.Editor.handleSerial(Editor.java:2481)
at processing.app.Editor$17.actionPerformed(Editor.java:665)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
at com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)
at java.awt.MenuItem.processActionEvent(MenuItem.java:650)
at java.awt.MenuItem.processEvent(MenuItem.java:609)
at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:343)
at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:331)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:720)
at java.awt.EventQueue.access$400(EventQueue.java:82)
at java.awt.EventQueue$2.run(EventQueue.java:676)
at java.awt.EventQueue$2.run(EventQueue.java:674)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
at java.awt.EventQueue$3.run(EventQueue.java:690)
at java.awt.EventQueue$3.run(EventQueue.java:688)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
- adafruit_support_bill
- Posts: 88153
- Joined: Sat Feb 07, 2009 10:11 am
Re: Hello World sketch zaps tty.usbmodem port
Take a very close look at digital pins 0 and 1. Make sure that there are no solder bridges or other suspicious things around these pins.
-
- Posts: 25
- Joined: Thu Aug 01, 2013 2:24 pm
Re: Hello World sketch zaps tty.usbmodem port
thanks for the suggestion - after I ascertained that there were no solder bridges, I realized that since I didn't clip the pins on the upper left side of the shield, they were coming into firm contact with the AREF pins. I plugged the shield in half-way to prevent the contact and voila! My serial port reappeared.
Now, where are those nippers ...
Jeff
Now, where are those nippers ...
Jeff
- adafruit_support_bill
- Posts: 88153
- Joined: Sat Feb 07, 2009 10:11 am
Re: Hello World sketch zaps tty.usbmodem port
Cool! Glad you figured it out
Please be positive and constructive with your questions and comments.