Shop OBEX P1 Docs P2 Docs Learn Events
Propeller working with the BS2 — Parallax Forums

Propeller working with the BS2

Calaway21Calaway21 Posts: 10
edited 2009-02-27 16:47 in Propeller 1
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

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2009-02-27 02:43
    A number of people have done this. It's pretty easy. On the Stamp end you'd use the SERIN and SEROUT statements and the Propeller would use one of the serial I/O objects like FullDuplexSerial that comes with the Propeller Tool. The specifics of what gets sent from one microcontroller to another depends on your application.

    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.
  • BradCBradC Posts: 2,601
    edited 2009-02-27 02:46
    Calaway21 said...

    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?

    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.
  • HannoHanno Posts: 1,130
    edited 2009-02-27 03:11
    Great Idea Brad! Time for OBC to run a Rube Goldberg competition- most complicated way to communicate...
    Hanno
  • WNedWNed Posts: 157
    edited 2009-02-27 03:44
    Hanno said...
    Great Idea Brad! Time for OBC to run a Rube Goldberg competition- most complicated way to communicate...
    Hanno

    ... using only items commonly found at the dentist! wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    "They may have computers, and other weapons of mass destruction." - Janet Reno
  • Calaway21Calaway21 Posts: 10
    edited 2009-02-27 16:47
    Thanks guys, this will help me out a lot.

    Calaway21
Sign In or Register to comment.