Shop OBEX P1 Docs P2 Docs Learn Events
input/output — Parallax Forums

input/output

ArchiverArchiver Posts: 46,084
edited 2001-04-07 17:57 in General Discussion
hey i need help on the a program. Im trying to accomplish the following:
im reading a signal either (1 or 0) from an input pin. and I want to change
de state of another pin(output pin). But this pin (output pin) is also
controlled by the program. I had try to use the BUTTON command. but some
how the output pin does not change state. So can any body can help me on
this.


>From: "Jon" <jonm@p...>
>Reply-To: basicstamps@yahoogroups.com
>To: basicstamps@yahoogroups.com
>Subject: [noparse][[/noparse]basicstamps] Re: Port Protection Components
>Date: Fri, 09 Mar 2001 22:03:51 -0000
>
>hi Rodent,
>
>how the hell do you attach files to the Post message? I've got 4
>schematics for you saved as bmp's.
>
>Jon
>
>--- In basicstamps@y..., Rodent <daweasel@s...> wrote:
> > Sure -- send it on. I have a good selection of opto-isolators from
>my last
> > employer, and I want to figure out how to set things up before I
>complete my
> > I/O board. I was gonna plug into the connector on the Activity
>board with a
> > cable and have a remote board with screw terminals, etc...
> >
> > Send 'em direct to me -- daweasel@s...
> >
> >
Original Message
> >
> >
> > > Depends what type of protection you need, personally I only ever
>use
> > > opto's. This pretty much guarantees protection to the stamp. I've
> > > actually connected (by mistake) 230v AC 50Hz to an I/P and whilst
>it
> > > made the opto smoke a bit, no damage was done!
> > >
> > > I've designed a range of plug in modules that provides any
>external
> > > connections via a standard interface, relay O/P, Opto protected
> > > transistor O/P, Opto protected I/P's, potentiometer I/P's etc.
> > > Let me know if you want more details.
> > >
> > > It may not be the cheapest way of protecting the STAMP but does
> > > protect it regardless.
>
>
>
>
>Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-03-30 19:51
    I think I can answer this one ??

    high ( your pin number )
    or
    low ( your pin number )

    if your pin is pin 1

    high 1
    or
    low 1

    che guevara wrote:
    >
    > hey i need help on the a program. Im trying to accomplish the following:
    > im reading a signal either (1 or 0) from an input pin. and I want to change
    > de state of another pin(output pin). But this pin (output pin) is also
    > controlled by the program. I had try to use the BUTTON command. but some
    > how the output pin does not change state. So can any body can help me on
    > this.
    >
    > >From: "Jon" <jonm@p...>
    > >Reply-To: basicstamps@yahoogroups.com
    > >To: basicstamps@yahoogroups.com
    > >Subject: [noparse][[/noparse]basicstamps] Re: Port Protection Components
    > >Date: Fri, 09 Mar 2001 22:03:51 -0000
    > >
    > >hi Rodent,
    > >
    > >how the hell do you attach files to the Post message? I've got 4
    > >schematics for you saved as bmp's.
    > >
    > >Jon
    > >
    > >--- In basicstamps@y..., Rodent <daweasel@s...> wrote:
    > > > Sure -- send it on. I have a good selection of opto-isolators from
    > >my last
    > > > employer, and I want to figure out how to set things up before I
    > >complete my
    > > > I/O board. I was gonna plug into the connector on the Activity
    > >board with a
    > > > cable and have a remote board with screw terminals, etc...
    > > >
    > > > Send 'em direct to me -- daweasel@s...
    > > >
    > > >
    Original Message
    > > >
    > > >
    > > > > Depends what type of protection you need, personally I only ever
    > >use
    > > > > opto's. This pretty much guarantees protection to the stamp. I've
    > > > > actually connected (by mistake) 230v AC 50Hz to an I/P and whilst
    > >it
    > > > > made the opto smoke a bit, no damage was done!
    > > > >
    > > > > I've designed a range of plug in modules that provides any
    > >external
    > > > > connections via a standard interface, relay O/P, Opto protected
    > > > > transistor O/P, Opto protected I/P's, potentiometer I/P's etc.
    > > > > Let me know if you want more details.
    > > > >
    > > > > It may not be the cheapest way of protecting the STAMP but does
    > > > > protect it regardless.
    > >
    > >
    > >
    > >
    > >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    > >
    > >
    >
    > _________________________________________________________________________
    > Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
    >
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-04-05 18:42
    well thanks but it did not work,, i had already tried that but it doesn't
    work. any other suggestions?
    thank you ill appreciate


    >From: "L .Gaminde" <lgaminde@t...>
    >Reply-To: basicstamps@yahoogroups.com
    >To: basicstamps@yahoogroups.com
    >Subject: Re: [noparse][[/noparse]basicstamps] input/output
    >Date: Fri, 30 Mar 2001 10:51:52 -0800
    >
    >I think I can answer this one ??
    >
    >high ( your pin number )
    >or
    >low ( your pin number )
    >
    >if your pin is pin 1
    >
    >high 1
    >or
    >low 1
    >
    >che guevara wrote:
    > >
    > > hey i need help on the a program. Im trying to accomplish the following:
    > > im reading a signal either (1 or 0) from an input pin. and I want to
    >change
    > > de state of another pin(output pin). But this pin (output pin) is also
    > > controlled by the program. I had try to use the BUTTON command. but
    >some
    > > how the output pin does not change state. So can any body can help me on
    > > this.
    > >
    > > >From: "Jon" <jonm@p...>
    > > >Reply-To: basicstamps@yahoogroups.com
    > > >To: basicstamps@yahoogroups.com
    > > >Subject: [noparse][[/noparse]basicstamps] Re: Port Protection Components
    > > >Date: Fri, 09 Mar 2001 22:03:51 -0000
    > > >
    > > >hi Rodent,
    > > >
    > > >how the hell do you attach files to the Post message? I've got 4
    > > >schematics for you saved as bmp's.
    > > >
    > > >Jon
    > > >
    > > >--- In basicstamps@y..., Rodent <daweasel@s...> wrote:
    > > > > Sure -- send it on. I have a good selection of opto-isolators from
    > > >my last
    > > > > employer, and I want to figure out how to set things up before I
    > > >complete my
    > > > > I/O board. I was gonna plug into the connector on the Activity
    > > >board with a
    > > > > cable and have a remote board with screw terminals, etc...
    > > > >
    > > > > Send 'em direct to me -- daweasel@s...
    > > > >
    > > > >
    Original Message
    > > > >
    > > > >
    > > > > > Depends what type of protection you need, personally I only ever
    > > >use
    > > > > > opto's. This pretty much guarantees protection to the stamp. I've
    > > > > > actually connected (by mistake) 230v AC 50Hz to an I/P and whilst
    > > >it
    > > > > > made the opto smoke a bit, no damage was done!
    > > > > >
    > > > > > I've designed a range of plug in modules that provides any
    > > >external
    > > > > > connections via a standard interface, relay O/P, Opto protected
    > > > > > transistor O/P, Opto protected I/P's, potentiometer I/P's etc.
    > > > > > Let me know if you want more details.
    > > > > >
    > > > > > It may not be the cheapest way of protecting the STAMP but does
    > > > > > protect it regardless.
    > > >
    > > >
    > > >
    > > >
    > > >Your use of Yahoo! Groups is subject to
    >http://docs.yahoo.com/info/terms/
    > > >
    > > >
    > >
    > >
    >_________________________________________________________________________
    > > Get Your Private, Free E-mail from MSN Hotmail at
    >http://www.hotmail.com.
    > >
    > >
    > >
    > > Your use of Yahoo! Groups is subject to
    >http://docs.yahoo.com/info/terms/
    >
    >
    >
    >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >

    _________________________________________________________________________
    Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
  • ArchiverArchiver Posts: 46,084
    edited 2001-04-07 17:57
    Make sure that you have set up your output pin as an output in the DDR.
    Sounds simple, but very easy to forget.

    Tim


    Original Message
    From: "che guevara" <mercuryhg7@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: Thursday, April 05, 2001 6:42 PM
    Subject: Re: [noparse][[/noparse]basicstamps] input/output


    > well thanks but it did not work,, i had already tried that but it doesn't
    > work. any other suggestions?
    > thank you ill appreciate
    >
Sign In or Register to comment.