Shop OBEX P1 Docs P2 Docs Learn Events
Need help with 16/14 segment led display code — Parallax Forums

Need help with 16/14 segment led display code

jknightandkarrjknightandkarr Posts: 234
edited 2010-07-21 22:29 in Propeller 1
obex.parallax.com/objects/545/
The above is the code I'm using only added 4 more digits with a 2nd PPDB which had been damaged & now otherwise worthless.

The problem is 8 of 10 characters work as expected, however the 2 on the far right does not. They both display jarbled junk. On the program all I had changed is the paramaters for the pin set up from 6 to 10 on the two lines at the top. All other characters display correctly, so I know it's can't be a wiring issue. Can anyone help me on this?

Joe

▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
I'm going insaine. It's SOOOOOO much fun. lol

Comments

  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-15 21:18
    DSC00881.JPG
    This is the problem. It seams to be combining characters into those 2 sections. I tried adding 12 characters, but get 4 char like that instead of 2. Maybe Steve Stuart the guy who wrote it could chime in? I tried moving the I/O pins around but no help. I'm at a loss here.

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-16 03:50
    Anyone?

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-16 16:23
    So there's no body here who could possably help me with this? I've started looking over every single line of code, and so far can't find anything.

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol

    Post Edited (jknightandkarr) : 7/16/2010 4:28:15 PM GMT
  • SSteveSSteve Posts: 808
    edited 2010-07-16 20:33
    Hi, Joe:

    I haven't looked at the 16-segment object, but I wrote the 7-segment object in the OBEX. Is it possible that the digit select pins aren't being controlled correctly? It looks like the segments on those last two characters are a union of all the segments from all the other characters. That would happen if those select pins were always low.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    OS-X: because making Unix user-friendly was easier than debugging Windows

    links:
    My band's website
    Our first album on the iTunes Store
    Our second album...
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-17 03:43
    It looks like it's doing that to me as well. I'll look at the code that's producing the display & check it out. Thanks.

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-17 04:48
    Well so far nothing there helped, I tried adjusting values in the 16 seg program & adusted the charaters, but not the screwed up ones. I'll keep looking though.

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-17 05:17
    After changing 3 byte variables to word ones in the PRI ShowSTR block. the screwed up parts vanished, however all the text looks alien now. H has been replaced with $, so if that helps someone figure out what I need to adjust here, cause I'm not sure what needs adjustment, cause I tried adjusting several values & not even remotely straightened out yet.

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol
  • Duane DegnDuane Degn Posts: 10,588
    edited 2010-07-17 23:24
    Can you post your code and your wiring?

    I just tried the object you link to and it works fine.· I modified it for 10 digits without too much trouble.· It displays fine on the two PPDBs I have.

    Duane
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-18 03:16
    Wonder why I'm having issues then? I'll redownload it, maybe it's been updated since I got it. I'll post it all alittle later, I gotta get it off of my laptop.

    Joe

    I just redownloaded it, my version is 1.3, I just got 1.4. I'll try it now.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol

    Post Edited (jknightandkarr) : 7/18/2010 3:22:09 AM GMT
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-18 04:03
    I just tried ver 1.4 & same problem. Checked my wiring, and I don't think that's the problem. I dropped the count to 8 & the display is fine.

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol

    Post Edited (jknightandkarr) : 7/18/2010 4:40:31 AM GMT
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-20 17:22
    By what user name does Steve Stuart go by? I'll talk to him about this program & see if he can help since he wrote the program. I don't know what it is, but I can't figure out why my right 2 digits are stacking all the other characters togeather & displaying it on those 2 displays. I've continued using a different way for the moment using
    outa[noparse][[/noparse]9..0]:=%0000000000
    outa[noparse][[/noparse]26..10]:=%00000000000000000
    waitcnt(150_000+cnt)
    


    in a repeat loop setting each digit & the character in the outa sections. I've added a DAT area with all the letters & numbers already filled out, just using the ol variable bit to reduce program size. I've tried going through each section of the program Mr Stuart wrote & I can't seam to find the answer to my problem, so if he could pop up or if someone could tell me his board id it would be much appreciated. Thanks.

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol
  • hover1hover1 Posts: 1,929
    edited 2010-07-20 17:35
    You will find his post to the OBEX in this thread:

    http://forums.parallax.com/forums/default.aspx?f=25&m=411807

    Jim
    jknightandkarr said...
    By what user name does Steve Stuart go by? I'll talk to him about this program & see if he can help since he wrote the program. I don't know what it is, but I can't figure out why my right 2 digits are stacking all the other characters togeather & displaying it on those 2 displays. I've continued using a different way for the moment using
    outa[noparse][[/noparse]9..0]:=%0000000000
    outa[noparse][[/noparse]26..10]:=%00000000000000000
    waitcnt(150_000+cnt)
    


    in a repeat loop setting each digit & the character in the outa sections. I've added a DAT area with all the letters & numbers already filled out, just using the ol variable bit to reduce program size. I've tried going through each section of the program Mr Stuart wrote & I can't seam to find the answer to my problem, so if he could pop up or if someone could tell me his board id it would be much appreciated. Thanks.

    Joe
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-20 17:47
    Thanks.

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol
  • w8anw8an Posts: 176
    edited 2010-07-21 21:46
    Sorry I missed your original post, Joe. I don't make it to the forum every day. Your PM got my attention.

    I have made a change to the object and posted an update to the obex.

    Steve
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-21 22:19
    Oh no worries. [noparse]:)[/noparse]

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol
  • jknightandkarrjknightandkarr Posts: 234
    edited 2010-07-21 22:29
    Don't know what you changed in the coding, but it works PERFICT now.· THANKS! cool.gif

    Joe

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I'm going insaine. It's SOOOOOO much fun. lol
Sign In or Register to comment.