PDA

View Full Version : Deal on a 1.8" 160x128 Color LCD @ US $9.99



MichelJasmin
- 26th January 2015, 04:00
Hello group,


I want to share with you a deal on a 1.8" 160x128 Color LCD @ US $9.99:


http://www.digole.com/index.php?productID=1189


It's a pre-order deal. I do use these displays because they come with an integrated MCU to process the commands and graph engine. There is an Arduino Demo Code Video on Youtube (see link on the page). Here is an example of what I did with the 160x128 OLED:


7688


They have backpacks for text LCD too. The nice thing is you can use a LCD with just 1 pin.

Tip: to design my user interfaces I connect the LCD to a USB UART to TTL and I do all the programming in Visual Basic. It's a lot faster than compile/flash a PIC. When I'm done I copy/paste the code to my PBP project!

HTH!

HenrikOlsson
- 26th January 2015, 06:56
Thanks, might get one to play with (if shipping cost doesn't kill the deal).
And nice work on the interface, mind sharing some code for other PBP users?

As for the display spec:
* Wide viewing range, 190 degrees up-down, 60 degrees left-right
Impressive....

/Henrik.

Dave
- 26th January 2015, 12:18
Well which one is it? OLED or LCD? That's a pretty good deal for an OLED $9.99. The one in the attached link is an LCD.

MichelJasmin
- 27th January 2015, 03:26
The deal is for the LCD.

Henrik: At work I maintain our GPS tracking system. I made this device to diagnose the GPS units but I can't post the code. I'm working on a personnal fun project involving ESP8266+GPS+OLED 160x128. I'll share some code when done... Stay tuned!

srspinho
- 5th March 2015, 21:49
Hello Michel,

I bought some Digole units on eBay some time ago.

But, I couldn´t get it working with PicBaisc Pro.

Do you have any source code example for this display (I bought 128x64 Oled and 128x64 Ks0108)

My best regards,

Sérgio Pinheiro

MichelJasmin
- 6th March 2015, 03:47
All the displays have the same commands set which makes code portable. The text ones have less commands.
All the commands must be terminated by CR (13) or null (0), this is probably your problem.

Go to http://www.digole.com/ and download the user manual.

Here is a simple example:



OLED_BAUDRATE con 84 '9600
OLED var PORTA.5 'serout2 pin


'Allow time for the display to initialize.
'You can download (just once) your own graphic or a set of commands as a splash screen. Make nicer devices!
'The splash screen is displayed right at the power up so you won't get a black screen for the initialisation time.
PAUSE 1000

'CurSor off
serout2 OLED, OLED_BAUDRATE, ["CS", 0]

'CLear screen
serout2 OLED, OLED_BAUDRATE, ["CL", 0]

'TT command to display a TexT string
'Display Hello world
serout2 OLED, OLED_BAUDRATE, ["TTHello world", 0]

'TRT command to move text cursor to next line(call Text ReTurn)
serout2 OLED, OLED_BAUDRATE, ["TRT", 0]

'Set Font 10
serout2 OLED, OLED_BAUDRATE, ["SF", 10, 0]

'Display Hello world again!
serout2 OLED, OLED_BAUDRATE, ["TTHello world again!", 0]


I'll share more with my "fun project". I'm just too busy...


The KS0108 doesn't have a backpack, you canget one there http://www.digole.com/index.php?productID=535

srspinho
- 8th March 2015, 20:44
Hello Victor,

I was making some tests with the modules I bought some time ago and the code provided on last post.

Well, the 1.3" OLED display worked with the code. I just connected the VCC, GND and DATA pins to my pic 16f876A an it worked, displaying the "Hello World" messages.

But, the messages keeps blinking on the Screen and, if add an "END" command at the of the code, the displays does not show the messages.

Have you an idea why the messages keeps blinking all the time ?

Another doubt is regarding the commands detailed on the user´s manual :

For example : If I want to draw a rectangle, I have to use the command :

DRBBBB ==> Draw a Rectangle, 4 B are: X,Y(left top), X,Y (right, bottom) where B is byte.

I think I missed something : I the picture bellow, showiung the OLED display, I have :

serout2 OLED, OLED_BAUDRATE, ["DR2299", 0] which makes no sense for me. I have to admit that I did not understand the BBBB notation.

Could you, please, give another example ?

Changing the display to a KS0108 with the backpack, I used the same code and connected the VCC, GND and the RX/SDA, SDI pin but, it did not work. The packpack is being used like in the pictures, without any additional config. I was just soldered on the KS0108.

Thank you fo the help !

Regards,

Sérgio

MichelJasmin
- 9th March 2015, 01:13
The BBBB notation mean byte, byte, byte, byte. You must write it this way:



serout2 OLED, OLED_BAUDRATE, ["DR", 2, 2, 9, 9, 0]


The coordinates 0,0 are on the top left. For a 20x15 rectangle on the top left:


serout2 OLED, OLED_BAUDRATE, ["DR", 20, 15, 0, 0, 0]


On the page for the back pack (http://www.digole.com/index.php?productID=535)


jumper 7: short both for KS0108.

The serial data is sent to the pin "RX/SDA".


HTH