Show Posts
Pages: 1 ... 42 43 [44] 45 46 ... 102
646  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: July 09, 2013, 11:25:13 am
Hi

With the variable pot it should be possible to turn off and on all pixels. So probably something is miswired with your variable pot.

Oliver
647  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: July 08, 2013, 11:38:39 pm
Thanks for the pictures. Still it is difficult to follow the wires. In general, i think the wires are too long.
Another question: What happens if you change the variable pot. Can you see the pixels at the most left or most right position?

Oliver
648  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: July 08, 2013, 01:36:25 pm
Hi Oliver this is the program i used in my arduino mega and the lcd does not work and gives me a white light only

please help and thank you


Your program looks correct, this is what i can say. There is no more light i can give unless you provide some more information.
Maybe you can make a picture from your setup. Good enough to trace wires from your display to the Mega.

Oliver
649  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: July 08, 2013, 01:34:08 pm
but i have a question
why connecting cs1 , cs2 , di and wr to analog pins   smiley-slim

You can use any pins you want. In fact on the Arduino Mega, you must use different pins.
But you need to tell U8glib the pin numbers.

Oliver
650  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: July 08, 2013, 12:00:28 am
Hi

Examples are here: http://code.google.com/p/u8glib/wiki/tdisplaysetup

You could also follow this list of steps:

1) Download u8glib
2) install u8glib in the libraries folder (unzip there)
3) start arduino IDE
4) You should see the u8glib submenu in the Examples section
5) locate "HelloWorld"
6) open "HelloWorld" example
7) Find this line in the example:
Code:
//U8GLIB_KS0108_128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, cs1=14, cs2=15,di=17,rw=16
8 ) Uncomment this line:
Code:
U8GLIB_KS0108_128 u8g(8, 9, 10, 11, 4, 5, 6, 7, 18, 14, 15, 17, 16); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, cs1=14, cs2=15,di=17,rw=16
9) Ensure that the arduino board is not connected to any power or usb
10) Connect your display as described in the comment: // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7 en=18, cs1=14, cs2=15,di=17,rw=16
10a) Connect Data lines from D0 to D7 to pins 8,9,10,11,4,5,6,7
10b) Connect the chip enable signals to pin 14 and 15, which are labled as A0 and A1 on the Uno
10c) Connect the di display pin to pin 17, which is labled as A3 on the Uno
10d) Connect wr to pin 16, which is A2
11) The variable potentiometer (see datasheet)

Oliver
651  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: July 07, 2013, 02:30:10 pm
Did you download glcd-v3-20111205.zip from http://code.google.com/p/glcd-arduino/downloads/list?
Which IDE are you using?

I am not an expert on glcd-v3. Better to ask here: http://forum.arduino.cc/index.php?topic=56705.0

In the case you decide to use U8glib, then you are welcome to ask questions in this thread here.

Oliver


652  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: July 07, 2013, 01:33:51 pm
I think it is best to use GLCDv3 first. It has a very good user manual.

Oliver
653  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: July 07, 2013, 12:52:35 am
Hi

It seems to be this display: http://www.mikroe.com/download/eng/documents/development-tools/components/glcd_128x64_spec.pdf
It is a KS0108 based display. With U8glib, you can use
Code:
U8GLIB_KS0108_128(d0, d1, d2, d3, d4, d5, d6, d7, en, cs1, cs2, di, rw [, reset])
but Bill's GLCDv3 will also work: http://forum.arduino.cc/index.php?topic=56705.0;topicseen

Oliver
654  Using Arduino / Displays / Re: U8glib: Graphics Lib for LCDs and OLEDs on: July 06, 2013, 11:43:10 am
Hi

U8glib Version v1.13 is available for download:

Updates include:
  • Support for SSD1351 (true color OLED) and HT1632 (LED Matrix)
  • Performance improvements for the ST7920
  • Double buffer option for ST7565 controller
  • HW SPI support for Arduino Due

Oliver
655  Using Arduino / Programming Questions / Re: Menu for Display on: July 06, 2013, 01:33:18 am
Hi

M2tklib has touch screen support. I did tests with U8glib, a dogm128 display and the touch screen mentioned in the data sheet of the dogm128: http://www.lcd-module.com/eng/pdf/grafik/dogm128e.pdf

In general almost no effort is required for resistive touch screens, u8glib and m2tklib, so my suggestion is to look for a graphics display, which is supported by u8glib and has a resistive touch screen.

The components from here http://www.lcd-module.com/eng/pdf/grafik/dogm128e.pdf are known to work.

Oliver

656  International / Deutsch / Re: Sammlung von Utilitys on: July 05, 2013, 02:46:27 pm
http://code.google.com/p/m2tklib/

Bei m2tklib setzt man seine Menüs / Eingabemasken aus einzelnen Elementen zusammen. Es gibt Elemente für Zahlen, Text, Auswahlboxen aber auch "Container"-Elemente die wiederum andere Elemente enthalten können. Alles wird im Flash abgelegt.
Referenz befindet sich hier: http://code.google.com/p/m2tklib/wiki/elref. Ausserdem gibt es viele Tutorials.

Datumseingabe sieht beispielsweise so aus:
Code:
/* edit date dialog */
uint8_t dt_day = 1;
uint8_t dt_month = 1;
uint8_t dt_year = 12;
void dt_ok_fn(m2_el_fnarg_p fnarg)  {
  m2_SetRoot(&top_el_tlsm);
}
M2_U8NUM(el_dt_day, "c2", 1,31,&dt_day);
M2_LABEL(el_dt_sep1, "", ".");
M2_U8NUM(el_dt_month, "c2", 1,12,&dt_month);
M2_LABEL(el_dt_sep2, "", ".");
M2_U8NUM(el_dt_year, "c2", 0,99,&dt_year);
M2_LIST(list_date) = { &el_dt_day, &el_dt_sep1, &el_dt_month, &el_dt_sep2, &el_dt_year };
M2_HLIST(el_date, NULL, list_date);
M2_ROOT(el_dt_cancel, NULL, "cancel", &top_el_tlsm);
M2_BUTTON(el_dt_ok, NULL, "ok", dt_ok_fn);
M2_LIST(list_dt_buttons) = {&el_dt_cancel, &el_dt_ok };
M2_HLIST(el_dt_buttons, NULL, list_dt_buttons);
M2_LIST(list_dt) = {&el_date, &el_dt_buttons };
M2_VLIST(el_top_dt, NULL, list_dt);

Oliver
657  Using Arduino / Programming Questions / Re: Menu for Display on: July 04, 2013, 03:36:56 pm
Hi

I have added another home button (M2_KEY_HOME2, m2.setHome2(...)).


Oliver
658  Using Arduino / Programming Questions / Re: Menu for Display on: July 03, 2013, 04:27:47 pm
ok, i have implemented something. Which variant of m2tklib do you need? I mean, what is your display?

Oliver
659  Using Arduino / Displays / Re: DMF5005N optrex on: July 03, 2013, 02:06:33 pm
Hi

1) Download u8glib
2) install u8glib in the libraries folder (unzip there)
3) start arduino IDE
4) You should see the u8glib submenu in the Examples section
5) locate "HelloWorld"
6) open "HelloWorld" example
7) Find this line in the example:
Code:
//U8GLIB_T6963_240X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, 14, 15, 17, 18, 16); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7, cs=14, a0=15, wr=17, rd=18, reset=16
8 ) Uncomment this line:
Code:
U8GLIB_T6963_240X64 u8g(8, 9, 10, 11, 4, 5, 6, 7, 14, 15, 17, 18, 16); // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7, cs=14, a0=15, wr=17, rd=18, reset=16
9) Ensure that the arduino board is not connected to any power or usb
10) Connect your display as described in the comment: // 8Bit Com: D0..D7: 8,9,10,11,4,5,6,7, cs=14, a0=15, wr=17, rd=18, reset=16
10a) Connect Data lines from D0 to D7 to pins 8,9,10,11,4,5,6,7
10b) Connect the chip enable display pin (called cs in U8glib) to pin 14, which is labled as A0 on the Uno
10c) Connect the c/d display pin (called a0 in U8glib) to pin 15, which is labled as A1 on the Uno
10d) Connect wr, rd and reset to 17, 18, 16, which are A3, A4, A2
11) Connect FS to 0V (Gnd)
12) Connect FG to 0V (Gnd)
13) Create a -15V source. Best is to use a DC/DC converter, which creates -15V from +5V. Of course for testing any -15V power soruce will be ok. For example 10x 1.5V AA batteries: Connect +15V of the batterie back to GND and the GND of the battery pack will be -15V.
13) The variable potentiometer: Connect one end to GND, connect the other end to -15V, connect the wiper to V0

Oliver

Edit:
14) Connect Arduino to your PC, download "HelloWorld" example. Adjust wiper until you see the HelloWorld String. Optional: Post a picture of the result.
660  Using Arduino / Programming Questions / Re: Menu for Display on: July 02, 2013, 02:26:41 pm
How many (quick) buttons would you need?

Oliver
Pages: 1 ... 42 43 [44] 45 46 ... 102