Sending commands between stamp''s (networking)
Archiver
Posts: 46,084
I wrote an article about slaving one Stamp to another a while back:
http://www.parallax.com/dl/docs/cols/nv/vol3/col/81.pdf
Since the Stamps run independently, you'll have to create a protocol for
exchanging data. This can be simple to complex -- the requirements are
yours. Generally, however, with small systems and a direct connection a
simple protocol will work fine.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: djrevolution99 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=aHagzben49WubV4KbxRRNmTksIl8LMPy5uX5e6ussg91XYbzxqgRAFKP8VV6zLX2DXHUj37a8nhN8NL0bJ66zZ_yxw]djrevolution99@y...[/url
Sent: Monday, November 17, 2003 1:48 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Sending commands between stamp's (networking)
i was wondering on how to network two basic stamp 2's together, my
project of the month is have two stamp 2's working together, one
would be gathering snesor input data from ADC's and the other would
be triggered and output a result from the other bs2....
the application is a fuel injection system on a two cylender
engine... both pistons on the crank shaft go up and down at same
time, but the timeing on the camshaft shows that the second piston is
180' degree's offset of the camshaft....
what i want to try to do is have the first basic stamp 2 perform the
sensor data from the thottle body postion, and the intake manfiold
presure useing the max 187 analog to digtial conveter...
the first basic stamp 2 would contiunlusly loop over and over
gathering data from the thottle postion and intake manifold presure..
the second basic stamp 2 would only work as a trigger, this stamp
would be triggered from the crank shaft and cam shaft postions. Once
triggered it would open the injectors , corresponding to there
locations, if both crank and cam shaft sensors were high, the stamp
would only trigger the first injector , if the camshaft was low and
crankshaft was high , the stamp would only open the second injector,
and keep looling....
And finaly hear is the question i ask, how would u communicate both
of the stamps with there variables, there is two variables in the
first stamp 2 that i want to send and receave on the over stamp 2...
but the second stamp will only run its main routine from which the
crank/cam sensors, are triggered and then run the rountine
to "receave" the variables from the first stamp 2's sensors, after it
would see the vaierables it would then do a lookup command from a
table of data for those vaules...
if anyone can help id apperiate it, i dont know if any this makes
sense , bottom line is i want to send a variable from one stamp to
another based on a request/trigger.
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....
http://www.parallax.com/dl/docs/cols/nv/vol3/col/81.pdf
Since the Stamps run independently, you'll have to create a protocol for
exchanging data. This can be simple to complex -- the requirements are
yours. Generally, however, with small systems and a direct connection a
simple protocol will work fine.
-- Jon Williams
-- Applications Engineer, Parallax
-- Dallas Office
Original Message
From: djrevolution99 [noparse]/noparse]mailto:[url=http://forums.parallaxinc.com/group/basicstamps/post?postID=aHagzben49WubV4KbxRRNmTksIl8LMPy5uX5e6ussg91XYbzxqgRAFKP8VV6zLX2DXHUj37a8nhN8NL0bJ66zZ_yxw]djrevolution99@y...[/url
Sent: Monday, November 17, 2003 1:48 AM
To: basicstamps@yahoogroups.com
Subject: [noparse][[/noparse]basicstamps] Sending commands between stamp's (networking)
i was wondering on how to network two basic stamp 2's together, my
project of the month is have two stamp 2's working together, one
would be gathering snesor input data from ADC's and the other would
be triggered and output a result from the other bs2....
the application is a fuel injection system on a two cylender
engine... both pistons on the crank shaft go up and down at same
time, but the timeing on the camshaft shows that the second piston is
180' degree's offset of the camshaft....
what i want to try to do is have the first basic stamp 2 perform the
sensor data from the thottle body postion, and the intake manfiold
presure useing the max 187 analog to digtial conveter...
the first basic stamp 2 would contiunlusly loop over and over
gathering data from the thottle postion and intake manifold presure..
the second basic stamp 2 would only work as a trigger, this stamp
would be triggered from the crank shaft and cam shaft postions. Once
triggered it would open the injectors , corresponding to there
locations, if both crank and cam shaft sensors were high, the stamp
would only trigger the first injector , if the camshaft was low and
crankshaft was high , the stamp would only open the second injector,
and keep looling....
And finaly hear is the question i ask, how would u communicate both
of the stamps with there variables, there is two variables in the
first stamp 2 that i want to send and receave on the over stamp 2...
but the second stamp will only run its main routine from which the
crank/cam sensors, are triggered and then run the rountine
to "receave" the variables from the first stamp 2's sensors, after it
would see the vaierables it would then do a lookup command from a
table of data for those vaules...
if anyone can help id apperiate it, i dont know if any this makes
sense , bottom line is i want to send a variable from one stamp to
another based on a request/trigger.
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....