Simple RS232 Interface
hewy
Posts: 3
I hope I'm in the right place with this question. I am new to microcontrollers and am looking for a solution to a small problem. The short version is I need to be able to receive a data stream via RS232 (one way from the source), filter for specific message packets in the data stream, and drive specific relays in response to those specific packets. The purpose for this project is to provide video camera tally light control for a switcher that has no interface for the same. The controller for the switcher communicates with the switcher via RS232 and I have access to the specific data packets that indicate switching from one source to another. The plan is to split the RS232 signal with a buffered split so the tally light controller is receive only and does not interfer with the controller/switcher connection. I am hoping the something like a BASIC Stamp with the appropriate interfaces and programming will fit the bill. Any suggestions or advice will be greatly appreciated. Thanks!
Comments
How many relays and what kind of rating do they need to have? You can drive 3.3V coil reed relays directly from the Propeller's I/O pins. I've used USRelays (here at DigiKey). You'll need a diode reverse connected across the coil (a 1N914 will do) to absorb the reverse voltage surge when the I/O pin is turned off. This particular relay can handle loads up to 500mA.
I would get a QuickStart board and a QuickStart Prototyping board for the relay(s) and RS232 interface and connector. You can power the stacked boards via the USB connector that's used for programming and debugging. Once it's done, you could still power it via USB, but use a USB charger instead of the PC's USB port. If you have some other 5V supply, you can connect that directly to the board instead of using the USB power.