Connecting 2 stamps
blacksheep45
Posts: 41
hello,
Does anyone·know how i would be go about physically connecting two bs2pe stamps together?
Also·what code i would need to use to get it to run through the programs on the 1st stamp and then go onto run·the programs on the second stamp.
Kind Regards
Shaun
Does anyone·know how i would be go about physically connecting two bs2pe stamps together?
Also·what code i would need to use to get it to run through the programs on the 1st stamp and then go onto run·the programs on the second stamp.
Kind Regards
Shaun
Comments
http://www.parallax.com/Store/Books/BASICStamp/tabid/168/CategoryID/42/List/0/Level/a/ProductID/143/Default.aspx?SortField=ProductName%2cProductName
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Parallax Tech Support·
Would connecting the stamps in this way allow me to run through all the programs·on the 1st stamp and then go onto the programs on the 2nd stamp?
Regards
Shaun
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Parallax Tech Support·
That's an interesting approach; I like it! A serial SRAM like this one or this one would make the process more efficient — at least between Stamps in the BS2p family — and eliminate any write-durability concerns. Not only does it allow the receiver to retrieve the data at its leisure, but it also has the potential to be faster than a direct serial link.
-Phil
Post Edited (Phil Pilgrim (PhiPi)) : 12/18/2008 6:32:17 PM GMT
using only one port Rx/Tx per stamp. The PBASIC code is
very simple too. This project software goes up to 20 stamps,
but you can start with two and it works just fine. There's an
added resistor as seen in the circuit diagram.
http://forums.parallax.com/showthread.php?p=765140
humanoido
If all You need is "STAMP1" to run out its code or exercise then move on to STAMP2 then You dont really need a COM link.Just an I/O pin to another $STAMP to say "Its Your Turn"-$STAMP2.
If You can be more specific on what Your after, I think this post will help You
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there·········································· E=$WMc%2
While it uses a Parallax Super Carrier Board and BS2px
board, you could do the same with a single stamp on the
Parallax Professional Development Board.
http://forums.parallax.com/showthread.php?p=765140
humanoido
I am using a parallel LCD and i was wondering if the Serin/Serout commands would work with this or if there was an alternative for parallel LCDs.
Kind Regards
Shaun
The best bet is a serial LCD which only takes 1 pin and you do use SEROUT to send information.
A good way to do it is to use a normal parallel LCD with a serial "backpack".
One that I've had a great deal of success with is the #117 LCD backpack by Peter H. Anderson.
(www.phanderson.com)
Mr. Anderson sells the #117 in kit form, kit with a nice LCD and a fully assembled version with an LCD.
If you have any soldering skills, I recommend the kit form and some perf board to build your own backpack...
its pretty darned easy once you figure out the instructions he sends (they are hand written).
If you can't solder, then just get the #117 in assembled form with a LCD. It looks nicer that way anyways.
You can also often find the #117 on ebay, sometimes assembled, sometimes not.
If you need help with the schematics/instructions then feel free to drop me a PM.
I was wondering how i would go about connecting two bs2p40 chips using a parallel LCD as i am unsure if the serin/serout commands will still work at all or in the same way, could someone please help me.
Kind Regards
Shaun
Alternately, you could just hope that they don't conflict. If there are relatively infrequent updates, you can just have then send the commands as if the other one weren't there.
one stamp, and connect the two stamps together on another
pin. You can send serial commands back and forth between
stamps and one stamp can update the parallel LCD. The pin
isolation assures there is no conflict.
humanoido
Would you be able to show me some example code for this as i have tried using some of my own code but i cannot get this to work.
Kind Regards
Shaun
E
RW
RS
DB4
DB5
DB6
DB7
On the·BS2p40 the fifth pin from the left on the bottom row is pin 0.
Also the Master chip is plugged into a parallax PDB.
Hope someone can help.
Your programs look like they're nearly identical. That means that both Stamps are trying to control the signals to the LCD at the same time and, since the timing between them isn't perfect, one Stamp will try to make an I/O pin HIGH at the same time that the other Stamp will try to make the I/O pin LOW and you'll have a short circuit that may damage one or both I/O pins.
On the serial I/O connection, even if only one Stamp transmits at a time, there are programming errors that can occur and the same thing will happen (I/O pin burnout).
The second is the code on the master, which was a BS2px. With this module I was able to have a nice I2C routine to use.
I set the EEPROM up as expected on one of the BOE boards, and used a jumper on the expansion I/O pins (that strip between the BS2 and breadboard) to get the other module to talk. Note that this method works, but it's really quite slow.
Sorry, i do have a resistor connecting the 2 stamps but i forgot to put it in the drawing, it is a 1k resistor, is this to high?
Kind Regards
Shaun
Would you be able to show me some code that would allow the 2 stamps to communicate with each other the way they are currently connected, as i am really struggling to get the stamps to communicate with each other.
Kind Regards
Shaun