Displaying Videos and Images on 4Dsystems uOLED Serially


Closed Thread
Results 1 to 40 of 68

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132


    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

  2. #2
    Join Date
    Oct 2010
    Posts
    413


    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,

  3. #3
    Join Date
    Oct 2010
    Posts
    413


    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.

  4. #4
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

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

    here is the video of what the $59,$00 command does


  5. #5
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

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

    based on the above video i would like a little bit of help?

    as you see the first picture (the blue "star", actually it is a symbol,but anyway), it dissapear from the screen and then the screen goes off.

    I would like to do something but i dont really know how to use inrerrupt.

    I want to display this symbol every 5 seconds, and when the tag pass from the reader, to display the picture that corresponds to the tag.

    I think this can be done using interrupt but i have never used it and i have read some programs, but cannot understant.

    do you have any simple example using an led flashing and a button that interrupts the process?

    thanks for any help.

  6. #6
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

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

    Interrupts get fast and easy using Darrel's Instant Interrupts, no setting up registers, no latency of PBP interrupts. Which interrupt do you want to use? Look at the data sheet to see what is available for your chip and check out Darrel's webpage:
    http://darreltaylor.com/DT_INTS-14/intro.html
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  7. #7
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

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

    thanks for your help,

    i will check it out.

  8. #8
    Join Date
    Oct 2010
    Posts
    413


    Did you find this post helpful? Yes | No

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

    i've been trying to use the interrupt commands but i get a lot of errors. I used both files

    INCLUDE "DT_INTS-14.bas" ' Base Interrupt System
    INCLUDE "ReEnterPBP.bas" ' Include if using PBP interrupts

    First error i get is that micro assembler does not support 16F628a, and it is asking to use the MPASM for compiling.

    then if i use the MPASM i get again a lot of error like the attached pic.

    i dont understand why it says that cannot filnd the pic16f628a.

    here is also my code


    Code:
    '****************************************************************
    '*  Name    : TAG NUMBER.BAS                                    *
    '*  Author  : LEONARDO BILALIS                                  *
    '*  Notice  : Copyright (c) 2011 [LEONARDOS BILALIS]            *
    '*          : All Rights Reserved                               *
    '*  Date    : 11/6/2011                                          *
    '*  Version : 1.0                                               *
    '*  Notes   : this program allows you to see the                *
    '*          : Number of the RFID tag                            * 
    '*          :                                                   *
    '****************************************************************
    @ DEVICE PIC16F628a      
    Include "MODEDEFS.BAS"
    INCLUDE "DT_INTS-14.bas"     ' Base Interrupt System
    INCLUDE "ReEnterPBP.bas"     ' Include if using PBP interrupts
    CMCON = 7
    ;-----------------------------------------------------------------
    LED   VAR  PORTB.3
      
    ASM
    INT_LIST  macro    ; IntSource,        Label,  Type, ResetFlag?
            INT_Handler   TMR1_INT,  _ToggleLED1,   PBP,  yes
        endm
        INT_CREATE               ; Creates the interrupt processor
    ENDASM
    
    T1CON = $31                ; Prescaler = 8, TMR1ON
    @ INT_ENABLE  TMR1_INT     ; enable Timer 1 interrupts
    ;-----------------------------------------------------------------
    
    DEFINE OSC 8	'Set oscillator in MHz 
    DEFINE LCD_DREG PORTB  'define port to LCD
    DEFINE LCD_DBIT 4      'RB4 RB5 RB6 RB7 to D4 D5 D6 D7 display
    DEFINE LCD_RSREG PORTA 'RS on porta
    DEFINE LCD_RSBIT 0     'RS on porta.0
    DEFINE LCD_EREG PORTA  'Enable on porta
    DEFINE LCD_EBIT 1      'Enable  porta.1
    DEFINE LCD_BITS 4      ' 
    DEFINE LCD_LINES 2     'lines 2
    PAUSE 200             ' Stop 200ms
    ;----------------------------------
    LCDOUT $FE,1           ' power lcd
    Lcdout $FE,1,4
    lcdout $FE, 1," Copyright 2011"
    lcdout $FE, $C0,"Leonardo Bilalis"
    ;----------------------------------
    
    pause 1000
    low led
    pause 500
    high led
    pause 500
    low led
    pause 500
    high led
    pause 500
    
    ' -----[ Variables ]-------------------------------------------------------
    
    buf	    VAR	byte [10]' RFID bytes buffer
    tagNum	VAR	Byte	 ' from EEPROM table
    idx	    VAR	Byte	 ' tag byte index
    char	VAR	Byte	 ' character from table
    
    Main:
    pause 500
    lcdout $FE,1," Please use your"
    lcdout $FE, $C0,"Personal RFIDTAG"
    pause 500
    SERIN2 portb.1, 84, [WAIT($02),Str buf\10]
    pause 1000
    LCDout $fe,1, "TAG ID:"
    lcdout $fe,$C0, "NO: ", str buf\10
    pause 5000
    goto main
    
    '---[TMR1 - interrupt handler]--------------------------------------------------
    ToggleLED1:
    TOGGLE LED
    @ INT_RETURN
    if you have any suggestion please let me know.

    thanks a lot for your help.
    Attached Images Attached Images  

Members who have read this thread : 1

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