Shop OBEX P1 Docs P2 Docs Learn Events
RS-232 Control of a projector? HELP... — Parallax Forums

RS-232 Control of a projector? HELP...

Rob SchultzRob Schultz Posts: 1
edited 2006-09-27 13:48 in BASIC Stamp
I would like to control the power up and power down of a a Dell5100MP projector via the RS-232 port on the rear.· I have a dry contact closure that I can use to a controller and then have the controller send one set up ASCII commands to turn the projector ON (contact closed) and another set of commands to turn the projector OFF (contact open).· Does anyone know where I would start in trying to make a device like this with a BASIC STAMP?· The connection to the projector must be at a Baud Rate: 19200, Data Bits: 8, Parity: None, and Stop Bits: 1.·

This seems like a very simple device that I would think would have already been made by someone else, but I haven't found it.· I haven't done any work with any Basic Stamp products so this project will be interesting.· I need to make a number of these to control some projectors I am installing.

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2006-09-27 10:46
    Rob -

    The "device" of which you speak is a Parallax PBASIC Stamp and possibly a MAX-232 (or equivalent) line driver IC, if needed smile.gif That should be all there is to it.

    If this were my project, I would opt for a BS-2SX, due to its greater speedand banked memory, but you may well be able to do it with an ordinary BS-2.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    <!--StartFragment -->
  • allanlane5allanlane5 Posts: 3,815
    edited 2006-09-27 13:48
    Yup, the BS2 is perfect for this.
    See the attached.· Note that like half the code is 'debounce' code for your contact press.

    This would work on the 'homework' board, or the full blown BS2 with BOE-board.

    Edit:· Hmm, reviewing this, I selected the 'baud mode' constant (that 16468 value) for 9600 baud.· You'll need to find the one for 19200 baud, and set the 'inverted' flag.

    Post Edited (allanlane5) : 9/27/2006 1:55:47 PM GMT
Sign In or Register to comment.