Communicating between the Propeller and Basic Stamp
blittled
Posts: 681
I'm planning a project using a Board of Education with a BS2 and a Propeller Protoboard and was wondering if anyone has done this. I can think of three options:
1. Serial - using FullDeplexSerial or the Basic Stamp Object
2. I2C - BS2 Master - and using Hippy's I2C Slave Object
3. Shift In/Out - using the Basic Stamp Object
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What electronics need - MORE POWER!!!!!!!
1. Serial - using FullDeplexSerial or the Basic Stamp Object
2. I2C - BS2 Master - and using Hippy's I2C Slave Object
3. Shift In/Out - using the Basic Stamp Object
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What electronics need - MORE POWER!!!!!!!
Comments
my personal favorite is a serial connection with FullDuplexSerial.
To me this is easier to handle. As its name already says the FullDuplexSerial
can receive and transmit at the same time on the cost of a cog just running FullDuplexSerial
with the other solutions the partners have to do handshaking all the time for communication
and as long as you wait for a shift-in using the basic-stamp-object this cog can do nothing else
With FullDuplexSerial send a command and go on with other things if you want or wait for the
answer as you like it
There is a hardware-issue if you want to connect a basic-stamp with the propeller directly
the bs is a 5V device and the propeller a 3.3V device
take a look into the thread how to safely interface a 5V-device to the propeller in the sticky-thread (darker blue always on top of all other threads)
best regards
Stefan
Check the Completed Projects Forum for the Basic Stamp Tower.
I describe an application in which a propeller (Spin Stamp) communicates with basic stamps.
I used JDCogSerial.spin as the communication program in this application.
Nick
I tried your SpinMaster and Module4 and got it working! I tried FullDuplexSerial and it didn't work. I found out my problem was adding a 10K resistor to both the receive and transmit lines on the propeller. The transmit line does not need the 10k resistor.
Now I can work on YABBA (Yet Another Boe Bot Adaptation) that will have both a BOE and a Protoboard. The BS2 will be the master handling a EB-500, 2 IR sensors and 4 QTI's while the propeller will handle the servos (via a PSC), HM55B compass, encoders, PING))) and a SRF-08.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
What electronics need - MORE POWER!!!!!!!