Show Posts
Pages: [1]
1  Using Arduino / Displays / Debugging LCD on: February 10, 2013, 12:53:47 pm
Trying to get an lcd to work with liquidCrystal.   Using Arduino Uno rev3.  The hello world sketch http://arduino.cc/en/Tutorial/LiquidCrystal does display any characters..

[I actually have two Arduino Unos and a mega - get the same results with all three boards].

When I measure the on the pins I get the following and wondered if that is expected.

Voltages measured without the display attached and separately on the display itself.
Data pins 2,3,4 and 5 1.5 to 5 V
RS – 3.5V
Enable pin 0.18V   ** this troubles me but???

the potentiometer varies the display

Suggestions on what to try next are needed/wanted
2  Using Arduino / Installation & Troubleshooting / Re: Serial Port grayed out on: October 09, 2012, 10:20:56 pm
I tried the re=istall - nothing
I tried the access the user to the port - nothing.

Then
"
I am not sure if I have any better advise than SurferTim. The only crazy longshot is open your Arduino IDE, go to File->Preferences then click on path hyperlink to preference.txt file near the bottom of the preferences window. Open and view the preference.txt file and find "serial.debug_rate". Verify that it is set to 9600."

My file was set to 28800.

Setting it back to 9600 fixed the issue!!!!!

Massive celebration!!!!

Thank you.
3  Using Arduino / Installation & Troubleshooting / Serial Port grayed out on: October 08, 2012, 11:45:07 pm
Just got my Arduino Mega 2560 R3.  Was able to load Blink and play with updating it to change the frequency of the blink etc.  Moved on to a sketch with Serial.Write... Now I CAN upload from Windows but CANNOT from my Ubuntu box where I really need to work. 

Any ideas on what to do to get uploading working on Ubuntu?

Arduino 1.0.1 on Ubuntu 12.04.1

Log from Arduino Window:
Binary sketch size: 1,624 bytes (of a 258,048 byte maximum)
Binary sketch size: 1,624 bytes (of a 258,048 byte maximum)
processing.app.SerialException: Error opening serial port '/dev/ttyACM0'.
   at processing.app.Serial.<init>(Serial.java:178)
   at processing.app.Serial.<init>(Serial.java:77)
   at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:77)
   at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:172)
   at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
   at processing.app.Sketch.upload(Sketch.java:1706)
   at processing.app.Sketch.exportApplet(Sketch.java:1662)
   at processing.app.Sketch.exportApplet(Sketch.java:1634)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2346)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2355)
   at java.lang.Thread.run(Thread.java:679)
Caused by: gnu.io.UnsupportedCommOperationException: Invalid Parameter
   at gnu.io.RXTXPort.setSerialPortParams(RXTXPort.java:213)
   at processing.app.Serial.<init>(Serial.java:163)
   ... 10 more
processing.app.debug.RunnerException: Error opening serial port '/dev/ttyACM0'.
   at processing.app.debug.Uploader.flushSerialBuffer(Uploader.java:101)
   at processing.app.debug.AvrdudeUploader.uploadViaBootloader(AvrdudeUploader.java:172)
   at processing.app.debug.AvrdudeUploader.uploadUsingPreferences(AvrdudeUploader.java:67)
   at processing.app.Sketch.upload(Sketch.java:1706)
   at processing.app.Sketch.exportApplet(Sketch.java:1662)
   at processing.app.Sketch.exportApplet(Sketch.java:1634)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2346)
   at processing.app.Editor$DefaultExportHandler.run(Editor.java:2355)
   at java.lang.Thread.run(Thread.java:679)


Device is created:

 ls -la /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Oct  7 20:55 /dev/ttyACM0

have access:

 groups | grep -o '\bdialout\b'
dialout

Communicating with Arduino:  the following causes the Rx diod to flicker indicating it's getting a signal
echo ciao > /dev/ttyACM0

When I try to upload a script a file gets created:LCK..ttyACM0.  I can delete this file but can't upload.
Pages: [1]