Scrolling thermo - Page 2


Closed Thread
Page 2 of 2 FirstFirst 12
Results 41 to 56 of 56
  1. #41
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    Do you mean how do you display 4 digits on an 8x8 display without scrolling? That I don't think you can do and still be able to read it.

    Maybe I just don't understand the question
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  2. #42
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    Sorry for my poor english...
    So, If set tens hour : on matrix appears (without scrolling) tens hour digit only.
    If set hour : on matrix appears (without scrolling) hour digit only.
    etc, etc.
    Otherwise I can't setting the clock, because I don't see what happens ...

  3. #43
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    I DID IT !
    Full working () version of scroll-thermo-clock, using PIC16F877A. With buttons for setting hours/minutes !
    Enjoy !

    LE : The answer on my previous question:
    Code:
        portb=0
        portd=0
        pause 1
        FOR counter = 0 TO 4
            READ oraa*5+counter,leddata [counter]    
        NEXT 
            PORTB=%11111111
            PORTD = 1
            FOR counter = 0 TO 4
               PORTB = leddata [counter]       
               PORTD = PORTD * 2
            leddata [counter] = leddata [counter+1]
            NEXT
    Attached Files Attached Files
    Last edited by fratello; - 21st October 2011 at 14:35.

  4. #44
    Join Date
    Aug 2010
    Location
    Maryland, USA
    Posts
    869


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    Awesome!!!!!!!!
    -Bert

    The glass is not half full or half empty, Its twice as big as needed for the job!

    http://foamcasualty.com/ - Warbird R/C scratch building with foam!

  5. #45
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    Bug of setting hours (23-->0) solved :
    Code:
                    '    Decrement Units Hours
                    '    ---------------
            If CounterC=1 then
                if setdechour=2 then
                  IF SetHour=0 THEN
                     SetHour= 3
                     else    
                     SetHour=SetHour-1
                  Endif
                else
                  if sethour=0 then
                    sethour=9
                    else
                    sethour=sethour-1
                  endif            
                endif
            endif
    and
    Code:
                    '    Increment Units Hours
                    '    ---------------
            If CounterC=1 then
                if SetDecHour=2  then
                    if SetHour=3 then
                        SetHour=0
                    else
                        SetHour=SetHour+1
                    endif
                 else
                    if SetHour=9 then
                       SetHour=0
                    else
                       SetHour=SetHour+1
                    endif         
                Endif    
           endif
    This is it ! Best regards !
    Last edited by fratello; - 21st October 2011 at 19:57.

  6. #46
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    Just connect RD7 to matrix and having 8 columns instead 7 . No software update required.Name:  update (Custom).jpg
Views: 1905
Size:  65.4 KB

  7. #47
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    Soft update : if hour < 10 then not show first 0.
    Code:
    if oraa = 0 then
        FOR counter = 0 TO 4
        leddata [counter+41] = %11111111
        next
        else    
        FOR counter = 0 TO 4
            READ oraa*5+counter,leddata [counter+41]      'stores tens hours digit in leddata locations
        NEXT
    endif

  8. #48
    Join Date
    Feb 2007
    Posts
    55


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    I use 4k7 pullup resistors on the I2C bus, as i read somewhere that its a bit fussy with 10K....dont know how true this is

  9. #49
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    Now I intend to use two 5x7 led matrix, since some ports of PIC (16F877A) are free...
    Please, I need help : how can making scroll in this case ?
    Note : PortB are lines (7) ; PortC are columns from 0 to 7 ; PortD are columns from 8 to 15.
    Attached Images Attached Images  
    Last edited by fratello; - 26th October 2011 at 19:11.

  10. #50
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    I found a way...but I think it's not the BETTER way .
    Code:
        '
        '    Display RTC & temp.
        '    -----------
    LOOPing:
    FOR scroll = 0 TO 70
        FOR scan = 0 TO 7
            PORTB=%11111111
            PAUSE 1
            PORTc = 1 
            PORTd = 1
            FOR counter = 0 TO 15
                  PORTB = leddata [counter]
                  pause 1
                    if counter > 7 then      
                        PORTD = PORTD * 2
                    else
                        portc = portc * 2
                    endif 
            NEXT
        NEXT        
        FOR counter = 0 TO 70
            leddata [counter] = leddata [counter+1]
        NEXT
    NEXT
    LED's on column 7 (PortD 0) are, sometimes, on ... What @##%$@ is this ?
    Attached Images Attached Images  

  11. #51
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    Thanks for making this an article!
    http://www.picbasic.co.uk/forum/cont...ng-thermometer
    Dave
    Always wear safety glasses while programming.

  12. #52
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    My first working variant of scroll-thermo-clock :
    Used : 16F877A, DS1307, home-made LED's matrix (7x7) and DS18B20 (missing in video, don't have anyone ).
    Different code from previous example (because of my custom matrix). Enjoy !

  13. #53
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    There was a problem with the web site when the article was first published. It appears to be fixed now.

    Thanks Dan for re-posting the article.

    http://www.picbasic.co.uk/forum/cont...ng-thermometer
    Dave
    Always wear safety glasses while programming.

  14. #54
    Join Date
    Apr 2010
    Posts
    11


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    Quote Originally Posted by fratello View Post
    Just connect RD7 to matrix and having 8 columns instead 7 . No software update required.Attachment 6076
    what are the values of X1 and X2,?

  15. #55
    Join Date
    Dec 2008
    Location
    Ploiesti, ROMANIA
    Posts
    579


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    X1=32768 KHz (see app note for DS1307) ; X2=4MHz (see second line of program file).

  16. #56
    Join Date
    Apr 2010
    Posts
    11


    Did you find this post helpful? Yes | No

    Default Re: Scrolling thermo

    thanks lot for the fast reply n giving all instructions to build this without hiding..
    by the way ur final video shows 0.0 c because missing of thermo saensor??
    can u upload a new video with full functionality..?
    reg
    krish69

Members who have read this thread : 0

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

Posting Permissions

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