Shop OBEX P1 Docs P2 Docs Learn Events
3 digit 7 segment display — Parallax Forums

3 digit 7 segment display

SILVER777SILVER777 Posts: 13
edited 2008-07-25 21:20 in BASIC Stamp
well I searched through the forums and I couldn't find anything in particular that really helped me.

I'm trying to get a decimal number from 1-400 to tell me where in a 400 bit sequence a digital 1 occurred. I would like the data to be represented on 3, 7 segment displays. So I figured I would probably divide the results into each digit (one for the hundreds position, one for the tens position, and one for the ones position.) from 3, seven segment drivers such as 7447 or a motorolla 4511.

however I was hoping I would be able to use the bs2px24 to provide a more simplistic form of gathering that data to represent the information to me.

Any ideas????

Comments

  • FranklinFranklin Posts: 4,747
    edited 2008-07-22 04:19
    Have you gotten the program to give you the position of the one yet? After that displaying that position should be fairly easy depending on the hardware you choose.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • SILVER777SILVER777 Posts: 13
    edited 2008-07-22 04:50
    currently not yet. I'm still extremely new to the basic programming. so far I've run through the tuitorials and am still questioning myself quite a bit. I know I should hang my head in shame, I'm an electronics engineer that doesn't know much when it comes to parallax.nono.gif [noparse]:([/noparse] But I'm learning hop.gif
  • bryan mcdonaldbryan mcdonald Posts: 27
    edited 2008-07-22 05:13
    tell me more about the 400 bit sequence...are these all bits and you are looking for the first 1?
  • SILVER777SILVER777 Posts: 13
    edited 2008-07-22 12:44
    I have 400 sensing units that I want to know exactly which sensor went off and is sending out a digital 1. So if #327 went off then I would have a 3 digit 7 segment display that will let me know that there was a detection on #327. So in all reality there are only 9 bits since 400 in dec. is 110010000 in binary. I have the segment drivers but I really don't want to waste a lot of time writing out a kmap do display all 400 digits, when I know that there has to be a microprocessor out there that will already do this (however I don't know the name or the model number for such a device), or maybe I could write the stamp to be able to do this for me.
  • FranklinFranklin Posts: 4,747
    edited 2008-07-23 01:31
    I'm still a bit confused. Do you have hardware that outputs a decimal like your first post says or do you have a serial string of 0s with a 1 in there some where that is being read?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • SILVER777SILVER777 Posts: 13
    edited 2008-07-23 02:28
    I have a series of optocouplers which will detect a digital one and send it into a d-latch which will hold the highs and lows. the test will only be happening from anywhere from 2 sec. to 2 minutes, so after the test is complete I am using the latches to hold the results so that I can send the high's and low's into the stamp which will then send out the information gathered in a decimal number.
  • FranklinFranklin Posts: 4,747
    edited 2008-07-24 00:26
    Could you post a schematic of your circuit?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • SILVER777SILVER777 Posts: 13
    edited 2008-07-24 12:46
    Here is the detection system. Basically, when V1 crosses over to activate the optocoupler the +5V on the collector of the transistor will be sent to the emmiter and then get latched through the d-latch. Note that the probes are currently there just to see the output and will not be there during the final design.
    842 x 581 - 78K
  • SILVER777SILVER777 Posts: 13
    edited 2008-07-25 21:20
    Here is the newer updated schematic, but like I said I am really new at writing in pbasic so I was wondering if I might get a little help on how to get started on the pin mapping for the parallax.



    Thanks
    3304 x 2554 - 147K
Sign In or Register to comment.