Show Posts
Pages: [1] 2
1  Using Arduino / Programming Questions / Re: Can't open serial device on MAC on: February 20, 2013, 06:32:57 am
I still don't know why I can't open TTY but I found a working solution. I have to wrtie to "/dev/cu.usbmodem1431" instead of "/dev/tty.usbmodem1431"
2  Using Arduino / Programming Questions / Re: Can't open serial device on MAC on: February 20, 2013, 06:04:27 am
Well spotted but the real problem is fopen. Command line example was only to isolate the problem. ">" has the same issue as ">>" it waits forever. I never had this problem on Linux so I presume it's Mac related issue.
3  Using Arduino / Programming Questions / Can't open serial device on MAC on: February 20, 2013, 05:20:33 am
I have a problem with TTY device on MAC. I created a script which talks to Arduino and works well on Linux. Problem I'm having with MAC is I can't "fopen" the device. For example, if I do

sudo echo "foo" >> /dev/tty.usbmodem1431

It hangs forever blocking the port. It works well from Arduino's Serial Monitor so theoretically I should be able talking to it.
4  Using Arduino / Displays / Re: 12864ZW with u8glib - no DI pin?! on: February 16, 2013, 07:11:42 pm
Thank you for the update. It works well on my LCD as well.
5  Using Arduino / Displays / Re: 12864ZW with u8glib - no DI pin?! on: January 26, 2013, 03:00:05 pm
Thank you Olikraus for your time & help.
6  Using Arduino / Displays / 12864ZW with u8glib - no DI pin?! on: January 25, 2013, 05:54:16 pm
I would like to connect my 12864ZW display to Arduino. I believe it's ST7920 (http://www.digole.com/images/file/Digole_12864_LCD.pdf).

To initialize the library I have to remove comment from:
U8GLIB_ST7920_128X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, U8G_PIN_NONE, U8G_PIN_NONE, 17, 16);   // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, di=17,rw=16

The problem is I have no DI pin (the attached spec doesn't have it as well). I've already broken one display so I would like to be sure what I'm doing this time ;-)
7  Using Arduino / Displays / Re: What driver runs my LCD12864 128x64 on: January 02, 2013, 08:47:20 am
Connecting the display with IDE tape looks neat. My background is purely software development so I have no instinct for this sort of things, yet. Thank you for showing me this setup I will do the same in my future projects.
8  Using Arduino / Displays / Re: What driver runs my LCD12864 128x64 on: January 02, 2013, 05:40:24 am
Thank you Bill. With regards to the wiring I love your idea! I've just began my adventure with electronics. Soldering LCD with male connectors didn't occur to me. I've already ordered a new LCD (which is ks0108) just in case the one I got is broken. I will follow your advice.

I will also run the the "diag sketch" Today to find out what is going on with my device. Thank you for pointing out the issue with reset pin. I didn't know it has to be HIGH.

Thank you once again.
9  Using Arduino / Displays / Re: What driver runs my LCD12864 128x64 on: December 30, 2012, 06:17:21 am
Thank your for all the comments.

I tried the GLCD library. I had to remap PINs in the config/ks0108_Arduino.h because my setup is different:
#define glcdData0Pin        4
#define glcdData1Pin        5
#define glcdData2Pin        6
#define glcdData3Pin        7
#define glcdData4Pin        8
#define glcdData5Pin        9
#define glcdData6Pin        10
#define glcdData7Pin        11
#define glcdCSEL1        12
#define glcdCSEL2        13
#define glcdRW           2
#define glcdDI           1
#define glcdEN           3

I'm not sure about "glcdDI" does it refer to LCD's PIN4 "RS"? I have no pin labeled as DI and this is the only one which is missing.
I've tried few examples but non of them is working for me. I wouldn't be surprised if I already burned by display. There was a moment yesterday when by accident I connected 5+ to Vout and GROUND to RSTB. It was only a second but I smelled it smiley If that is the case I will make sure the next one I get is ks0108 as I already have experience with it.

I didn't use any resistor for backlight because the smallest one I have is 160omh and that is far too much. The backlight takes 200mA from Arduino 5V port. Perhaps I would take more from a non USB source.

Contrast is connected to 10k POT. Left pin goes to LCD PIN 18 Vout, Mid goes to PIN 3 (Vo) and the right one is ground. I can see pixels fading in when I turned it to the right.

This is what I've done:
10  Using Arduino / Displays / Re: What driver runs my LCD12864 128x64 on: December 29, 2012, 08:35:19 pm
Bill, thank you very much for you time. It was extremely useful. You can't imagine amount of pain I went through to trouble shoot this issue smiley-wink I agree, I need to know what am I dealing with. As I mentioned I got this on ebay few years ago. I was experimenting with AVRs but at that point 16x2 was as much as I could do. The LCD was forgotten and untouched for at least 4 years! Now I can't find any details of that auction so the only thing I have is labels on the display.

I'm attaching some photos (I should do it in the first place) so perhaps that could help with identification.


-- I REMOVED BIG PICTURES FROM THIS POST --
11  Using Arduino / Displays / What driver runs my LCD12864 128x64 on: December 29, 2012, 12:06:31 pm
I'm trying to connect 128x64 LCD display with Arduino. I purchased the display few years ago on e-bay and I have no access to any details about it.

I spend many hours with this tutorial http://playground.arduino.cc/Code/LCD12864 however I'm unable to display anything. The only thing which works for me is backlight and contrast POT ;-) I read on this forum there are many different drivers for a LCD12864. Perhaps the library in the tutorial is incompatible with my display.

When I look on the back of the LCD I found:

TRUMETER 4GLM-12864
TR-803 5U94V-0

On the very bottom just above pins there is:
4GLM-12864ILDN CMS-CG084DYSY-N D9932

I would appreciate any information about it. Taking the opportunity could you also tell me where can I find a low level spec how to talk to the display and use all it's features?
12  Using Arduino / Microcontrollers / Re: Is Arduino "bricking" ATmega8? on: December 26, 2012, 11:52:14 am
Ok I've tried to upload a sketch to ATmega8-16PU Today. The settings I've chosen are:

Board > Arduino NG or older w/ ATmega8
Programmer > Arduino as ISP

and I get this:

avrdude: verification error, first mismatch at byte 0x0000
         0x3f != 0x01
avrdude: verification error; content mismatch


ps.

I checked a different chip. Upload works for the first time (well... it didn't return any error). Any following upload results with:
avrdude: verification error, first mismatch at byte 0x0378
         0x02 != 0x00
avrdude: verification error; content mismatch
13  Using Arduino / Microcontrollers / Re: Is Arduino "bricking" ATmega8? on: December 23, 2012, 05:55:58 am
Quote
I'm not sure is this what you are asking me but I use 10uF capacitor from reset to ground.

Perfect.

What is the end goal?  To install a bootloader (e.g. Optiboot)?  To upload a sketch?


The goal is to upload a sketch.

ps. I think I know why  you asked this question. I should be doing UPLOAD SKETCH instead of burning bootloaders ;-) I will give it a go.
14  Using Arduino / Microcontrollers / Re: Is Arduino "bricking" ATmega8? on: December 22, 2012, 08:30:31 pm

How did you disable auto-reset?  Resistor?  Capacitor?

I'm not sure is this what you are asking me but I use 10uF capacitor from reset to ground.
15  Using Arduino / Microcontrollers / Is Arduino "bricking" ATmega8? on: December 22, 2012, 04:11:22 pm
I was trying to make use of my old ATmega8 chips which were abandoned for a long time. I setup Arduino Uno as a programmer but the only thing I got back was:

avrdude: Yikes!  Invalid device signature.
         Double check connections and try again, or use -F to override
         this check.

I tried few chips with the same result and then by accident I discovered something strange. New chips will have a nice signature:

D:\programs\arduino-1.0.3\hardware\tools\avr\bin>avrdude.exe -pm8 -carduino -P c
om4 -b 19200 -t

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude.exe: Device signature = 0x1e9307
avrdude> exit

But if I run "Burn Bootloader" and recieve my Yikes message then the signature is gone.

D:\programs\arduino-1.0.3\hardware\tools\avr\bin>avrdude.exe -pm8 -carduino -P c
om4 -b 19200 -t

avrdude.exe: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.02s

avrdude.exe: Device signature = 0x000000
avrdude.exe: Yikes!  Invalid device signature.
             Double check connections and try again, or use -F to override
             this check.

Can I restore the signature in my "broken" chips? Is there any way to upload sketch to Atmega8 without breaking it?
Pages: [1] 2