Shop OBEX P1 Docs P2 Docs Learn Events
door display board — Parallax Forums

door display board

pongmstr2pongmstr2 Posts: 16
edited 2009-06-24 02:29 in Propeller 1
Hello everyone, i'm new to the forum and could really use your expertice.· So my boss asked me to design a display board using the propeller chip, there are 10 signals coming in from door switches either 0 or 5 volts, what i need to do is have the propeller look at these 10 inputs and whenever one goes from·0 volts to 5 volts turn on·an led and stay on untill a reset button is pushed (normally open).··Can any·of you guys help me with some code.· I have the development board also.

thanks in advance·

Comments

  • VaatiVaati Posts: 712
    edited 2009-06-23 22:26
    By development board, do you men the Propeller Professional Development Board...?

    This would not be hard at all! I bet you can even do this with some plain ol' logic chips... Lemme check my books and manuals for something....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Quit buying all those fixed voltage regulators, and·get an Adjustable Power Supply·for your projects!· Includes an LED testing terminal!
  • pongmstr2pongmstr2 Posts: 16
    edited 2009-06-23 22:55
    yes, i can definitly do it with logic chips, some basic rs latches would do it but he wants it with the propeller so there can be room to develope in the future
  • SRLMSRLM Posts: 5,045
    edited 2009-06-23 22:59
    The Propeller is overkill for this, but if that's what you want to use then you can. You'll need to use a resistor on each of the five volt inputs (I'd go with 10K). You could have a simple loop that checks all the pins together (as an array) and as soon as it's non-0 then you can light up the appropriate LED. Then have another loop check for the button and wait for that press. You can then just start the program over again.
  • pongmstr2pongmstr2 Posts: 16
    edited 2009-06-24 02:25
    thanks for the info guys the main problem i have is the fact that i don't know how to read weather the pin is high or not. Does anyone have some sample code i can look at
  • CassLanCassLan Posts: 586
    edited 2009-06-24 02:29
    I have just built this exact Board, for this exact purpose and have it up working at 2 different locations, except that it has:

    16 Inputs
    Multiple Outputs...Buzzer, LED ...etc
    And it also displays the Sensor names out to a video screen.

    Email me and I can send you one: rcassidy@cassidydevelopment.net

    Rick
Sign In or Register to comment.