Yes, I guess you could -- will have to breadboard it to make sure
there's no conflict isn't coming to mind. You _MUST_ have different
latching pins if you do this, otherwise you will run into problems.
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.
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.
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]
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.
I have been running two daisy chained 595s and an ADC0831 using just four
pins with no problems, and am about to add a DS1267 which will share data
and clock pins so I'll need just 5 pins for these four devices.
Bruce
Original Message
From: <Newzed@a...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, August 12, 2003 3:14 PM
Subject: Re: [noparse][[/noparse]basicstamps] I/O
> In a message dated 8/12/2003 6:13:33 PM Eastern Standard Time,
> jwilliams@p... writes:
>
>
> > Shouldn't it be four?
> >
> > Clock
> > Data
> > 595 Latch
> > 165 Strobe
> >
>
> Jon, I'm just running the 595s so it only take three.
>
> Sid
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> 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/
>
>
>
Here is a fun way to get deeper into 165s & 595s and see their internal
workings. You will be controlling them with your BS2 and Virtual Push
Buttons on the PC, seeing LEDs not only for the Control lines, but also the
INTERNAL bits.
You can 'Re-Wire' the PBs to the different control signals using BS2 code -
for example the 'ManSR_Out.BS2' code for the 595 currently says:
SROut_Ld = PB_Ld 'Shift Register Load signal receives PC Load Push Button
Change the 'BS2 SOFTWARE' to:
SROut_Ld = PB_Clk
and see what happens to the 595 on the PC screen as you Toggle the Clock
Button.
You are then feeding the Clock Push Button not only to the Clock signal, but
also to the Load Signal - NO WIRING, NO HASSLE, you do not even leave your
comfortable chair - and you cannot blow the Shift Register, there isn't
one - but you do have an infinitely clearer picture of what is happening
inside that Shift Register thanks to the PC virtual screen.
The involvement of your Stamp is no more than the programming port when
running 100% Virtual - it will not upset any current projects - it is using
only Virtual I/O on your PC screen!
If you like that, get into Multiplexing 7 Segment Displays and even
multi-digits using those very same Shift Registers (which you are now an
authority on).
Finally run the Stepper Motor Projects - everyone learns something new from
those.
Optionally, they also demonstrate the mixing of both Real and Virtual
I/O (not 100% Virtual as above) - a 'Real Pot' controls the speed and
direction of a 'Virtual Stepper' on the PC screen.
There are 20+ Projects total to play with - then start using all the other
functions for real-world professional enhancements to your own Projects,
whether Industrial, Hobby or Home.
At this time all of the above needs to be from my memory (& not too good) -
questions are welcome and I will correct whatever tomorrow.
David Lawrence
Original Message
From: Bruce Colley <phasor@e...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, August 12, 2003 3:20 PM
Subject: Re: [noparse][[/noparse]basicstamps] I/O
> I have been running two daisy chained 595s and an ADC0831 using just four
> pins with no problems, and am about to add a DS1267 which will share data
> and clock pins so I'll need just 5 pins for these four devices.
> Bruce
>
>
Original Message
> From: <Newzed@a...>
> To: <basicstamps@yahoogroups.com>
> Sent: Tuesday, August 12, 2003 3:14 PM
> Subject: Re: [noparse][[/noparse]basicstamps] I/O
>
>
> > In a message dated 8/12/2003 6:13:33 PM Eastern Standard Time,
> > jwilliams@p... writes:
> >
> >
> > > Shouldn't it be four?
> > >
> > > Clock
> > > Data
> > > 595 Latch
> > > 165 Strobe
> > >
> >
> > Jon, I'm just running the 595s so it only take three.
> >
> > Sid
> >
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
> >
> >
> > 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/
> >
> >
> >
>
>
> 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/
>
>
That is a very open ended question. Expand the I/O to do what?
The answer is simple' "It depends."
If you want to do servo control, I'd suggest a servo controller. If
you are controlling a walker robot or arm, use a ramping type servo
controller (you can look at my Co-Processor at
www.bluebelldesign.com).
If you want to read analog voltages, try an A/D (Analog to Digital)
converter. Multi-channel ones are available which will add pins. My
servo controller and some others also have A/D inputs.
If you want to run a robot, or do servo control, or read A/D, you
can look at my Co-Processor at www.bluebelldesign.com.
If you just want to light a bunch of lights or look at a bunch of
contacts, you can use a 74HCT595 Ser to Parallel Output chip or a
74HTC165 Parallel to Serial Input chip as suggested by Allan Lane in
another posting. You would not be able to control a servo from the
74HCT595 and you can't do PULSEIN from the 165.
The Stamp I/O has some powerful features. The expansion techniques
above don't exactly match what you can do with a Stamp. In some
cases the new ports are more powerful, in other cases they are much
less powerful.
You can also go to the 2p40 chip to get more true Stamp I/O. It
doesn't answer expanding the BS2 but it is an option.
Other times you don't have to add pins at all but be more clever in
how you use what is there already.
You need to decide what you are trying to do before deciding how
many pins you need and how to expand them. Or, if you decided
already, add it in the question posting to get suggestions more
directed to what you need.
If what I just wrote seems like it makes no sense, you can look up
some great articles from Nuts & Volts magazine that are available
for free download from www.parallax.com. There are lots of different
problems and solutions for your study.
Harry
Stamp Robotics to the next level
www.bluebelldesign.com
--- In basicstamps@yahoogroups.com, "h40miami" <h40miami@y...> wrote:
> WHat is the best way to expand the I/O in BS2?
>
> Thank you
>
> Edson
Comments
there's no conflict isn't coming to mind. You _MUST_ have different
latching pins if you do this, otherwise you will run into problems.
-- Jon Williams
-- Parallax
Original Message
From: Bruce Colley [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=Rno6XlRCkA8l_jCSyG4cjL8eFlT0GxgZEnJ11eB37C8SjvmcIobHQ4pUF8HG160lMeebpyQUO_oVzdt6]phasor@e...[/url
Sent: Tuesday, August 12, 2003 4:33 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] I/O
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=VeUyjEH2WRDhiA8Cuj9zv4EHnBbJHT4uica5Dq6RwPRGIi3zyUk0tUm4WaEodtGo9thfU3PVrnY]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/
>
>
>
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....
Clock
Data
595 Latch
165 Strobe
-- Jon Williams
-- Parallax
Original Message
From: Newzed@a... [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=re_CcMBUKtvYc9wSu9bPSYjaV0mtAWCCm8My5kAJme1UAZ5lpsg9FwJY4QbgGILexdRYLvZsrMg]Newzed@a...[/url
Sent: Tuesday, August 12, 2003 5:07 PM
To: basicstamps@yahoogroups.com
Subject: Re: [noparse][[/noparse]basicstamps] I/O
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]
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....
jwilliams@p... writes:
> Shouldn't it be four?
>
> Clock
> Data
> 595 Latch
> 165 Strobe
>
Jon, I'm just running the 595s so it only take three.
Sid
[noparse][[/noparse]Non-text portions of this message have been removed]
pins with no problems, and am about to add a DS1267 which will share data
and clock pins so I'll need just 5 pins for these four devices.
Bruce
Original Message
From: <Newzed@a...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, August 12, 2003 3:14 PM
Subject: Re: [noparse][[/noparse]basicstamps] I/O
> In a message dated 8/12/2003 6:13:33 PM Eastern Standard Time,
> jwilliams@p... writes:
>
>
> > Shouldn't it be four?
> >
> > Clock
> > Data
> > 595 Latch
> > 165 Strobe
> >
>
> Jon, I'm just running the 595s so it only take three.
>
> Sid
>
>
> [noparse][[/noparse]Non-text portions of this message have been removed]
>
>
> 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/
>
>
>
Here is a fun way to get deeper into 165s & 595s and see their internal
workings. You will be controlling them with your BS2 and Virtual Push
Buttons on the PC, seeing LEDs not only for the Control lines, but also the
INTERNAL bits.
You can 'Re-Wire' the PBs to the different control signals using BS2 code -
for example the 'ManSR_Out.BS2' code for the 595 currently says:
SROut_Ld = PB_Ld 'Shift Register Load signal receives PC Load Push Button
Change the 'BS2 SOFTWARE' to:
SROut_Ld = PB_Clk
and see what happens to the 595 on the PC screen as you Toggle the Clock
Button.
You are then feeding the Clock Push Button not only to the Clock signal, but
also to the Load Signal - NO WIRING, NO HASSLE, you do not even leave your
comfortable chair - and you cannot blow the Shift Register, there isn't
one - but you do have an infinitely clearer picture of what is happening
inside that Shift Register thanks to the PC virtual screen.
The involvement of your Stamp is no more than the programming port when
running 100% Virtual - it will not upset any current projects - it is using
only Virtual I/O on your PC screen!
If you like that, get into Multiplexing 7 Segment Displays and even
multi-digits using those very same Shift Registers (which you are now an
authority on).
Finally run the Stepper Motor Projects - everyone learns something new from
those.
Optionally, they also demonstrate the mixing of both Real and Virtual
I/O (not 100% Virtual as above) - a 'Real Pot' controls the speed and
direction of a 'Virtual Stepper' on the PC screen.
There are 20+ Projects total to play with - then start using all the other
functions for real-world professional enhancements to your own Projects,
whether Industrial, Hobby or Home.
At this time all of the above needs to be from my memory (& not too good) -
questions are welcome and I will correct whatever tomorrow.
http://www.rhombus-tek.com/microgui.html#Demo
Learning:
http://www.rhombus-tek.com/gui-ed.htm
Support:
david@r...
Just download this free demo of 2.7M, self_extracting etc. and run some
projects and load their matching .BS2 files.
Projects mentioned above include:
ManSR_I 165
ManSR_O 595
ManSR_IO 165/595
AutSR_IO same
David Lawrence
Original Message
From: Bruce Colley <phasor@e...>
To: <basicstamps@yahoogroups.com>
Sent: Tuesday, August 12, 2003 3:20 PM
Subject: Re: [noparse][[/noparse]basicstamps] I/O
> I have been running two daisy chained 595s and an ADC0831 using just four
> pins with no problems, and am about to add a DS1267 which will share data
> and clock pins so I'll need just 5 pins for these four devices.
> Bruce
>
>
Original Message
> From: <Newzed@a...>
> To: <basicstamps@yahoogroups.com>
> Sent: Tuesday, August 12, 2003 3:14 PM
> Subject: Re: [noparse][[/noparse]basicstamps] I/O
>
>
> > In a message dated 8/12/2003 6:13:33 PM Eastern Standard Time,
> > jwilliams@p... writes:
> >
> >
> > > Shouldn't it be four?
> > >
> > > Clock
> > > Data
> > > 595 Latch
> > > 165 Strobe
> > >
> >
> > Jon, I'm just running the 595s so it only take three.
> >
> > Sid
> >
> >
> > [noparse][[/noparse]Non-text portions of this message have been removed]
> >
> >
> > 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/
> >
> >
> >
>
>
> 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/
>
>
Input: SPI based 74HTC165 Parallel to Serial Input chip.
--- In basicstamps@yahoogroups.com, "h40miami" <h40miami@y...> wrote:
> WHat is the best way to expand the I/O in BS2?
>
> Thank you
>
> Edson
The answer is simple' "It depends."
If you want to do servo control, I'd suggest a servo controller. If
you are controlling a walker robot or arm, use a ramping type servo
controller (you can look at my Co-Processor at
www.bluebelldesign.com).
If you want to read analog voltages, try an A/D (Analog to Digital)
converter. Multi-channel ones are available which will add pins. My
servo controller and some others also have A/D inputs.
If you want to run a robot, or do servo control, or read A/D, you
can look at my Co-Processor at www.bluebelldesign.com.
If you just want to light a bunch of lights or look at a bunch of
contacts, you can use a 74HCT595 Ser to Parallel Output chip or a
74HTC165 Parallel to Serial Input chip as suggested by Allan Lane in
another posting. You would not be able to control a servo from the
74HCT595 and you can't do PULSEIN from the 165.
The Stamp I/O has some powerful features. The expansion techniques
above don't exactly match what you can do with a Stamp. In some
cases the new ports are more powerful, in other cases they are much
less powerful.
You can also go to the 2p40 chip to get more true Stamp I/O. It
doesn't answer expanding the BS2 but it is an option.
Other times you don't have to add pins at all but be more clever in
how you use what is there already.
You need to decide what you are trying to do before deciding how
many pins you need and how to expand them. Or, if you decided
already, add it in the question posting to get suggestions more
directed to what you need.
If what I just wrote seems like it makes no sense, you can look up
some great articles from Nuts & Volts magazine that are available
for free download from www.parallax.com. There are lots of different
problems and solutions for your study.
Harry
Stamp Robotics to the next level
www.bluebelldesign.com
--- In basicstamps@yahoogroups.com, "h40miami" <h40miami@y...> wrote:
> WHat is the best way to expand the I/O in BS2?
>
> Thank you
>
> Edson