Society of Robots - Robot Forum

Electronics => Electronics => Topic started by: ben23f on March 11, 2013, 05:19:36 PM

Title: PC controlled alarms
Post by: ben23f on March 11, 2013, 05:19:36 PM
Hi Everyone,

I  need to create a system of 12 different alarms that are triggered by on/off sensors. I need to have them all connected to a computer when an alarm is activated, a message appears on the computer  screen and an alarm sound starts, until the alarm is deactivated.

I was just wondering if i can do this direct with the computer and sensors or will i need a micro controller or a PLC? The system is for a vehicle so will run on 12V

Thanks
Title: Re: PC controlled alarms
Post by: Gertlex on March 11, 2013, 10:58:39 PM
Your best bet for cost/ease balance will probably be to have extra hardware such as an MCU for interfacing with the sensors.

For more specific help, you should provide more details, though.
Title: Re: PC controlled alarms
Post by: jwatte on March 11, 2013, 11:35:32 PM
What kind of computer? The easiest way to interface with a typical PC style computer is to use USB.

There are many microcontrollers that can interface with USB, and that can sense alarm signals (logic high/low inputs.) I like the Atmega32u4, which can be had on a board for < $20 from mattairtech.com and other places around the web.

A microcontroller could also drive a display and sound device directly, if you don't want to involve a PC-style computer. This all depends on what "interface with a computer" means.
Title: Re: PC controlled alarms
Post by: GearMotion on March 12, 2013, 02:00:02 PM
Use a USB interface board like the U421:  U421  (http://www.circuitgizmos.com/products/cgu421/cgu421.shtml)

What the U421 does:

The U421 is a USB solution that is pre-built, pre-programmed, and pre-tested and will get you interfacing your PC (Win/Linux) or Mac (OSX) to various devices in very little time! There is no USB device assembly, no driver development, and no firmware to write. In many cases the U421 can be plugged into an experimenter's breadboard and circuit interfacing can begin immediately. Demo software applications can be used "right out of the box".

The U421 provides a simple digital i/o interface for the PC (Win/Linux) or Mac (OSX) . Sixteen i/o lines from the microcontroller are provided. Commands can be sent to the U421 that change the i/o lines from input to output. I/O lines can be individually selected as inputs or outputs. The U421 supports commands to read the ports, and if the ports are set to output, to write to the ports.
Title: Re: PC controlled alarms
Post by: Tommy on March 13, 2013, 05:25:56 AM
Quote
I  need to create a system of 12 different alarms that are triggered by on/off sensors.

http://labjack.com/u3 (http://labjack.com/u3)

Tommy