Shop OBEX P1 Docs P2 Docs Learn Events
I/O — Parallax Forums

I/O

ArchiverArchiver Posts: 46,084
edited 2003-08-17 04:19 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: Paul Verhage <pverhage@s...>
>Reply-To: basicstamps@yahoogroups.com
>To: "'basicstamps@yahoogroups.com'" <basicstamps@yahoogroups.com>
>Subject: RE: [noparse][[/noparse]basicstamps] Tripmate GPS Info
>Date: Thu, 8 Mar 2001 07:08:25 -0700
>
> > Now, if I
> > can only find a
> > few bits of code to help me get started. :-)
>
>I have a webpage for my balloon program. there I have some code for
>operating a balloon capsule, including its on-board GPS reciever. The GPS
>I
>use is a Motorola model, but reading the data is the same. Check out
>www.ksu.edu/humec/knsp/ Under capsule construction is a software page.
>There you will find a subroutine for sending commands to the GPS and
>reading
>the altitude from the GGA sentence.
>
>I'll try to get some time to post more.
>
>Paul
>
>
>
>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.
«1

Comments

  • ArchiverArchiver Posts: 46,084
    edited 2001-03-30 19:51
    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: "Endersby, Gordon" <gordon.endersby@m...>
    >Reply-To: basicstamps@yahoogroups.com
    >To: "'basicstamps@yahoogroups.com'" <basicstamps@yahoogroups.com>
    >Subject: RE: [noparse][[/noparse]basicstamps] My first robot
    >Date: Thu, 8 Mar 2001 10:12:28 -0500
    >
    >
    >Ive discovered the wonders of hot glue.
    >
    >It sticks almost anything to anything.
    >Its fairly strong and when you need to unglue it a knife will cut it.
    >
    >Last night I glued a ping pong ball onto trundle my first BS1 based bot to
    >act as the rear caster/skid.
    >Works a treat with a little polish applied to the ball.
    >
    >Im going to borrow a digital camera soon so I can put some pictures up on
    >my
    >website.
    >
    >Gordon
    >
    >
    Original Message
    >From: Brice D. Hornback [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=dMmcI-SD3z2eVnV9f7DHJpRPUgKGdwSgTDUfaDsS2GJWVeoBxegZXXQyO6GbZD22vDLjAdAAfLmkOsg]bdh@c...[/url
    >Sent: 06 March 2001 19:19
    >To: basicstamps@yahoogroups.com
    >Subject: Re: [noparse][[/noparse]basicstamps] My first robot
    >
    >
    >My first robot was actually a breadboard (small size) mounted above
    >the Stamp Carrier Board... I then used foam tape to attach a pair of
    >servos and a 4-pack of AA batteries to the bottom of it. I made a
    >simple caster for it... and away it went. Nothing fancy... but it
    >worked.
    >
    >Did I ever mention I LOVE DOUBLE-SIDED FOAM TAPE! It may not be that
    >strong... it may not last that long... but if you've ever glued,
    >soldered, welded, or even drilled holes and bolted something together
    >on a robot... sooner or later (probably immediately after mounting
    >whatever it is) you'll wish you had glued, soldered, welded, or
    >drilled and bolted it a little bit forward, back, to this side or
    >that, under there, on top of that, etc. (Am I the only one that
    >measures twice, cuts once, and STILL messes it up?) :-)
    >
    >Have fun!
    >- Brice
    >
    > > Balsa is the same in English too...
    > >
    > > You can use almost anything you want, depending on the size and
    >strength
    > > needed and the tools you have to cut / drill the material. Since I
    >have
    > > access to machine shop equipment, I built my chassis out of
    >aluminum.
    > >
    > > You could use a bowl, pan or plastic plate, a plastic cutting
    >board, wood, a
    > > piece of metal or whatever. Go to the dollar store, K-Mart or a
    >arts and
    > > crafts store and browse around.
    > >
    > >
    Original Message
    > >
    > > > I used BALSA (i don´t know the english word) wood for my first
    >robot. This
    > > > kind of wood is used for model planes and can be bought in
    >different
    > > sizes.
    > > > It is soft wood but you get a lot of strengh by gluing it
    >together. It is
    > > > very easy to model it with sandpaper, you can cut it with a
    >knive, or use
    > > a
    > > > little figure saw. When it is finished you can paint with any
    >paint you
    > > have
    > > > available in the house
    > >
    > > > > Now my only problem is giving him a suitable body. Currently
    >the poor
    > > > > little fellow is stuck to a breadboard and the BOE. What do
    >you guys
    > > use
    > > > > when making your chasis? I wish I still had my Erector set
    >from way
    > > back
    > > > > when. I tried to find a place to buy some more but they have
    >gone to
    > > the
    > > > > wimpy plastic kits. Anyone have some suggestions on body
    >making?
    > >
    > >
    > >
    > >
    > >
    > >
    > > 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/
    >
    >
    >
    >
    >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-03-30 19:52
    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: "Absolutezero" <Absolutezero@s...>
    >Reply-To: basicstamps@yahoogroups.com
    >To: <basicstamps@yahoogroups.com>
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >Date: Mon, 26 Mar 2001 20:48:46 -0800
    >
    >so do you have a plotter and what kinda things do you do with it, and how
    >do you have it hooked up to a Stamp? can you feel me in on the details?
    >
    >
    >
    Original Message
    >From: Sean T. Lamont .lost. [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=3-kIp4XdFR7TSb6As0gT3_BT_FRVOg1-dwCltvdIlRMAsTHn-mQKLCr7thoOTFStTxTQZfJBIqYcEwPUBwm8jQE]lamont@a...[/url
    >Sent: Monday, March 26, 2001 6:17 PM
    >To: basicstamps@yahoogroups.com
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >
    >
    >
    >a quick search of ebay locates a 7475A in the $10 range
    >
    >http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=1224442208
    >
    >On Mon, 26 Mar 2001, Absolutezero wrote:
    >
    > > any ideas where i can get one of those?
    > >
    > >
    > >
    Original Message
    > > From: Greg Hensley [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=fi98TfFpLdVI48LTMr9-uFIW11AHiOVKuhiQm-eQDA7YwILN5iOY2I8xNBqvU0MhTVTnC8Hjbg]hensley1@l...[/url
    > > Sent: Monday, March 26, 2001 11:40 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] make a plotter
    > >
    > >
    > > At 09:59 PM 3/25/2001 , you wrote:
    > > >I would like to designa plotter, were i can make a program and have it
    >draw
    > > >it out. Kinda like a computer aided drafting thing. Anyone have any
    >idea's
    > > >on this, and where I can get some info on it?
    > > >
    > > > Thanks Justin
    > >
    > >
    > > Justin,
    > > You're tackling a project thats not impossible, but pretty Tough! First
    >of
    > > all
    > > there is the hardware. Are you using a surplus plotter for the motors
    >and
    > > slides or will you build it from scratch? Do you already have what
    >amounts
    > > to a 2 1/2D CNC setup? Where and how are you going to get your input?
    > > I suggest you use an existing standard such as HPGL because most
    > > software that has an ability to plot will be able to create this file as
    > > your
    > > input (other flavors such as houston Instruments, versatec etc exist too
    > > but I think HPGL has the most widespread recognition).
    > > The HPGL has a certain format and command set in generic ASCII text.
    > > You'll need to create a program to read the file and interpret the text
    > > line by line
    > > into corresponding commands to your "plotting device". For instance, the
    > > HPGL command line may specify a "pen up" command followed by an XY
    > > coordinate pair to go to before the next command. Your program must
    > > cause your machine to interpret this to mechanical movement that is
    > > consistant with your outcome.
    > >
    > > I have an old Amdek XY-100 flatbed plotter that I purchased in the early
    > > 80's. No software had the proper drivers for it because it had it's own
    > > language that no one supported. (did I have the only one is the USA?)
    > > The approach that I have thus far suggested was a way for me to get
    > > plots out of an otherwise useless (and expensive) plotter.
    > >
    > > Good luck,
    > > Greg
    > >
    > >
    > >
    > >
    > > 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/
    > >
    > >
    > >
    >
    >Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
    >Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
    >email: lamont@a... WWW: http://www.serv.net
    >"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
    >
    >
    >
    >
    >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-03-30 19:53
    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: "Absolutezero" <Absolutezero@s...>
    >Reply-To: basicstamps@yahoogroups.com
    >To: <basicstamps@yahoogroups.com>
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >Date: Mon, 26 Mar 2001 20:48:46 -0800
    >
    >so do you have a plotter and what kinda things do you do with it, and how
    >do you have it hooked up to a Stamp? can you feel me in on the details?
    >
    >
    >
    Original Message
    >From: Sean T. Lamont .lost. [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=nGNOteqypC-oGDaySTXkNh5gZoikUPtgD2Jobdotb8zhBjbbTMzAaDB9OfMk6N7pxnndhOFHXrVbL0-Oeg]lamont@a...[/url
    >Sent: Monday, March 26, 2001 6:17 PM
    >To: basicstamps@yahoogroups.com
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >
    >
    >
    >a quick search of ebay locates a 7475A in the $10 range
    >
    >http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=1224442208
    >
    >On Mon, 26 Mar 2001, Absolutezero wrote:
    >
    > > any ideas where i can get one of those?
    > >
    > >
    > >
    Original Message
    > > From: Greg Hensley [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=dAV4e-xyPRUrCk4XO-YJ6gAydNxWIzhwr2GRXCiyqMBX-cM94pGeHhmM6T0E1lKTWUotx4JWou8xksM]hensley1@l...[/url
    > > Sent: Monday, March 26, 2001 11:40 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] make a plotter
    > >
    > >
    > > At 09:59 PM 3/25/2001 , you wrote:
    > > >I would like to designa plotter, were i can make a program and have it
    >draw
    > > >it out. Kinda like a computer aided drafting thing. Anyone have any
    >idea's
    > > >on this, and where I can get some info on it?
    > > >
    > > > Thanks Justin
    > >
    > >
    > > Justin,
    > > You're tackling a project thats not impossible, but pretty Tough! First
    >of
    > > all
    > > there is the hardware. Are you using a surplus plotter for the motors
    >and
    > > slides or will you build it from scratch? Do you already have what
    >amounts
    > > to a 2 1/2D CNC setup? Where and how are you going to get your input?
    > > I suggest you use an existing standard such as HPGL because most
    > > software that has an ability to plot will be able to create this file as
    > > your
    > > input (other flavors such as houston Instruments, versatec etc exist too
    > > but I think HPGL has the most widespread recognition).
    > > The HPGL has a certain format and command set in generic ASCII text.
    > > You'll need to create a program to read the file and interpret the text
    > > line by line
    > > into corresponding commands to your "plotting device". For instance, the
    > > HPGL command line may specify a "pen up" command followed by an XY
    > > coordinate pair to go to before the next command. Your program must
    > > cause your machine to interpret this to mechanical movement that is
    > > consistant with your outcome.
    > >
    > > I have an old Amdek XY-100 flatbed plotter that I purchased in the early
    > > 80's. No software had the proper drivers for it because it had it's own
    > > language that no one supported. (did I have the only one is the USA?)
    > > The approach that I have thus far suggested was a way for me to get
    > > plots out of an otherwise useless (and expensive) plotter.
    > >
    > > Good luck,
    > > Greg
    > >
    > >
    > >
    > >
    > > 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/
    > >
    > >
    > >
    >
    >Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
    >Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
    >email: lamont@a... WWW: http://www.serv.net
    >"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
    >
    >
    >
    >
    >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-03-30 19:53
    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: "Absolutezero" <Absolutezero@s...>
    >Reply-To: basicstamps@yahoogroups.com
    >To: <basicstamps@yahoogroups.com>
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >Date: Mon, 26 Mar 2001 20:48:46 -0800
    >
    >so do you have a plotter and what kinda things do you do with it, and how
    >do you have it hooked up to a Stamp? can you feel me in on the details?
    >
    >
    >
    Original Message
    >From: Sean T. Lamont .lost. [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=2xFQY30gicpMUkFWGLL3Jn83WgUzqEB3rnWr4SsOKKj6k0_xUSxdYcBzSBM3dUPV5npN1joMgeb0f9sj6JcCoHiG]lamont@a...[/url
    >Sent: Monday, March 26, 2001 6:17 PM
    >To: basicstamps@yahoogroups.com
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >
    >
    >
    >a quick search of ebay locates a 7475A in the $10 range
    >
    >http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=1224442208
    >
    >On Mon, 26 Mar 2001, Absolutezero wrote:
    >
    > > any ideas where i can get one of those?
    > >
    > >
    > >
    Original Message
    > > From: Greg Hensley [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=BPrts2fZJlDvYwikQl9YyKWI8LDdInV0RkdNzwi3GPR12Sud_ze9zVs9AZhVzRORlknLFnbUvOiD_t_m]hensley1@l...[/url
    > > Sent: Monday, March 26, 2001 11:40 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] make a plotter
    > >
    > >
    > > At 09:59 PM 3/25/2001 , you wrote:
    > > >I would like to designa plotter, were i can make a program and have it
    >draw
    > > >it out. Kinda like a computer aided drafting thing. Anyone have any
    >idea's
    > > >on this, and where I can get some info on it?
    > > >
    > > > Thanks Justin
    > >
    > >
    > > Justin,
    > > You're tackling a project thats not impossible, but pretty Tough! First
    >of
    > > all
    > > there is the hardware. Are you using a surplus plotter for the motors
    >and
    > > slides or will you build it from scratch? Do you already have what
    >amounts
    > > to a 2 1/2D CNC setup? Where and how are you going to get your input?
    > > I suggest you use an existing standard such as HPGL because most
    > > software that has an ability to plot will be able to create this file as
    > > your
    > > input (other flavors such as houston Instruments, versatec etc exist too
    > > but I think HPGL has the most widespread recognition).
    > > The HPGL has a certain format and command set in generic ASCII text.
    > > You'll need to create a program to read the file and interpret the text
    > > line by line
    > > into corresponding commands to your "plotting device". For instance, the
    > > HPGL command line may specify a "pen up" command followed by an XY
    > > coordinate pair to go to before the next command. Your program must
    > > cause your machine to interpret this to mechanical movement that is
    > > consistant with your outcome.
    > >
    > > I have an old Amdek XY-100 flatbed plotter that I purchased in the early
    > > 80's. No software had the proper drivers for it because it had it's own
    > > language that no one supported. (did I have the only one is the USA?)
    > > The approach that I have thus far suggested was a way for me to get
    > > plots out of an otherwise useless (and expensive) plotter.
    > >
    > > Good luck,
    > > Greg
    > >
    > >
    > >
    > >
    > > 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/
    > >
    > >
    > >
    >
    >Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
    >Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
    >email: lamont@a... WWW: http://www.serv.net
    >"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
    >
    >
    >
    >
    >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-03-30 19:53
    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: "Absolutezero" <Absolutezero@s...>
    >Reply-To: basicstamps@yahoogroups.com
    >To: <basicstamps@yahoogroups.com>
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >Date: Mon, 26 Mar 2001 20:48:46 -0800
    >
    >so do you have a plotter and what kinda things do you do with it, and how
    >do you have it hooked up to a Stamp? can you feel me in on the details?
    >
    >
    >
    Original Message
    >From: Sean T. Lamont .lost. [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=L4c7apswLayKU1443KTazc3TCdQpk3A4ZgSJYT59yDjIwdqkFj-Fl0Tq446qdGTGfW8dqd6OaNQG1rryhEc]lamont@a...[/url
    >Sent: Monday, March 26, 2001 6:17 PM
    >To: basicstamps@yahoogroups.com
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >
    >
    >
    >a quick search of ebay locates a 7475A in the $10 range
    >
    >http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=1224442208
    >
    >On Mon, 26 Mar 2001, Absolutezero wrote:
    >
    > > any ideas where i can get one of those?
    > >
    > >
    > >
    Original Message
    > > From: Greg Hensley [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=T-enRNbxinYYsbvC9qCD-xDxskxCLQ7SMmUP8XTEnO3uL8Rrn_51Rp1LLXawJnZ-2mIB_AA3iXgH4A]hensley1@l...[/url
    > > Sent: Monday, March 26, 2001 11:40 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] make a plotter
    > >
    > >
    > > At 09:59 PM 3/25/2001 , you wrote:
    > > >I would like to designa plotter, were i can make a program and have it
    >draw
    > > >it out. Kinda like a computer aided drafting thing. Anyone have any
    >idea's
    > > >on this, and where I can get some info on it?
    > > >
    > > > Thanks Justin
    > >
    > >
    > > Justin,
    > > You're tackling a project thats not impossible, but pretty Tough! First
    >of
    > > all
    > > there is the hardware. Are you using a surplus plotter for the motors
    >and
    > > slides or will you build it from scratch? Do you already have what
    >amounts
    > > to a 2 1/2D CNC setup? Where and how are you going to get your input?
    > > I suggest you use an existing standard such as HPGL because most
    > > software that has an ability to plot will be able to create this file as
    > > your
    > > input (other flavors such as houston Instruments, versatec etc exist too
    > > but I think HPGL has the most widespread recognition).
    > > The HPGL has a certain format and command set in generic ASCII text.
    > > You'll need to create a program to read the file and interpret the text
    > > line by line
    > > into corresponding commands to your "plotting device". For instance, the
    > > HPGL command line may specify a "pen up" command followed by an XY
    > > coordinate pair to go to before the next command. Your program must
    > > cause your machine to interpret this to mechanical movement that is
    > > consistant with your outcome.
    > >
    > > I have an old Amdek XY-100 flatbed plotter that I purchased in the early
    > > 80's. No software had the proper drivers for it because it had it's own
    > > language that no one supported. (did I have the only one is the USA?)
    > > The approach that I have thus far suggested was a way for me to get
    > > plots out of an otherwise useless (and expensive) plotter.
    > >
    > > Good luck,
    > > Greg
    > >
    > >
    > >
    > >
    > > 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/
    > >
    > >
    > >
    >
    >Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
    >Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
    >email: lamont@a... WWW: http://www.serv.net
    >"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
    >
    >
    >
    >
    >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-03-30 19:54
    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: "Absolutezero" <Absolutezero@s...>
    >Reply-To: basicstamps@yahoogroups.com
    >To: <basicstamps@yahoogroups.com>
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >Date: Mon, 26 Mar 2001 20:48:46 -0800
    >
    >so do you have a plotter and what kinda things do you do with it, and how
    >do you have it hooked up to a Stamp? can you feel me in on the details?
    >
    >
    >
    Original Message
    >From: Sean T. Lamont .lost. [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=bbpPz5KjdjAMQNp_8PZB4vDi4nhFyOZsW0bN_xng8O8PF0SGOSATEFZTcEbx3al1lSfUJzNYz4gv7xDm-4MrjgoO]lamont@a...[/url
    >Sent: Monday, March 26, 2001 6:17 PM
    >To: basicstamps@yahoogroups.com
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >
    >
    >
    >a quick search of ebay locates a 7475A in the $10 range
    >
    >http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=1224442208
    >
    >On Mon, 26 Mar 2001, Absolutezero wrote:
    >
    > > any ideas where i can get one of those?
    > >
    > >
    > >
    Original Message
    > > From: Greg Hensley [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=1w9BeKrMm5KC21UJNFAealXiyCTyczBhgBKImy-rsjh0lC-ITL6wC_Ki2s_vkYR4nuB0NMOObQ]hensley1@l...[/url
    > > Sent: Monday, March 26, 2001 11:40 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] make a plotter
    > >
    > >
    > > At 09:59 PM 3/25/2001 , you wrote:
    > > >I would like to designa plotter, were i can make a program and have it
    >draw
    > > >it out. Kinda like a computer aided drafting thing. Anyone have any
    >idea's
    > > >on this, and where I can get some info on it?
    > > >
    > > > Thanks Justin
    > >
    > >
    > > Justin,
    > > You're tackling a project thats not impossible, but pretty Tough! First
    >of
    > > all
    > > there is the hardware. Are you using a surplus plotter for the motors
    >and
    > > slides or will you build it from scratch? Do you already have what
    >amounts
    > > to a 2 1/2D CNC setup? Where and how are you going to get your input?
    > > I suggest you use an existing standard such as HPGL because most
    > > software that has an ability to plot will be able to create this file as
    > > your
    > > input (other flavors such as houston Instruments, versatec etc exist too
    > > but I think HPGL has the most widespread recognition).
    > > The HPGL has a certain format and command set in generic ASCII text.
    > > You'll need to create a program to read the file and interpret the text
    > > line by line
    > > into corresponding commands to your "plotting device". For instance, the
    > > HPGL command line may specify a "pen up" command followed by an XY
    > > coordinate pair to go to before the next command. Your program must
    > > cause your machine to interpret this to mechanical movement that is
    > > consistant with your outcome.
    > >
    > > I have an old Amdek XY-100 flatbed plotter that I purchased in the early
    > > 80's. No software had the proper drivers for it because it had it's own
    > > language that no one supported. (did I have the only one is the USA?)
    > > The approach that I have thus far suggested was a way for me to get
    > > plots out of an otherwise useless (and expensive) plotter.
    > >
    > > Good luck,
    > > Greg
    > >
    > >
    > >
    > >
    > > 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/
    > >
    > >
    > >
    >
    >Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
    >Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
    >email: lamont@a... WWW: http://www.serv.net
    >"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
    >
    >
    >
    >
    >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-03-30 19:54
    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: "Absolutezero" <Absolutezero@s...>
    >Reply-To: basicstamps@yahoogroups.com
    >To: <basicstamps@yahoogroups.com>
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >Date: Mon, 26 Mar 2001 20:48:46 -0800
    >
    >so do you have a plotter and what kinda things do you do with it, and how
    >do you have it hooked up to a Stamp? can you feel me in on the details?
    >
    >
    >
    Original Message
    >From: Sean T. Lamont .lost. [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=qCeTMVGjvoiWDU4RbxYgI5JAwfyHjp-96A3z-ZMus9QbvZ4YWadyoJDGMB-dTMVIxPK1KBtU8ggvIhsu0w]lamont@a...[/url
    >Sent: Monday, March 26, 2001 6:17 PM
    >To: basicstamps@yahoogroups.com
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >
    >
    >
    >a quick search of ebay locates a 7475A in the $10 range
    >
    >http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=1224442208
    >
    >On Mon, 26 Mar 2001, Absolutezero wrote:
    >
    > > any ideas where i can get one of those?
    > >
    > >
    > >
    Original Message
    > > From: Greg Hensley [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=GXusVozTf9SCvXVkMPCS4l3JEXCgNPJMUHdion_N3DmLuW3i8Dy8jnr8oN7UroQSlxOph8nolke8nw]hensley1@l...[/url
    > > Sent: Monday, March 26, 2001 11:40 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] make a plotter
    > >
    > >
    > > At 09:59 PM 3/25/2001 , you wrote:
    > > >I would like to designa plotter, were i can make a program and have it
    >draw
    > > >it out. Kinda like a computer aided drafting thing. Anyone have any
    >idea's
    > > >on this, and where I can get some info on it?
    > > >
    > > > Thanks Justin
    > >
    > >
    > > Justin,
    > > You're tackling a project thats not impossible, but pretty Tough! First
    >of
    > > all
    > > there is the hardware. Are you using a surplus plotter for the motors
    >and
    > > slides or will you build it from scratch? Do you already have what
    >amounts
    > > to a 2 1/2D CNC setup? Where and how are you going to get your input?
    > > I suggest you use an existing standard such as HPGL because most
    > > software that has an ability to plot will be able to create this file as
    > > your
    > > input (other flavors such as houston Instruments, versatec etc exist too
    > > but I think HPGL has the most widespread recognition).
    > > The HPGL has a certain format and command set in generic ASCII text.
    > > You'll need to create a program to read the file and interpret the text
    > > line by line
    > > into corresponding commands to your "plotting device". For instance, the
    > > HPGL command line may specify a "pen up" command followed by an XY
    > > coordinate pair to go to before the next command. Your program must
    > > cause your machine to interpret this to mechanical movement that is
    > > consistant with your outcome.
    > >
    > > I have an old Amdek XY-100 flatbed plotter that I purchased in the early
    > > 80's. No software had the proper drivers for it because it had it's own
    > > language that no one supported. (did I have the only one is the USA?)
    > > The approach that I have thus far suggested was a way for me to get
    > > plots out of an otherwise useless (and expensive) plotter.
    > >
    > > Good luck,
    > > Greg
    > >
    > >
    > >
    > >
    > > 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/
    > >
    > >
    > >
    >
    >Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
    >Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
    >email: lamont@a... WWW: http://www.serv.net
    >"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
    >
    >
    >
    >
    >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-03-30 19:57
    RE: [noparse][[/noparse]basicstamps] I/O

    send it one time, may be twice. 7 times is one too many times
    [noparse]:)[/noparse]




    Original Message

    From: che guevara [noparse]/noparse][url=mailto:mercuryhg7@hotmail.com]mailto:mercuryhg7@hotmail.com[/url
    Sent: Friday, March 30, 2001 12:54 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] I/O



    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: "Absolutezero" <Absolutezero@satx.rr.com>
    >Reply-To: basicstamps@yahoogroups.com
    >To: <basicstamps@yahoogroups.com>
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >Date: Mon, 26 Mar 2001 20:48:46 -0800
    >
    >so do you have a plotter and· what kinda things do you do with it, and how
    >do you have it hooked up to a Stamp?·· can you feel me in on the details?
    >
    >
    >
    Original Message

    >From: Sean T. Lamont .lost. [noparse]/noparse][url=mailto:lamont@abstractsoft.com]mailto:lamont@abstractsoft.com[/url
    >Sent: Monday, March 26, 2001 6:17 PM
    >To: basicstamps@yahoogroups.com
    >Subject: RE: [noparse][[/noparse]basicstamps] make a plotter
    >
    >
    >
    >a quick search of ebay locates a 7475A in the $10 range
    >
    >http://cgi.ebay.com/aw-cgi/eBayISAPI.dll?ViewItem&item=1224442208
    >
    >On Mon, 26 Mar 2001, Absolutezero wrote:
    >
    > > any ideas where i can get one of those?
    > >
    > >
    > >
    Original Message

    > > From: Greg Hensley [noparse]/noparse][url=mailto:hensley1@llnl.gov]mailto:hensley1@llnl.gov[/url
    > > Sent: Monday, March 26, 2001 11:40 AM
    > > To: basicstamps@yahoogroups.com
    > > Subject: Re: [noparse][[/noparse]basicstamps] make a plotter
    > >
    > >
    > > At 09:59 PM 3/25/2001 , you wrote:
    > > >I would like to designa plotter, were i can make a program and have it
    >draw
    > > >it out. Kinda like a computer aided drafting thing.· Anyone have any
    >idea's
    > > >on this, and where I can get some info on it?
    > > >
    > > >········ Thanks Justin
    > >
    > >
    > > Justin,
    > > You're tackling a project thats not impossible, but pretty Tough! First
    >of
    > > all
    > > there is the hardware. Are you using a surplus plotter for the motors
    >and
    > > slides or will you build it from scratch? Do you already have what
    >amounts
    > > to a 2 1/2D CNC setup? Where and how are you going to get your input?
    > > I suggest you use an existing standard such as HPGL because most
    > > software that has an ability to plot will be able to create this file as
    > > your
    > > input (other flavors such as houston Instruments, versatec etc exist too
    > > but I think HPGL has the most widespread recognition).
    > > The HPGL has a certain format and command set in generic ASCII text.
    > > You'll need to create a program to read the file and interpret the text
    > > line by line
    > > into corresponding commands to your "plotting device". For instance, the
    > > HPGL command line may specify a "pen up" command followed by an XY
    > > coordinate pair to go to before the next command. Your program must
    > > cause your machine to interpret this to mechanical movement that is
    > > consistant with your outcome.
    > >
    > > I have an old Amdek XY-100 flatbed plotter that I purchased in the early
    > > 80's. No software had the proper drivers for it because it had it's own
    > > language that no one supported. (did I have the only one is the USA?)
    > > The approach that I have thus far suggested was a way for me to get
    > > plots out of an otherwise useless (and expensive) plotter.
    > >
    > > Good luck,
    > > Greg
    > >
    > >
    > >
    > >
    > > 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/
    > >
    > >
    > >
    >
    >Sean T. Lamont, CTO / Chief NetNerd, Abstract Software, Inc. (ServNet)
    >Seattle - Bellingham - Vancouver - Portland - Everett - Tacoma - Bremerton
    >email: lamont@abstractsoft.com············· WWW:· http://www.serv.net
    >"...There's no moral, it's just a lot of stuff that happens". - H. Simpson
    >
    >
    >
    >
    >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.


    ·

    Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-31 10:32
    Che

    You are a little annoying with your 9 messages repeating all the same question.
    The answer is in the manual.
    Regards
    ECO
    Original Message
    From: "che guevara" <mercuryhg7@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: vendredi 30 mars 2001 20:51
    Subject: [noparse][[/noparse]basicstamps] i/o


    > 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
    ******
  • ArchiverArchiver Posts: 46,084
    edited 2001-03-31 22:22
    Che Wrote:

    "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. "


    input con 1 (or whatever pin your input is hooked up to)
    output con 2 (etc)


    start:
    if input=1 then change_de_State
    goto start

    change_de_state:
    high output
    goto start

    Perhaps if you posted some code, or were a bit clearer on your goals
    someone can give you more help. Is your active state on the input high or
    Low? Do you want the output to match the state of the input? How is the
    output pin controlled by your program?
  • ArchiverArchiver Posts: 46,084
    edited 2001-04-01 06:22
    How do I get the stamp to constantly read the state of a pin and tell
    it to do something based on the state of that pin? If I do something
    like this:

    If pin 10=high then (address)?

    then it says Error: Expected a binary operator or ')' and it
    highlights the "pin" part of the command. How exactly would I do
    that? Please help!
  • ArchiverArchiver Posts: 46,084
    edited 2001-04-01 06:35
    use

    if IN10=1 then address


    Original Message
    From: <sjohns10@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: Sunday, April 01, 2001 12:22 AM
    Subject: [noparse][[/noparse]basicstamps] I/O


    > How do I get the stamp to constantly read the state of a pin and tell
    > it to do something based on the state of that pin? If I do something
    > like this:
    >
    > If pin 10=high then (address)?
    >
    > then it says Error: Expected a binary operator or ')' and it
    > highlights the "pin" part of the command. How exactly would I do
    > that? Please help!
    >
    >
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-04-01 07:39
    As written, the IF statement does not know what high means. You have to
    assign a value to the word high -- ie:

    high CON 1

    IF IN10 = high THEN Do_This

    'put stuff here you want to do if test fails

    GOTO End:

    Do_This:

    'put stuff here you want to do if test passes

    End:

    Original Message
    From: <sjohns10@h...>
    To: <basicstamps@yahoogroups.com>
    Sent: Saturday, March 31, 2001 11:22 PM
    Subject: [noparse][[/noparse]basicstamps] I/O


    > How do I get the stamp to constantly read the state of a pin and tell
    > it to do something based on the state of that pin? If I do something
    > like this:
    >
    > If pin 10=high then (address)?
    >
    > then it says Error: Expected a binary operator or ')' and it
    > highlights the "pin" part of the command. How exactly would I do
    > that? Please help!
    >
    >
    >
    >
    > Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    >
    >
    >
  • ArchiverArchiver Posts: 46,084
    edited 2001-10-22 18:43
    What is the greatest number of I/O's that have been successfully used with a
    Stamp? Does anyone have any hardware recommendations for this kind of
    expansion?

    Chris
  • ArchiverArchiver Posts: 46,084
    edited 2001-10-22 20:16
    > What is the greatest number of I/O's that have been successfully used
    with a
    > Stamp? Does anyone have any hardware recommendations for this kind of
    > expansion?

    If you use some Stamp pins for clock, strobe, and data you can use cascaded
    serial-parallel shift registers to add lots of digital inputs and outputs
    to your system. The biggest limitation will be the amount of memory you
    have to store the data being shifted in and out. Another limitation is you
    cannot use a single shift register pin for both input and output.

    To keep your system stable be sure to choose logic parts that have a strobe
    input that either transfers the data shifted into the part to the output
    drivers (for output shift registers) or latches the state of the parallel
    inputs (for input shift registers.

    Tim
  • ArchiverArchiver Posts: 46,084
    edited 2001-10-22 20:56
    Hi,

    I agree partially with Tim that storage capacity is the biggest limiting
    factor. If you however add a
    serial ram chip of 8kbytes (using addiotional pins for TX/RX) you can store
    8192 bytes for a total
    of 8x8192=65536 expanded I/O. So storage is not really the biggest liniting
    factor.
    Also if you use I2C rather than shiftregisters, pins can be used for inputs
    and outputs.
    The biggest linitation is speed of operation. Any application requires some
    minimal speed of operartion. Normally
    output pins are set depending on some inputs and some calculations. More
    inputs -> longer processing ->
    lower speed of operation (longer main loop cycle time). You can somewhat
    precalculate the speed of operation by looking
    at the required inputs you need, the required outputs and the processing.
    and then decide wether or not the stamp
    is the appropiate controller to use for your application.
    As far as hardware is concerned, I can only reference to our own design
    (http://www.boselectro.nl/synop.html) that
    offers 80 digital I/O on a single board. I do recall however, if I am not
    mistaken, a post from someone which had
    a system offering 1024 I/O.

    Regards peter



    Oorspronkelijk bericht
    Van: Tim McDonough [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=v6-V5JDYA2sjjThye5Nt6NrsZuSBu4-lCn_s8zbk1Qi8v_RQVMeLIyyscLJRuAT3QoFE4vh1OrFS6jkr]tim@m...[/url
    Verzonden: maandag 22 oktober 2001 20:17
    Aan: basicstamps@yahoogroups.com
    Onderwerp: Re: [noparse][[/noparse]basicstamps] I/O

    > What is the greatest number of I/O's that have been successfully used
    with a
    > Stamp? Does anyone have any hardware recommendations for this kind of
    > expansion?

    If you use some Stamp pins for clock, strobe, and data you can use cascaded
    serial-parallel shift registers to add lots of digital inputs and outputs
    to your system. The biggest limitation will be the amount of memory you
    have to store the data being shifted in and out. Another limitation is you
    cannot use a single shift register pin for both input and output.

    To keep your system stable be sure to choose logic parts that have a strobe
    input that either transfers the data shifted into the part to the output
    drivers (for output shift registers) or latches the state of the parallel
    inputs (for input shift registers.

    Tim



    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 2003-04-18 07:51
    Can someone help explain this? This is gonna sound silly... but where it
    explains it in my project is a pdf file. Like they are all pdf files. The
    last half of the sentence explaining is currupt there is all white space
    (laughing out loud). I understand that you can address all the pins like
    in 4, 8 and 16 groups. From 0-3 if four bits, and so on. But whats the 15
    stuff? I know there is something about a direction and something else?
    DAC:
    dirb = 15
    outb = n
    return
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-18 13:27
    Keep in mind that each Stamp pin can be set as an input or output. This is
    controlled by the Dirs register -- 16 bits, one bit per pin. If the
    associated bit in Dirs is one, the pin will be an output; if zero (default
    after reset) the pin is an input.

    Dirs can be broken down into groups:

    Dirs
    DirH, DirL
    DirD, DirC, DirB, DirA
    Dir15 ... Dir0

    In your example, DirB is being set to 15 which is %1111 in binary -- so all
    of the pins in this group (pins 4 .. 7) are being set to outputs, then the
    value of n is being placed on those outputs.

    This stuff is covered pretty thoroughly in the manual.

    -- Jon Williams
    -- Parallax


    In a message dated 4/18/2003 1:48:21 AM Central Standard Time,
    dark_archon1@j... writes:

    > Can someone help explain this? This is gonna sound silly... but where it
    > explains it in my project is a pdf file. Like they are all pdf files. The
    > last half of the sentence explaining is currupt there is all white space
    > (laughing out loud). I understand that you can address all the pins like
    > in 4, 8 and 16 groups. From 0-3 if four bits, and so on. But whats the 15
    > stuff? I know there is something about a direction and something else?
    > DAC:
    > dirb = 15
    > outb = n
    > return



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-19 08:07
    So you are telling me that:
    dirb = 15
    Is setting p4, p5, p6 and p7 high???
    From what I do understand the "out" word is used to set outputs I thought
    I would do:
    outb = 15
    To set p4, p5, p6 and p7 high. Thats why I'm assigning it to a variable
    thats a nibble. Well you didn't know that but still... Now I'm really
    confused. I don't understand the word "dir" but it says it has something
    to do with "I/O pin direction control" here in the book so I'm making the
    assumption it has something to do with controlling the direction of
    something...?
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-19 20:20
    At 03:07 AM 4/19/2003, you wrote:
    >So you are telling me that:
    >dirb = 15
    >Is setting p4, p5, p6 and p7 high???
    > >From what I do understand the "out" word is used to set outputs I thought
    >I would do:
    >outb = 15
    >To set p4, p5, p6 and p7 high. Thats why I'm assigning it to a variable
    >thats a nibble. Well you didn't know that but still... Now I'm really
    >confused. I don't understand the word "dir" but it says it has something
    >to do with "I/O pin direction control" here in the book so I'm making the
    >assumption it has something to do with controlling the direction of
    >something...?

    dir - Sets the I/O DIRection weather or not it is an INPUT or an OUTPUT...
    I "think" if I remember correctly the analogy that I used to get it
    straight
    in my head was that a "1" closely resembles an "I" for INPUT where
    a "0" represents an "O" for Output. Set these bits so that they
    correspond to how you will utilize the I/O pin, be it an Input or
    Output.
    Note: You can change this at any time in the program if the pin is
    required
    to change it's I/O status.

    out - Sets the OUTPUT State to a HIGH or LOW and has no effect on a pin
    set as an INPUT.


    -Beau Schwabe
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-19 20:24
    I think I get it...

    dira = %1111

    Will set p0-p3 as outputs, and they will be low until you make them high.
    From what I got in the v2 manual they are all low when you first make
    them outputs.

    outa = %1111

    Will make all of the outputs go high.
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-20 22:26
    This may have already been said, but:

    when you do 'OUTB = %1111', the Stamp first converts
    the pins to output, then sets them high, in one action.
    It doesn't care if they had been set as inputs before.


    --- In basicstamps@yahoogroups.com, Hudson T Clark
    <dark_archon1@j...> wrote:
    > I think I get it...
    >
    > dira = %1111
    >
    > Will set p0-p3 as outputs, and they will be low until you make them
    high.
    > From what I got in the v2 manual they are all low when you first
    make
    > them outputs.
    >
    > outa = %1111
    >
    > Will make all of the outputs go high.
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-20 22:41
    This not correct. OUTB is a nibble sized variable that is the output
    register for pins 4 - 7; changing the contents of OUTB only affects those
    pins in that group that are set to outputs (setting is in DIRB; 1 = output, 0
    = input).

    You are confusing OUTB with the OUTPUT command, which only works with single
    pins.

    -- Jon Williams
    -- Parallax

    In a message dated 4/20/2003 4:27:35 PM Central Standard Time,
    allan.lane@h... writes:

    > This may have already been said, but:
    >
    > when you do 'OUTB = %1111', the Stamp first converts
    > the pins to output, then sets them high, in one action.
    > It doesn't care if they had been set as inputs before.



    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-04-20 23:00
    Oops.
    I tend to only work with the OUTPUT, HIGH, and LOW command, so you
    are correct.

    HIGH 13
    PAUSE 100
    LOW 13

    will make pin 13 an output, put a high on it, wait
    100 mS, then put a low on it. It will be left as an
    output.

    --- In basicstamps@yahoogroups.com, jonwms@a... wrote:
    > This not correct. OUTB is a nibble sized variable that is the
    output
    > register for pins 4 - 7; changing the contents of OUTB only affects
    those
    > pins in that group that are set to outputs (setting is in DIRB; 1 =
    output, 0
    > = input).
    >
    > You are confusing OUTB with the OUTPUT command, which only works
    with single
    > pins.
    >
    > -- Jon Williams
    > -- Parallax
    >
    > In a message dated 4/20/2003 4:27:35 PM Central Standard Time,
    > allan.lane@h... writes:
    >
    > > This may have already been said, but:
    > >
    > > when you do 'OUTB = %1111', the Stamp first converts
    > > the pins to output, then sets them high, in one action.
    > > It doesn't care if they had been set as inputs before.
    >
    >
    >
    > [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-12 21:42
    WHat is the best way to expand the I/O in BS2?

    Thank you

    Edson
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-12 22:01
    That depends on what you want to do? Digital? In or out? Analog? In
    or out?

    If you're looking for simple digital input expansion a couple of really
    simple parts to work with are the 74x165 (inputs) and its complement,
    the 74x595. They are both serial/parallel devices and need just three
    pins each -- and you can share the clock line so with just five Stamp
    pins you can get a bunch of extra I/O space.

    Our StampWorks book has experiments with both chips and I wrote a Nuts &
    Volts column a couple years ago that shows how to tie them together.
    Everything is available for download (as a PDF) from our web site.

    -- Jon Williams
    -- Applications Engineer, Parallax
    -- Dallas Office


    Original Message
    From: h40miami [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=826UgFre51zH3qkK0o193Topm7SsEk085NapuiIj8MD91bixLn9cSmST114ISXHZX-KsQr2LTuVq]h40miami@y...[/url
    Sent: Tuesday, August 12, 2003 3:42 PM
    To: basicstamps@yahoogroups.com
    Subject: [noparse][[/noparse]basicstamps] I/O


    WHat is the best way to expand the I/O in BS2?

    Thank you

    Edson


    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/




    This message has been scanned by WebShield. Please report SPAM to
    abuse@p....
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-12 22:05
    In a message dated 8/12/2003 1:44:28 PM Pacific Daylight Time,
    h40miami@y... writes:

    > WHat is the best way to expand the I/O in BS2?
    >
    > Thank you
    >
    > Edson

    If you want to expand only outputs, use a 74HC595. The Parallax web sight has
    good documentation how to hook them up and example code.

    If you need to expand inputs and outputs, I recommend a 74LS299. This one IC
    can act as both expanded input and output.

    The IC expands input by recieveing parallel data, which is then fed to the
    stamp via the SHIFTIN command. The IC can also expand output by recieving data
    from the stamp via the SHIFTOUT command and send it to parallel output ports.

    SHIFTIN EXAMPLE
    'April 27, 2002.
    'program used to test operation of shift in command
    'using a 74LS299 shift register IC
    'set pins 0,1,2,3,4,8,9 as outputs all others are inputs
    'stamp connected to LS299 as follows:
    'stamp LS299
    'p0 1 - s0
    'p1 19 - s1
    'p2 11 - sr
    'p3 18 - sl
    'p4 12 - clock
    'p5 8 - Qa
    'p6 17 - Qh
    'p7 10k resistor & 0.1 uf cap to ground, switch +5 to p7
    'p8 2 & 3 G1 & G2
    'p9 9 - clear pin
    dirs = $031f
    ken var byte 'define 8 bit variable named ken
    outa = $0 'set pins 0 through 3 logic 0
    out4 = 0 'set pin 4 (clock) logic 0
    out8 = 0 'set G1 & G2 of LS299 logic 0 (I/O pins of LS299 enabled)
    out9 = 1 'set pin 9 logic 1, precondition to toggle pin logic 0
    later
    loop: 'label
    if in7 = 1 then more 'check pin 7 if ready to perform
    'parallel load of input terminals
    goto loop 'if pin 7 logic 0 recheck pin 7
    more: 'label
    outa = $f 'make output pins 0 through 3 logic 1
    'pins s0 & s1 of LS299 ready for
    'parallel load of data
    out8 = 0 'set G1 & G2 of LS299 logic 0 (I/O pins of LS299 enabled)
    out0 = 0 'set pin 0 of stamp (S0 of LS299) to logic 0
    pulsout 9,1 'generate a 1 ms logic 0 pulse on pin 9 to clear LS299
    out0 = 1 'set S0 of LS299 to logic 1 allowing parallel load
    pulsout 4,1 'generate a 1 ms logic 1 pulse on pin 12 of LS299 (clock
    input)

    pause 200 'pause 200 ms
    out8 = 1 'make I/O pins of LS299 high impeadance state
    outa = $1 'make pin 0 logic 1 and pins 1,2,3 logic (shift right)
    shiftin 6,4,msbpre,[noparse][[/noparse]ken] 'shift in 8 bits from LS299, get data from

    'pin 6, clock pulse output on pin 4, read
    'msb prior to clock pulse, store in variable
    'named ken
    debug ? ken

    goto loop

    SHIFTOUT EXAMPLE FROM PARALLAX
    ' Program: 74HC595.BS2 (Demonstrate 74HC595 shift register with Shiftout)
    ' This program demonstrates the use of the 74HC595 shift register as an
    ' 8-bit output port accessed via the Shiftout instruction. The '595
    ' requires a minimum of three inputs: data, shift clock, and latch
    ' clock. Shiftout automatically handles the data and shift clock,
    ' presenting data bits one at a time on the data pin, then pulsing the
    ' clock to shift them into the '595's shift register. An additional
    ' step--pulsing the latch-clock input--is required to move the shifted
    ' bits in parallel onto the output pins of the '595.

    ' Note that this application does not control the output-enable or
    ' reset lines of the '595. This means that before the Stamp first
    ' sends data to the '595, the '595's output latches are turned on and
    ' may contain random data. In critical applications, you may want to
    ' hold output-enable high (disabled) until the Stamp can take control.

    DataP con 0 ' Data pin to 74HC595.
    Clock con 1 ' Shift clock to '595.
    Latch con 2 ' Moves data from shift register to output latch.
    counter var byte ' Counter for demo program.

    ' The loop below moves the 8-bit value of 'counter' onto the output
    ' lines of the '595, pauses, then increments counter and repeats.
    ' The data is shifted msb first so that the most-significant bit is
    ' shifted to the end of the shift register, pin QH, and the least-
    ' significant bit is shifted to QA. Changing 'msbfirst' to 'lsbfirst'
    ' causes the data to appear backwards on the outputs of the '595.
    ' Note that the number of bits is _not_ specified after the variable
    ' in the instruction, since it's eight, the default.
    Again:
    Shiftout DataP,Clock,msbfirst,[noparse][[/noparse]counter] ' Send the bits.
    pulsout Latch,1 ' Transfer to outputs.
    pause 50 ' Wait briefly.
    counter = counter+1 ' Increment counter.
    goto Again ' Do it again.




    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-12 22:33
    Can't both the clock and data lines be shared, so that it only takes four
    Stamp pins to accomplish what you suggested?
    Bruce


    Original Message
    From: "Jon Williams" <jwilliams@p...>
    To: <basicstamps@yahoogroups.com>
    Sent: Tuesday, August 12, 2003 2:01 PM
    Subject: RE: [noparse][[/noparse]basicstamps] I/O


    > That depends on what you want to do? Digital? In or out? Analog? In
    > or out?
    >
    > If you're looking for simple digital input expansion a couple of really
    > simple parts to work with are the 74x165 (inputs) and its complement,
    > the 74x595. They are both serial/parallel devices and need just three
    > pins each -- and you can share the clock line so with just five Stamp
    > pins you can get a bunch of extra I/O space.
    >
    > Our StampWorks book has experiments with both chips and I wrote a Nuts &
    > Volts column a couple years ago that shows how to tie them together.
    > Everything is available for download (as a PDF) from our web site.
    >
    > -- Jon Williams
    > -- Applications Engineer, Parallax
    > -- Dallas Office
    >
    >
    >
    Original Message
    > From: h40miami [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=1-JiMAaT19-XbrZ9z7ygy2ZGoGJZSvggp4xUZI4njPGi9E5gJ3l7GdE0rDmwTLzh27dVkR32x0c]h40miami@y...[/url
    > Sent: Tuesday, August 12, 2003 3:42 PM
    > To: basicstamps@yahoogroups.com
    > Subject: [noparse][[/noparse]basicstamps] I/O
    >
    >
    > WHat is the best way to expand the I/O in BS2?
    >
    > Thank you
    >
    > Edson
    >
    >
    > 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/
    >
    >
    >
    >
    > This message has been scanned by WebShield. Please report SPAM to
    > abuse@p....
    >
    >
    >
    >
    > 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 2003-08-12 22:56
    In a message dated 8/12/2003 5:39:56 PM Eastern Standard Time,
    phasor@e... writes:


    > Can't both the clock and data lines be shared, so that it only takes four
    > Stamp pins to accomplish what you suggested?
    >

    Clock and data can be shared. Latch lines must be separate. I am running
    three daisy-chained 595s with 5 lines.

    Sid Weaver
    W4EKQ
    Port Richey, FL


    [noparse][[/noparse]Non-text portions of this message have been removed]
  • ArchiverArchiver Posts: 46,084
    edited 2003-08-12 23:06
    In a message dated 8/12/2003 5:39:56 PM Eastern Standard Time,
    phasor@e... writes:


    > Can't both the clock and data lines be shared, so that it only takes four
    > Stamp pins to accomplish what you suggested?
    >

    Correction - I'm using 3 lines, not 5.

    Sid


    [noparse][[/noparse]Non-text portions of this message have been removed]
Sign In or Register to comment.