Shop OBEX P1 Docs P2 Docs Learn Events
reward — Parallax Forums

reward

ArchiverArchiver Posts: 46,084
edited 2002-10-07 19:22 in General Discussion
we're getting desperate...willing to offer $$ for an
hour of someone's time.
need help with programming the BS2 for a school project...

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2002-10-06 15:07
    Describe a little more about the project.
    Actually make that a lot more.
    Not looking for your dollars but will try to help if I can.
    I'm new to the BS2 but an old geiser to programming.

    Mike



    *********** REPLY SEPARATOR ***********

    On 06/10/2002 at 4:01 AM gordon mara wrote:

    >we're getting desperate...willing to offer $$ for an
    >hour of someone's time.
    >need help with programming the BS2 for a school project...
  • ArchiverArchiver Posts: 46,084
    edited 2002-10-06 15:59
    What type of help are you looking for?? (Type of Stamp, project goal etc)

    Mike B.
    Original Message
    From: "gordon mara" <gordonmara@y...>
    To: <basicstamps@yahoogroups.com>
    Sent: Sunday, October 06, 2002 4:01 AM
    Subject: [noparse][[/noparse]basicstamps] reward


    > we're getting desperate...willing to offer $$ for an
    > hour of someone's time.
    > need help with programming the BS2 for a school project...
    >
    > __________________________________________________
    > Do you Yahoo!?
    > Faith Hill - Exclusive Performances, Videos & More
    > http://faith.yahoo.com
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed. Text in the Subject and
    Body of the message will be ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2002-10-06 18:15
    thanx for replying. im using the BS2 OEM.
    heres a brief description of my project:

    i have 3 inputs and 3 outputs.
    in4, in5, in6 are inputs and out 13, out14, out15 are
    outputs.
    pin4 is an incrementing button.
    pin5 is a decrementing button.
    pin6 is connected to a sensor.
    out13,out14,out15 will go to a decoder.

    im trying to give the outputs to send logic highs in
    binary sequence.
    for example:
    out13 out14 out15
    0 0 0
    0 1 0
    0 1 1
    1 0 0
    1 0 1
    1 1 0
    1 1 1

    at normal condition, the inputs are all = 000
    and the outputs will be 000 also til a change in the
    inputs.

    if pin4 or pin6 goes to a logic high, i want the
    outputs to increment 1 step and stay there til the
    next logic high is sensed.
    if pin5 goes high, i want the outputs to decrement 1
    step and stay there til the next logic 1 is sensed.

    hope that makes sense. the output will be connected
    to a 3-8 decoder to control an amplifier. but all i
    need the stamp to do is just to sense a change and to
    give the proper outputs. please help???

    __________________________________________________
    Do you Yahoo!?
    Faith Hill - Exclusive Performances, Videos & More
    http://faith.yahoo.com
  • ArchiverArchiver Posts: 46,084
    edited 2002-10-06 21:14
    Hi Gordon,

    Here's a way to do it with a 5 line state machine:

    x var nib ' counts up or down from 1 to 8
    s0 var nib ' prior state
    s1 var nib ' present state
    sx var nib ' change in state
    loop:
    s1=inB ' reads inputs p4, p5, p6 all at once
    sx=s1^s0&s1 ' detects change 0->1 in any bit
    s0=s1 ' update old state
    x=x+sx.bit0+sx.bit2-sx.bit1 max 8 min 1 ' increment and decrement
    outD=x-1<<1 ' transfer state %000->%111 to outputs p13,p14,p15
    debug bin3 s1,tab,bin3 sx,tab,bin3 outD ' show internal states
    goto loop

    What's the reward? That took 10 minutes, so $$/6?

    -- regards,
    Tracy Allen
    electronically monitored ecosystems
    mailto:tracy@e...
    http://www.emesystems.com


    At 4:01 AM -0700 10/6/02, gordon mara wrote:
    >we're getting desperate...willing to offer $$ for an
    >hour of someone's time.
    >need help with programming the BS2 for a school project...


    >thanx for replying. im using the BS2 OEM.
    >heres a brief description of my project:
    >
    >i have 3 inputs and 3 outputs.
    >in4, in5, in6 are inputs and out 13, out14, out15 are
    >outputs.
    >pin4 is an incrementing button.
    >pin5 is a decrementing button.
    >pin6 is connected to a sensor.
    >out13,out14,out15 will go to a decoder.
    >
    >im trying to give the outputs to send logic highs in
    >binary sequence.
    >for example:
    >out13 out14 out15
    > 0 0 0
    > 0 1 0
    > 0 1 1
    > 1 0 0
    > 1 0 1
    > 1 1 0
    > 1 1 1
    >
    >at normal condition, the inputs are all = 000
    >and the outputs will be 000 also til a change in the
    >inputs.
    >
    >if pin4 or pin6 goes to a logic high, i want the
    >outputs to increment 1 step and stay there til the
    >next logic high is sensed.
    >if pin5 goes high, i want the outputs to decrement 1
    >step and stay there til the next logic 1 is sensed.
    >
    >hope that makes sense. the output will be connected
    >to a 3-8 decoder to control an amplifier. but all i
    >need the stamp to do is just to sense a change and to
    >give the proper outputs. please help???
  • ArchiverArchiver Posts: 46,084
    edited 2002-10-07 19:22
    thank you PROGRAMMING WIZ!!! you saved me! you don't
    know how much you've helped me. now, i just have to
    finish the hardware and its done. i can finally
    graduate. just tell me what you need and i'll
    accomidate. thanks again!

    --- Tracy Allen <tracy@e...> wrote:
    > Hi Gordon,
    >
    > Here's a way to do it with a 5 line state machine:
    >
    > x var nib ' counts up or down from 1 to 8
    > s0 var nib ' prior state
    > s1 var nib ' present state
    > sx var nib ' change in state
    > loop:
    > s1=inB ' reads inputs p4, p5, p6 all at once
    > sx=s1^s0&s1 ' detects change 0->1 in any bit
    > s0=s1 ' update old state
    > x=x+sx.bit0+sx.bit2-sx.bit1 max 8 min 1 '
    > increment and decrement
    > outD=x-1<<1 ' transfer state %000->%111 to
    > outputs p13,p14,p15
    > debug bin3 s1,tab,bin3 sx,tab,bin3 outD ' show
    > internal states
    > goto loop
    >
    > What's the reward? That took 10 minutes, so $$/6?
    >
    > -- regards,
    > Tracy Allen
    > electronically monitored ecosystems
    > mailto:tracy@e...
    > http://www.emesystems.com
    >
    >
    > At 4:01 AM -0700 10/6/02, gordon mara wrote:
    > >we're getting desperate...willing to offer $$ for
    > an
    > >hour of someone's time.
    > >need help with programming the BS2 for a school
    > project...
    >
    >
    > >thanx for replying. im using the BS2 OEM.
    > >heres a brief description of my project:
    > >
    > >i have 3 inputs and 3 outputs.
    > >in4, in5, in6 are inputs and out 13, out14, out15
    > are
    > >outputs.
    > >pin4 is an incrementing button.
    > >pin5 is a decrementing button.
    > >pin6 is connected to a sensor.
    > >out13,out14,out15 will go to a decoder.
    > >
    > >im trying to give the outputs to send logic highs
    > in
    > >binary sequence.
    > >for example:
    > >out13 out14 out15
    > > 0 0 0
    > > 0 1 0
    > > 0 1 1
    > > 1 0 0
    > > 1 0 1
    > > 1 1 0
    > > 1 1 1
    > >
    > >at normal condition, the inputs are all = 000
    > >and the outputs will be 000 also til a change in
    > the
    > >inputs.
    > >
    > >if pin4 or pin6 goes to a logic high, i want the
    > >outputs to increment 1 step and stay there til the
    > >next logic high is sensed.
    > >if pin5 goes high, i want the outputs to decrement
    > 1
    > >step and stay there til the next logic 1 is sensed.
    > >
    > >hope that makes sense. the output will be
    > connected
    > >to a 3-8 decoder to control an amplifier. but all
    > i
    > >need the stamp to do is just to sense a change and
    > to
    > >give the proper outputs. please help???
    >
    >
    > To UNSUBSCRIBE, just send mail to:
    > basicstamps-unsubscribe@yahoogroups.com
    > from the same email address that you subscribed.
    > Text in the Subject and Body of the message will be
    > ignored.
    >
    >
    > Your use of Yahoo! Groups is subject to
    > http://docs.yahoo.com/info/terms/
    >
    >


    __________________________________________________
    Do you Yahoo!?
    Faith Hill - Exclusive Performances, Videos & More
    http://faith.yahoo.com
Sign In or Register to comment.