Displaying Videos and Images on 4Dsystems uOLED Serially


Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 40 of 68
  1. #1
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62

    Default Displaying Videos and Images on 4Dsystems uOLED Serially

    I have to start by saying that those guys at 4Dsystems really know what they are doing. they have made it very easy to display video, images, and even animated gifs on their Displays.

    - For my setup ill be using the µOLED-128-G1(SGC)
    Note: the (SGC) indicates that this is a serial display and has the 4Dsystems Pmmc firmware loaded.
    - My Controller board consists of a PIC16F877A , 5 Button dedicated RF interface (Key Fob), including Ports B,C,E brought out to the board edge.
    - Also in this setup is the Parallax RFID reader (serial). Radio shack has these on sale for $5. i have a few

    Ok. Lets start with Graphics Composer. Once you download your free copy of Graphics Composer Software, you must read the Graphics Composer manual. Unfortunately there are no links to the manual it is zipped with the software. It fully details how to get images onto your Micro SD card (uSD). There are 2 ways to get your images/videos to your uSD card. plugged directly into you computer as a Drive (recommended). or serially through the Display (which is very very slow).

    I chose to plug it into my computer. Very important to NOT "Quick Format" as it needs to write to the boot sector. when you get all your files loaded via the Device>Load it will give you a TXT icon that you can click on. This TXT file (Below) is the most important part. it basically just hands you the code that you just need to copy and paste into Pic Basic (Pro).

    Code:
    ===========================
    SERIAL-PLATFORM OUTPUT FILE
    ===========================
    
    ---------------------------------------------------------------------------------------
    File "Danger_Laser_Operating.gif"
    Sector Address 0x001000
    Width = 128 Height = 128 Bits = 16 (Location and size may be adjusted depending on image size
                                         and Size Mode selected)
    
    Display Image from Memory Card (Serial Command):
    Syntax:
    @, I, x, y, width, height, colourMode, SectorAdd(hi), SectorAdd(mid), SectorAdd(lo)
    Data:
    0x40, 0x49, 0x00, 0x12, 0x7F, 0x5B, 0x10, 0x00, 0x10, 0x00
    You will need to change all the "0x" to "$" in order for PBP recognize the values. This example only shows one file. the text file would grow depending on how many items you put on your micro SD Card.

    below is an example of PBP Code with the Data given from the TXT File above. This Code basically Turns on a laser and tells the display to show the file "Danger_Laser_Operating.gif" at Sector Address 0x001000.

    Code:
    DEFINE OSC 20
    
    '***************************** RF COMMUNICATION ********************
    
    ADCON1=7
    CMCON=7
    TRISA.0 = 1         ' These lines of code setup my RF Button Link
    TRISA.1 = 1
    TRISA.2 = 1
    TRISA.3 = 1
    TRISA.4 = 1
    
    Symbol Centerbtn  = PORTA.0 
    symbol UP            = PORTA.1       
    symbol Right         = PORTA.2
    Symbol Down        = PORTA.3  
    symbol Left          = PORTA.4 
    
    '*************************************************  *****************
    X               var     byte
    
    '*************************************************  *****************
    Symbol PWRLED  = PORTB.2
    symbol Laser       = PORTD.7        'Port D Output is Driven by a ULN2803 8 Channel Transistor Array
    symbol LCD         = PORTC.0
    
    pause 1000
    
    serout2 LCD,84,[$55]      ' uOLED Initialize
    low laser
    high pwrled
    
    '*************************************************  *****************
    
    Reset:
    gosub cls
    
    Main:
    If centerbtn = 1 then activate_Laser  'press center button to go to activate Laser Loop
    goto Main
    
    '****************** LASER Routine *************************
    
    
    Activate_Laser:
    if centerbtn = 1 then activate_laser        ' Release button to activate
    serout2 LCD,84,[$40, $49, $00, $12, $7F, $5B, $10, $00, $10, $00]    'The code given to us from Graphics Composer
    high laser
    
    Laser_On:
    if centerbtn = 1 then Deactivate     'Press Center button to go to Deactivate loop
    goto laser_on
    
    Deactivate:
    if center = 1 then Deactivate           'Release to Deactivate Laser
    low laser
    gosub cls
    goto main
    
    '****************** CLEAR SCREEN ************************************
    
    CLS:
    for x = 0 to 2
    serout2 lcd,84,[$45]
    next
    return
    Here is the Video of the working code above.





    You will notice that these videos also Implement my RFEFX Logo which is called in a separate routine

    Here are some other code / video examples:

    Code:
    define OSC 20
    
    
    '********************** RFID Tag Data *****************************
    
    
    Tag1 DATA  "0415146D53" '0415146D53   ' 2 cards registered...
    Tag2 DATA  "30700D48A5" '30700D48A5
     
    LastTag         CON     2
    tagNum          VAR     byte                    ' from EEPROM table
    idx             VAR     Byte                    ' tag byte index
    char            VAR     Byte                    ' character from table
    buf             var     byte(10)
    X               var     byte
    
    '*************************************************  *****************
    Symbol PWRLED  = PORTB.2
    symbol LCD     = PORTC.0
    Symbol rfidin  = PORTB.4
    Symbol RFID    = PORTB.5
    pause 1000
    
    serout2 LCD,84,[$55]      ' uOLED Initialize
    high RFID
    high pwrled                  'Software controlled Power LED (if this LED is not on at load check your code)
    
    '*************************************************  *****************
    
    Reset:
    gosub cls
    pause 100
    logo:
    gosub Logo_png             
    
    Main:
    low rfid
    serin2 rfidin,396,1000,Logo,[WAIT(10),str BUF\10]                      '2 Sec Timeout for Logo refresh
    high RFID
    
    '**************** RFID Check Tag Routine *****************
    
    Check_List:
    FOR tagNum = 1 TO lasttag
    FOR idx = 0 TO 9
    READ (((tagNum - 1) * 10) + idx), char        'The Tricky Order of Operation
    IF (char <> buf(idx)) THEN Bad_Char
    NEXT
    GOTO Tag_found
    Bad_Char:
    NEXT
    
    Bad_tag:
    serout2 LCD,84,[$40, $56, $00, $00, $80, $80, $10, $21, $00, $D4, $01, $54, $2E]  
    PAUSE 8000         ' Delay the duration of the length of the File on the uSD card, in this case 8 sec.
    GOTO reset
    
    Tag_Found:
    serout2 LCD,84,[$40, $56, $00, $00, $80, $80, $10, $21, $00, $D4, $01, $1F, $2E]
    pause 8000          ' Delay the duration of the length of the File on the uSD card, in this case 8 sec.
    GOTO reset
    
    
    
    
    '************************* LOGO Routine ********************************
    
    Logo_png:
    serout2 lcd,84,[$40, $49, $00, $30, $7F, $1F, $10, $01, $8A, $EE]
    return
    
    '************************** Clear the LCD ****************************
    
    CLS:
    for x = 0 to 2
    serout2 lcd,84,[$45]
    next
    return




    Code:
    DEFINE OSC 20
    
    '***************************** RF COMMUNICATION ********************
    
    ADCON1=7
    CMCON=7
    TRISA.0 = 1         ' These lines of code setup my RF Button Link
    TRISA.1 = 1
    TRISA.2 = 1
    TRISA.3 = 1
    TRISA.4 = 1
    
    Symbol Center  = PORTA.0 
    symbol UP      = PORTA.1       
    symbol Right   = PORTA.2
    Symbol Down    = PORTA.3  
    symbol Left    = PORTA.4 
    
    '*************************************************  ******
    
    Symbol PWRLED  = PORTB.2
    symbol LCD     = PORTC.0
    pause 1000
    
    serout2 LCD,84,[$55]      ' uOLED Initialize
    high pwrled                  'Software controlled Power LED (if this LED is not on at load check your code)
    
    '**************************************************************
    Reset:
    GOSUB CLS
    PAUSE 100
    Logo:
    GOSUB Logo_png
    
    Main: 
    If Left = 1 then Minions             ' Press Key Fob left button to start play loop
    goto Main
    
    
    '********************** Play Video Routine ********************
    
    Minions:
    if left = 1 then Minions       ' Release left button to Play Video
    serout2 lcd,84,[$40, $56, $00, $00, $80, $80, $10, $21, $04, $3C, $00, $10, $2E]    'Graphics Composer Data
    pause 38000                'Pause the duration of the loaded file (38 Sec)
    goto reset
    
    '************************* LOGO Routine ********************************
    
    
    Logo_png:
    serout2 lcd,84,[$40, $49, $00, $30, $7F, $1F, $10, $01, $8A, $EE]      'Graphics Composer Data
    return
    
    '************************** Clear the LCD ****************************
    
    CLS:
    for x = 0 to 2
    serout2 lcd,84,[$45]
    next
    return

  2. #2
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,955


    Did you find this post helpful? Yes | No

    Default

    Great post!

    I was going to promote it as article, but got second!

    Thanks a lot. Now only if we could add sound...

    Ioannis

  3. #3
    Join Date
    Aug 2008
    Location
    Portugal
    Posts
    240


    Did you find this post helpful? Yes | No

    Default

    Thank you for this post RFEFX!
    Thanks and Regards;
    Gadelhas

  4. #4
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62


    Did you find this post helpful? Yes | No

    Default lol !

    Quote Originally Posted by Ioannis View Post

    Now only if we could add sound...
    Thats funny you should Mention that.... because im already working on it.

    I've Already ordered the 4Dsystems SOMO

    I will post a Project when i get it.

    Cheers!

  5. #5
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,955


    Did you find this post helpful? Yes | No

    Default

    Yes, I have seen the SOMO, I just meant to have the sound from the Video.

    OK, I know I ask too much...

    Ioannis

  6. #6
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    I picked up a µLCD-144(GFX) display yesterday. The reason I got this instead of the µOLED-128-G1(SGC) is that it was available locally for US$32. The main differences is that it is a backlit TFT LCD (instead of OLED) and it can be used standalone or with an MCU. You only need an RS232 (or USB to RS232 bridge) connection to program it. It comes with The 4D-Workshop3 IDE which provides an integrated software development environment for GOLDELOX-GFX2 processor and associated display modules. The IDE combines the Editor, Compiler, Linker and DownLoader to develop complete 4DGL application code. All user application code is developed within the Workshop3 IDE.
    Name:  TEST-6A.jpg
Views: 5972
Size:  96.7 KB
    Here are 2 demos that I did with the abovementioned development package. The first is a short clip of a PBS documentary. The video file is stored in the attached micro SD card. The actual code to display the video the LCD takes just 2 lines. The second demo is a simple analog clock.

  7. #7
    Join Date
    Nov 2006
    Location
    Murrieta, CA
    Posts
    62


    Did you find this post helpful? Yes | No

    Question .....

    rmteo,
    Thank you for posting your project.

    The only difference i see between your display and any of the µOLED-XXX-G1 series is the price and the TFT LCD. All 4Dsystems displays are capable of being standalone.. in my article above i stated that i had the "Pmmc Firmware Loaded." with a quick firmware change to the 4DGL firmware the µOLED-128-G1 becomes a standalone module as it has the GOLDELOX processor.

    This article was just a PIC based serial approach to the display.

    Cheers !
    Last edited by RFEFX; - 15th December 2010 at 18:49.

  8. #8
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    Just picked up one of these 3.2in. 4DGL-Platform LCD-TFT Modules (with Touch Screen) for $79. It is 4DGL with a PICASSO processor. Are you sure you can just change/swap back-and-forth between PMMC and 4DGL firmware on these displays?

    They make much better videos than I do, so here is theirs.
    Last edited by rmteo; - 16th December 2010 at 01:21.

  9. #9
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default

    I found the answer to my question here GOLDELOX-SGC - applies to both GOLDELOX AND PICASSO processors.

    NOTE: The architecture of the base GOLDELOX device is such that it can be reconfigured either as the GOLDELOX-SGC or the GOLDELOX-GFX2. This chip-level configuration is easily achieved by re-programming the chip with the appropriate PmmC file.

    * GOLDELOX-SGC : for Serial Platform (slave graphics controller)

    * GOLDELOX-GFX2: for 4DGL Platform (stand alone host graphics controller)

  10. #10
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Hello,

    i'm also interesting on the 3.2in. 4DGL-Platform LCD-TFT, and the RFID code.

    First of all i would like to order one of the 3.2in 4DGL. Is it easy to program?

    Does the screen comes with a usb adapter for programming?

    on the following page i see and serial displays.

    http://www.4dsystems.com.au/products.php

    which is the ones can be easier controlled?

    Dear Mr. RFEFX if you complete the code with sound we would like to see also an example.

    thanks.
    Last edited by astanapane; - 11th May 2011 at 08:00.

  11. #11
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    sorry for my questions in here.

    I would like to ask you about the GFX and SGC.

    as from here,
    SGC PmmC:
    By loading the SGC (Slave Graphics Controller) PmmC, the module is 'ready to go' by simply connecting it to the serial port of your favourite micro-controller, and sending serial commands to it.
    The Serial Command Set for GOLDELOX can be found here:
    GOLDELOX-SGC-COMMANDS-SIS-rev3


    GFX PmmC:
    By loading the GFX (Stand-Alone Graphics Controller) PmmC, the module is then like a microprocessor which you program, using the 4DGL language (very similar to C), to control the internal graphics and external interfaces.
    The 4DGL language command set and functions for GOLDELOX can be found here:
    GOLDELOX-GFX2-4DGL-Internal-Functions-rev2
    I understand that if i get the GFX then i need to right a program in 4D language which i dont wont.

    If i get the SGC, then i only need to control my PIC with inly serial out port.

    so if i understand, i can get the loaded pictures or Videos from the SD that is located in the LCD and display it.

    yes yes i know i do ask a lot of questions, but sorry i'm not really a programmer. I just want to use simple functions and code in order to call the files from the SD card, using the picbasic and display it to the LCD.

    thanks.


    after all i also found that
    http://www.sparkfun.com/products/10090

    this is with GFX but the processor is GOLDELOX. According to that http://www.4dsystems.com.au/prod.php?id=71 can be modified it to SGC?
    Last edited by astanapane; - 11th May 2011 at 13:51.

  12. #12
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    You are right that with SGC, you control the display with a serial port (PIC, PC or any other serial source). To get a complete list of SGC commands, download the 116-page manual here http://www.4dsystems.com.au/download...S-SIS-rev6.pdf

    Note that no matter which version you get (SGC or GFX), you can switch from one mode to the other by changing the PmmC file. At any time, you can reload the PICASO chip with either PmmC which allows you to explore the differences between the two configurations.

    For example, to display a video stored on the SD card, you send a series of bytes to the display as in the example below.
    Attached Images Attached Images  
    Last edited by rmteo; - 11th May 2011 at 15:41. Reason: -- changed to more appropriate example.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  13. #13
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    that is perfect.

    I will place an order for a small ulcd first 1.44" and then i will try a bigger one.

    thanks a lot.

  14. #14
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    The main difference between the large and small displays, besides size, are

    1. No touch screen.
    2. Less memory.
    3. Subset of commands.

    I have used both, and they work well. The reference manual for the small display is here http://www.4dsystems.com.au/download...S-SIS-rev4.pdf
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  15. #15
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    i see i ok for programming but when i get it i might need some help.

    thanks for your help.

    i will place the order for the small 1,44 tomorrow

  16. #16
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Hello,

    i see that the pins for controlling serialy the 1,5' Oled Display http://www.sparkfun.com/products/8537 is the VCC, TX, RX, GND, RESET

    So do i need to use a microcontroller with TX, RX pins? The RX is needed?

    On the codes that Mr. RFEFX posted, i think he used only the TX on the controller.

    on the next line

    Code:
    serin2 rfidin,396,1000,Logo,[WAIT(10),str BUF\10]
    he used the serin for RFID only, the logo command in there goes to serout line

    Code:
    serout2 lcd,84,[$40, $49, $00, $30, $7F, $1F, $10, $01, $8A, $EE]
    please could you tell me if i'm wrong. If yes then what do i need the RX for?

    thanks.

  17. #17
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Is RX needed? That is why I pointed you to the reference manual for both displays.

    You can get by without using RX but I would highly recommend that you use it. Take a look at post #12 - you will see that the display returns an ACK if the command is successful, NAK if unsuccessful. This can make your application run more effectively.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  18. #18
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    rmteo, thanks once more for your help.

    That's why i ask you, now i see the response from the RX.

    I have some SD cards here, and i would like to format them in windows 7 64bit.

    I read some forum and manuals but i didnt see the format of erasing the microsd.

    I did the following configuration.

    Capacity : 1,83Gb
    file system: FAT (default)
    Alocation unit size: default
    Format option: -

    the only thing i found is the following migh also be interesting for you.

    http://www.picaxeforum.co.uk/showthread.php?t=13971
    Last edited by astanapane; - 12th May 2011 at 16:37.

  19. #19
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Those parameters are correct for a 2GB card under Win7. Note that both displays use micro-SD cards - not SD.

    Make sure you download the Graphics-Composer Software Tool: This is a free software tool for Windows. This software tool is an aid to composing a slide show of images/animations/movie-clips (multi-media objects) which can then be downloaded into the memory card that is supported by the GOLDELOX-GFX2. The multimedia objects can then be called within the user application 4DGL program.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  20. #20
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    hmmm it didnt work

    i will post the problem in a bit.

    I did format the usd. Then i opened the graphic composer tool.

    and i did the following configuration.

    on the device load option --> serial command platform and the drive is the letter G of the sd

    when i try to load now to the sd i get an error.
    Attached Images Attached Images    
    Last edited by astanapane; - 12th May 2011 at 18:26.

  21. #21
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    some others have the same issue as me

    http://4d.websitetoolbox.com/post?id=2625580

    i dont know if it has to do with windows 7.

  22. #22
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    This is a 4D issue and you should see if it can be resolved over at the 4D forums. I use a 4GB SDHC uSD card and it works for me under 64-bit Win7.
    Attached Images Attached Images  
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  23. #23
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Sorry for getting out of the topic here. I think though that has to do with the configuration of the Oleds from 4d so it would be helpful for everyone.

    What happend to me is, when i format it, it doesnt like to write the graphic composer on the uSD.

    I took the uSD out of the computer port and then i placed it back. Windows asked me to format the card. I just pressed cancel.

    Then i opened the program again and i tried to send a picture. It was ok then and it seems that the file sent to the card.

    But i cannot see what is happening to the card since is not formatted.

    I will try to buy an other uSD and i will also try a windows XP computer and let you all know.

    thanks for your help.

  24. #24
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Hi all again,

    i download from the 4D systems the new graphic composer 3.

    This is how it looks like.See attached picture (graphic comp3)

    then we click on add on the left bottom and we import a picture. (see attached pic1)

    then we click on save and we create the name of our fiel, then we click on built see attach, and we create a file cgs. After that a new window opens and we have some options.

    I used the uSD_RAW FAT because i didnt know what else to use.

    I havent received yet the 4D1,5 OLED but i'm trying to see how the uSD work.

    after this configuration i cannot see the uSD file in windows, because it is as RAW FAT save.

    If you use the tools from 4D that you can make partitions on the uSD then you will be able to use both RAW and normal windows fat system.

    I cannot go further since i'm still waiting for the display.

    When i get them i will keep you all updated.

    The above configuration is for the SCG mode displays.
    Attached Images Attached Images      
    Last edited by astanapane; - 14th May 2011 at 09:24.

  25. #25
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    hello all again,

    just came back from Saudi, and just got my precious small 1,5' oLED and the 1,44' uLCD.

    Now i would like to play with them since is the first time i get this kind of component.

    First of all i would like to talk again about the uSD and the files stored in there.

    I have 2GB uSD and i have formated in format 16. Then i open the RMPET tool from 4D systems and i manage to use 50% for uSD RAW.

    Then the program asked to remove the uSD and place back again. After this process windows asking to format again the 50% of the uSD.

    I did that and now i can only see the 50% of the uSD.

    My question is:

    Do i need to store the pictures on the uSD before i send the to the uSD RAW partition space with the GRAPHIC COMPOSER.

    To be more clear my question is, if i should manually first copy and paste the files in the visible 50% partition space, and then i open the graphic comsposer and via the program to send the pictures with uSD RAW.

    By the way, i have plugged the uLCD via serial usb converter to my laptop and with the FAT controller i played a little bit with pictures and fonts.

    very nice display.

    Thanks for any help in advance.

  26. #26
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Hi i'm stack in a bit on the connections and programming my microcontroller.

    as from the schematic of 4D systems the display must be connected with the 5V,GND,RX,TX,RESET.

    I will not use the TX from the oLED to RX to microcontroller, but do i need the RESET also? on your programs did you use the reset pin and connected to microcontroller?
    Attached Images Attached Images  

  27. #27
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    i manage to fix it.

    it is very easy.

    My problem is some commands i cannot make it work.

    i try to right a string serialy like the following but i cant.

    I know somewhere i make a mistake could you help please?

    serout2 portb.2,84,[$53,$00,$00,$01,$00,$00,"Hello",$00]

    I think that there is somewhere a big mistake.

    Regards

    I fixed it with the command start with $73 for string TEXT. It is very easy to do.

    thanks!!!
    Last edited by astanapane; - 28th May 2011 at 18:52.

  28. #28
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,955


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Satisfied with the LCD in general?

    Ioannis

  29. #29
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Hi Ioannis,

    i manage to display pictures and text.

    i used the SCG mode becase i found it easier to control.

    To be honest 4d systems save me from a microcontroller such as the PIC18F4550.

    Now i use the pic16f88.

    i will post my code here the folloing days.

    regards

  30. #30
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    as from the display,

    it is small but very nice. You can use it in small projects and text is visible.

    For my project i need the 3,2 inch display. I know it is expensive but i have to use the touch also.

    regards,

  31. #31
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    you can see here my video.



    i will post the code later on. It is based on the code you provided with a small changes.

    Regards,

  32. #32
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    i have noticed that when i power the system with only one 5 volt regulator, it gets very hot.

    The regulator is about 1Amp. Is it possible to get so hot?

    I think that the pic16f88 the Display and the RFID - 12 does not get more that 700 mA.

    As from the datasheet of the Dipslay, the minimum is 500 mA. Is that means that the backround is black color?

    There is also an option to program the display for low power and sleep mode.

  33. #33
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,955


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    What is the input voltage to the 5V regulator?

    Suppose it is 12V. Then 12-5=7 volts drop on the regulator.

    With a 0,7A current this gives a 0,7 x 7= 4,9 Watts of heat on the regulator. Too much! That is why it gets hot.

    Here is a very good link to calculate heat sinks. Read it all as it has very good points.

    http://sound.westhost.com/heatsinks.htm

    To quickly end with your problem, put the regulator on a large aluminium heatsink,say 4x4x2 cm or lower input voltage to 8 volts.

    Ioannis

  34. #34
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Hi Ioannis,

    i will try to drop the input voltage to see what will happend.

    You are right, the input voltage at the moment is 12V. Which means that we have drop of 7V.

    The current though from the display is too high. I dont understand why for this kind of small lcd.

    I will also try a heatsink.

    thanks a lot.

  35. #35
    Join Date
    May 2007
    Posts
    604


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Quote Originally Posted by astanapane View Post
    For my project i need the 3,2 inch display. I know it is expensive but i have to use the touch also.
    I have one of the 3.2 inch displays that I no longer need. Let me know if you are interested.
    Why pay for overpriced toys when you can have
    professional grade tools for FREE!!!

  36. #36
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    yes i am.

    please pm me for the price please

  37. #37
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    apart from that (High heat on the voltage regulator), is there anyone that manage to use the display off command?

    when i used the command, i managed to power off the dipslay. But i couldnt powered up again. It seems it doesnt work.

    As from my measurements, the current of the circuits is 1,3 A. This is too much.

    Only the display gets about 0,7A to 0,8A when you use all the pixels in white color. (very bad).

    That's why it is needed to use the power off comands.

    Regards,

  38. #38
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    3,955


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    Maybe there is a sleep command?

    Power off means that it may not communicate again, as it is ... off!

    Ioannis

  39. #39
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    hi Ioannis,

    there is a sleep command but i think it does not turn the display backlight off.

    I will try it and keep you updated.

    Regards,

  40. #40
    Join Date
    Oct 2010
    Posts
    411


    Did you find this post helpful? Yes | No

    Default Re: Displaying Videos and Images on 4Dsystems uOLED Serially

    what i have noticed is:

    when you use the sleep mode ($5A) it turns off only display like a clear lcd command.

    when you use the display off command $59 it completes shut down the display.

    i managed to turn on the diplsay again. I'm happy but still the program has a lot of bugs, because i dont know if this procedure is safe for the display.

    what i mean:

    first i initialize the display by the command $55 which is also the autobound.
    this has to be paused for approximatelly 200ms or more. I have put it on 1000 ms.

    Then after all i use commands to display pictures.

    The first picture is the logo.

    In order to shut down the display, i use the $59,$00 inside the gotosub logo, and then i turn off the display.

    Then when i use a tag to RFID reader, inside the tag_found command i use the command $59,01 to turn on the display.

    i will upload a video so you understand what i do. Do not panic for my bugs.....i know there are a lot but have in mind that i'm not a programmer and i dont know how to use the interrupt command at all.

    thanks for understanding.

Members who have read this thread : 0

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts