Show Posts
|
|
Pages: [1] 2 3 ... 54
|
|
1
|
Using Arduino / Displays / Re: 12864ZW with u8glib - no DI pin?!
|
on: May 20, 2013, 02:18:00 pm
|
|
PSB might have a pullup resistor.
Do the following: Apply 1 VSS 0V 2 VDD 5.0V Then measure the voltage between VSS and PSB. What is the voltage? Then measure the voltage between VSS and Vout. Waht is the voltage?
Then do the following: Connect 1 VSS 0V 2 VDD 5.0V
Vout to the first pin of the variable potentiometer V0 to the second pin of the var pot VSS to the third pin of the var pot.
What do you see, when you turn the var pot from left to right? Expected result: You should be able to turn on and off all the pixel. Is this possible?
Oliver
|
|
|
|
|
2
|
Using Arduino / Displays / Re: 12864ZW with u8glib - no DI pin?!
|
on: May 20, 2013, 01:29:25 pm
|
|
Correct, one side to GND, other side to Vout and the middle pin (wiper) to V0. With the variable pot you should be able to turn all pixel on (contrast max) and off. Usually LCDs need a negative voltage for V0 which is provided by Vout. Connecting pin 1 and 3 of the variable pot to 5V and GND will not work, because V0 needs negative voltage below GND.
Oliver
Edit: Not all GLCDs provide negative power at Vout. Best would be to measure the voltage of Vout vs. GND first.
|
|
|
|
|
4
|
Using Arduino / Displays / Re: 12864ZW with u8glib - no DI pin?!
|
on: May 20, 2013, 12:39:09 am
|
Hi You can use the serial interface (PSB = GND) with U8GLIB_ST7920_128X64_1X(E, R/W, RS , rst)
where the four arguments are the Arduino pin numbers, which are connected to the corresponding pin of your display. Oliver
|
|
|
|
|
5
|
Using Arduino / Displays / Re: 12864 Graphics LCD Wiring
|
on: May 16, 2013, 01:56:43 pm
|
|
The lib seems to fit to the display. Will the original example also show such an error: spi_text_example.ino
BTW the latchPin seems to be the chip select pin.
But as dc42 mentioned... it is difficult to comment other peoples libs...
Oliver
|
|
|
|
|
6
|
International / Deutsch / Re: RTC 1307 Lib Problem
|
on: May 11, 2013, 04:26:37 pm
|
Hi Naja, damit wäre dann die Fehlermeldung erklärt. Im Code weiter oben steht: Time DS1307new::getTime() In der eben geposteten .h Datei steht hingegen: void getTime(void); Irgendwie passen .h und .cpp dateien nicht zusammen. Was aber richtig ist, kann ich nicht sagen, da ja die Erweiterung nicht von mir stammt und auch nicht von mir getestet wurde. :-( Eventuell genügt es die .h Datei entsprechend anzupassen. Grüße, Oliver
|
|
|
|
|
8
|
International / Deutsch / Re: RTC 1307 Lib Problem
|
on: May 11, 2013, 12:37:47 am
|
|
Mir scheint, dass dieses getTime() eine Erweiterung der DS1307new ist, die nicht von uns stammt. Kannst Du mal deine .h Datei der modifizierten DS1307new hier posten. Ohne die .h Datei wird es schwierig den Fehler nachzuvollziehen.
Grüße, Oliver
|
|
|
|
|
9
|
International / Deutsch / Re: RTC 1307 Lib Problem
|
on: May 10, 2013, 12:31:12 pm
|
Hi In der DS1307new wird anstelle von Time einfach ein uint32_t genommen. Dieser Datentyp enthält die sekunden nach dem 1.1.2000. Auf die einzelnen Datenmember kann direkt zugegriffen werden, beispielsweise durch RTC.time2000. Siehe hier: http://code.google.com/p/ds1307new/wiki/Reference. Ich kenne jetzt zwar die Funktion "setDisplayTime" nicht, aber in DS1307new Referenz wird erklärt, wie Du beispielsweise auf die Minuten, Stunden, etc zugreifen kannst. Ist "setDisplayTime" teil einer Lib oder ist die von Dir selbst geschrieben? Oliver
|
|
|
|
|
10
|
International / Deutsch / Re: RTC 1307 Lib Problem
|
on: May 10, 2013, 08:46:53 am
|
Hallo Aus meiner Sicht sind hier einige Fragen offen. Warum kann man die DS1307new nicht verwenden? Die Funktionalität sollte doch einigermaßen unabhängig von der UTFT sein. Ein Problem besteht nur dann, wenn die UTFT die TWI/I2C Pins für das Display benötigt. Deshalb: Um was für ein Display handelt es sich denn, wie ist es angeschlossen? Gibt es alternativen zu dem Display? Da ich die Rückgabewerte der Funktionen der urspünglichen Lib nicht kenne, müsste ich ja da ansetzen und den Code dementsprechend anpassen, denk ich. Welche Rückgabewerte? Von wem oder was? Oliver (der in dem DS1307 Code genannte...)
|
|
|
|
|
15
|
Using Arduino / Displays / Re: Test/demo sketch for 12864
|
on: May 09, 2013, 01:25:17 am
|
|
Ok, so you connected your cable to this 2x3 socket where pins are labled with D2, D3, D4? If these pins refer to the digital pins of your Arduino Board, then i see a mismatch between D2, D3 and D4 and your inital sketch which probably expect (according to the comment) pins at D8, D9 and D3.
All in all it is not clear (at least to me) how the display is connected to the Arduino and which pins are really used by your software.
Oliver
|
|
|
|
|