Propeller working with the BS2
Calaway21
Posts: 10
Hello everyone,
I am new here in the forums. However, I have been a Parallax customer for some time now. I hope that these forums live up to the Parallax reputation.
I am performing a little experiment. I have been using BASIC Stamps for a while and consider myself somewhat proficient in there implementation. I am now playing with the Propeller chip and trying to use it in one of my projects. What I would like to know is whether anyone has used the propeller and the BS2 in the same project having them communicate with each other. I would like to know how it was done and if it worked?
Thank you for your responses
Calaway21
I am new here in the forums. However, I have been a Parallax customer for some time now. I hope that these forums live up to the Parallax reputation.
I am performing a little experiment. I have been using BASIC Stamps for a while and consider myself somewhat proficient in there implementation. I am now playing with the Propeller chip and trying to use it in one of my projects. What I would like to know is whether anyone has used the propeller and the BS2 in the same project having them communicate with each other. I would like to know how it was done and if it worked?
Thank you for your responses
Calaway21
Comments
From a hardware standpoint, you just need to put a 4.7K or 10K resistor in each I/O lead between the Stamp and the Propeller, just like you'd do if you connected one Stamp to another ... to protect the chips from accidents where each chip sets their I/O pin to output state, but of opposite polarities (one HIGH, one LOW). This shouldn't happen, but mistakes get made and you don't want them to blow out a chip or I/O pin.
I've been thinking about this for a while. Now Hanno has OpenCV in Viewport, I figured you could use a BS2 to control 2 servos with little cocktail flags attached to the horns, and have the propeller look at the images using a camera and the OpenCV plugin. You could then have them talk to each other using Semaphore!
How about a LED and PhotoTransistor using Morse Code? (Automated Aldis Lamp!)
But seriously, the easiest way to do it is using standard Serial output/Input from the BS2 (is it SERIN/SEROUT?) and FullDuplexSerial or SimpleSerial on the propeller. You will have to use a resistor between the TX of the BS2 and RX of the propeller to protect the pin (as the BS2 is a 5V device and the Propeller is 3.3v) but that would be the easy way to do it.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Cardinal Fang! Fetch the comfy chair.
Hanno
... using only items commonly found at the dentist!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"They may have computers, and other weapons of mass destruction." - Janet Reno
Calaway21