Show Posts
Pages: 1 ... 47 48 [49] 50 51 ... 83
721  Using Arduino / Programming Questions / Re: Arduino Menu Help for a Beginner on: December 03, 2012, 03:03:36 pm
Hi

You could use M2tklib for LiquidCrystal lib http://code.google.com/p/m2tklib/.

For M2tklib you can select the number of available input buttons. There are "button handlers" for 2, 3, 4, 5 and 6 buttons.
It also supports rotary encoder, multiple buttons at one analog pin and also input from the serial montor.

You can display live data (that means current content of memory values) if you do a regular update of the menu.

M2tklib has a complete reference manual and a lot of tutorials.
Widget elements: http://code.google.com/p/m2tklib/wiki/elref
Function reference: http://code.google.com/p/m2tklib/wiki/fnref
Tutorial 2 for LiquidCrystal with overview on M2tklib: http://code.google.com/p/m2tklib/wiki/t02lc

All examples are carefully tested on my Arduino Uno and Leonardo. As of now i do not know a single example which is not working. Let me know, if you find one.

Oliver


722  International / Deutsch / Re: Literaturtipps für Programmiersprache C on: December 02, 2012, 06:26:21 am
Hi Addi

Guter Tip, Karma +.

Danke,
Oliver
723  International / Deutsch / Re: Literaturtipps für Programmiersprache C on: December 01, 2012, 05:55:24 pm
Die Programmiersprache für den Arduino beschränkt sich auf ein Subset von C++. Das finde ich ganz gut und im allgemeinen, braucht man den Stroustrup wohl nicht gelesen zu haben.
Hier mal ein Beispiel aus der Arduino Welt:
Beim Übergang von 0023 auf 1.0 wurde der Prototyp einer virtuellen Memberfunktion der Print Klasse geändert. Das führte dazu, dass einige Libs nicht mehr funktionierten.

Wer den Stroustrup gelesen hat, den Vererbungsmechanismus und die virtuellen Funktionen verstanden hat, kann das Problem anhand der IDE Fehlermeldung eingrenzen und leicht selbst lösen.
Wer den Stroustrup nicht gelesen hat, dem wird aber auch gerne hier im Forum geholfen (gerade bei solchen Fragen).

Ein anderes Beispiel ist die PROGMEM Thematik. Gerade im Zusammenhang mit dem neu eingeführten F() Makro werden hier gnu-Compiler und C++ mäßig alle Register gezogen. Ein Buch gibt es da wohl nicht, am besten: Ausprobieren. Und ich finde die Beischreibungen auf den Arduino Seiten gar nicht so schlecht (wenn auch etwas knapp):

Quote
You can pass flash-memory based strings to Serial.print() by wrapping them with F(). For example :
    Serial.print(F(“Hello World”))

Am Schluß doch noch von mir eine Buchempfehlung. Da das Buch mittlerweile im Netz steht, kann man auch gleich anfangen zu lesen:
http://syque.com/cstyle/index.htm
Leider in Englisch...

Grüße,
Oliver
724  Using Arduino / Displays / Re: LCD12864 on: November 30, 2012, 05:41:18 pm
Any one had any luck with this? There was a pin-out given and a pong game. The library contains hundreds of errors which I couldn't med.

Which library? Which pong game? I did not see any links.

The controller itself is quite common and there are several libs around here. One of these libs is http://code.google.com/p/u8glib/ another one is from dc42. The Arduino libs usually do not give much information on how to connect the display with your Arduino, so you should fetch the controller datasheet and connect the display pins as described there.
See also here: http://arduino.cc/forum/index.php/topic,133736.0.html.

Oliver
725  Using Arduino / Displays / Re: 128x64lcd with nt7534 control lsi on: November 28, 2012, 01:29:43 pm
Hi

The NT7534 seems to be compatible with the ST7565. The NT7532 datasheet is somewhere in the internet (google for "nt7532 pdf"). I think any instructions for a ST7565 display can also be used. I would suggest to use SPI mode (P/S = "L"). Schematics are shown on my old project page: http://code.google.com/p/dogm128/wiki/dogm128_arduino_hardware. Please note that some data lines are mapped to the SPI lines (see page 9 of the NT7532 datasheet). Once connected to the Arduino you can use http://code.google.com/p/u8glib/ as a graphics library. U8glib includes support for several different ST7565 based displays. You probably need to figure out which one fits best. If none of the existing drivers are working, then we can for sure create a new driver for your display.

What is the exact name of your display? Any datasheet available for your display?

Oliver

726  Using Arduino / Displays / Re: display stored string using 8uglib on: November 26, 2012, 04:27:14 pm
I assume, that you need to convert the String object to a character array before passing it to drawStr.
Use http://arduino.cc/en/Reference/StringToCharArray.

Oliver

727  Using Arduino / Displays / Re: SSD1306 driver for ATtiny84 - documentation for commands? on: November 26, 2012, 04:11:03 pm
Hi

The SSD1306 is a controller for OLED displays. The SSD1306 is NOT able to draw any characters. The pdf document SSD1306.pdf describes the controller and NOT your display. I assume your display has an additional controller which accepts high level commands for drawing text (note: the SSD1306 has I2C ID 0x3c or 0x3d, while the example code uses 0x51)

Indeed there seems to be no information on the high level protocol of the additional controller. Maybe you can provide a close up picture of the back side of the PCB. I think the controller is placed there.

Of course the price is good (especially because of the additional high level controller), but probably useless unless you get additional information from the seller.

Adafruit code will not work, because adafruit just sells and supports the plain OLED with the SSD1306 controller. Also u8glib only supports OLEDs with plain SSD1306 (but u8glib will probably work on a ATTINY84/85).

Oliver

728  Using Arduino / Displays / Re: LCD 128x64 ST7920 using u8glib on: November 25, 2012, 12:31:51 pm
Quote
PIN 1 to 5V (powered by arduino)
PIN 2 to PIN 3 on LCD [V0]
PIN 3 to PIN 18 on LCD [VOUT]

should be:
PIN 1 to GND
PIN 2 to PIN 3 on LCD [V0]
PIN 3 to PIN 18 on LCD [VOUT]


Quote
And what are PIN 19 [BLA] (Backlight power supply positive) and PIN 20 [BLK] (Backlight power supply negative)?
I assume, that this will turn on backlight.

Oliver
729  Using Arduino / Displays / Re: LCD 128x64 ST7920 using u8glib on: November 22, 2012, 05:02:46 pm
Hi Simon

Put the wiper of a variable 10K pot to V0, one end to VSS (ground) and the other end to VOUT of the display.
Adjust the variable potentiometer to get optimal result.

Oliver
730  Using Arduino / Displays / Re: LCD 128x64 ST7920 using u8glib on: November 22, 2012, 03:43:41 pm
Hi

Usually a ST7920 display requires an adjustable power supply at a pin which is often labled as V0 to setup the contrast. See the datasheet of your display. A variable 10K resistor usually is fine for this.

See schematic of the datasheet here: http://www.newhavendisplay.com/nhd19232wgbtmivtnonstocked-sample-quantities-available-p-546.html

Oliver
731  Using Arduino / Displays / Re: Any u8glib support for a HX8430BN controller? on: November 22, 2012, 12:50:34 am
Hi

There is currently no support for RGB displays in u8glib. I did some experiments with one RGB display, but decided not to continue with it. Main reason is, that i feel, that u8glib will be too slow for RGB support on ATMega controllers.

The good news is, there is another universal lib out there, which should support your display: UTFT, see http://henningkarlsen.com/electronics/library.php?id=51

Oliver
732  Using Arduino / Displays / Re: connection diagram order to arduino lcd j12864 - pedido de diagrama de coneccion on: November 20, 2012, 04:43:20 pm
Maybe you can post a picture of your setup, so that we can have a look at it.

Oliver
733  Using Arduino / Displays / Re: 320x64 LC7891 with u8glib on: November 20, 2012, 02:46:49 pm
Hi

I have added an issue for this task on the project page and I will add the new device as soon as possible.
Thanks!

Oliver
734  Using Arduino / Displays / Re: connection diagram order to arduino lcd j12864 - pedido de diagrama de coneccion on: November 20, 2012, 02:33:57 pm
PSB to GND
RST to Digital Pin 5
E to Digital Pin 4
R/W to digital pin 3
RS to digital pin 2


Other pins as described in the datasheet or the controller manual of the ST7920.

Then use:

Code:
U8GLIB_ST7920_128X64 u8g(4, 3, 2, U8G_PIN_NONE, 5 );

Pin numbers above are only suggestions, you may use any valid digital pin.

Oliver
735  Using Arduino / Displays / Re: 320x64 LC7891 with u8glib on: November 20, 2012, 12:58:51 am
Hi

Thanks for all the good pictures so far. I think i was able to isolate the problem.
Please locate line 64 of file u8g_pb8h1f.c

replace
Code:
  register uint8_t mask, tmp;
with
Code:
  register uint8_t mask;
  register u8g_uint_t tmp;

This should solve the problem. I also made the change in the repository:
http://code.google.com/p/u8glib/source/browse/csrc/u8g_pb8h1f.c
Procedures of pb8h1f have been written for a buffer of max 256 bytes. But this is wrong for your display. So the tmp variable needs to be 16 bit in 16 bit modes.

Oliver
 
Pages: 1 ... 47 48 [49] 50 51 ... 83