Slashdot Mirror


Marking Time - Controlling a Noisemaker from a PC?

fallen1 asks: "My company is engaged in making trusses for various home, business, and industrial applications. One thing our truss plant does not have is a signal device to keep everyone on schedule for shift starts, breaks, lunch, and so on. Currently the plant manager is responsible for making sure everyone takes off when they are supposed to. This is, of course, highly inefficient and is causing problems. They approached me, asking to research into time control devices that can signal all the starts and stops (our time clock is integrated into our POS/sales system). Of course, one of my first stops was Slashdot ;-). Please keep in mind I am fairly new to Linux. So, in the interest of trying to keep the cost down, does anyone know of a Linux software/hardware combo that can control a horn or bell - as well as length of ring/tone - for multiple events? Any feedback would be greatly appreciated." A friend of mine once wired his CD remote control to the computer and wrote a simple timer in C: Voila! A simple alarm clock (assuming the remote was pointed in the right direction). A similar principle would also work here. You could tie a computer to the aux-in of an amp, which is in turn tied to LARGE speakers at both ends of the plant, and have it make the right noises at the right time. I'm sure this has been done in a variety of ways, before. If you've done something like this with a computer, particularly at an industrial scale, please share the details.

12 of 33 comments (clear)

  1. Cron and PC Speaker/Sound Card.... by jsimon12 · · Score: 3, Insightful

    Well, seeing as the computer has a good clock, just use cron to either :

    a. play an MP3/WAV/AU whatever over the sound card, which in turn is plugged into the speaker

    b. make some noise over the PC speaker (if for whatever reason you don't have a sound card, course this would require a little wiring, but not a whole hell of a lot)

    1. Re:Cron and PC Speaker/Sound Card.... by unitron · · Score: 2
      I would have cheerfully accepted (hey, it's only karma) any downward moderation ( troll, flamebait, etc) on the above comment except "redundant" (which it isn't, as nobady else at the time had pointed out that computer RTC's are notorious for being about as accurate as the old mechanical automobile clocks, and even worse if there's an operating system playing around with the settings) or "off-topic", which it isn't because the original question was about getting a noise made at a particular time or times, which requires using something that can actually keep time accurately.

      THIS post, by the way, IS off-topic.

      --

      I see even classic Slashdot is now pretty much unusable on dial up anymore.

  2. The simplest method is always best. by billn · · Score: 2

    No fancy serial port crap. No goofy controllers.

    Crontab.
    mpg123.
    Appropriate sound card drivers.
    A decently loud speaker setup.

    A refurbished laptop would work excellent for this. Even an old one. Hell, I gotta 133mhz sitting here. Gimme 50 bucks for it. I'll even do the install.

    Hm. No, I think I'll use it for a firewall. But you get the idea.

    --
    - billn
    1. Re:The simplest method is always best. by Suppafly · · Score: 2

      Hell, I gotta 133mhz sitting here. Gimme 50 bucks for it.

      how bout $30 plus shipping?

  3. Here's how I've seen it done by krangomatik · · Score: 2, Informative

    I've seen x86 hardware running linux being used to control bells, lights, radios, etc at firestations for dispatch alerting. It was done with some custom made hardware controlled from the serial port that had relays that were used to control the devices. It was a headless solution that took all its user input from at keypad and display on a multiline text lcd. I'm pretty sure the relay box and software was custom for this, but you may be able to find a vendor that sells gear like this. So, yes, its possible, but no I don't know of an off the shelf solution.

  4. The Easy Way by inKubus · · Score: 3, Interesting

    Step 1: FORGET LINUX

    Step 2: Go down to walmart and pick up 3 or 4 five-dollar alarm clocks.

    Step 3: Wire the speaker outputs of each alarm clock to your PA system.

    Label each clock for what the alarm is set for. Or maybe you could spend a few extra bucks and get one that has multiple alarms instead of 3 separate alarm clocks.

    Or even better, use windows, download a shareware program that plays sound events. Then you don't have to worry about compiling in sound support, x,y,z, the headaches, trials and tribulations you will go thru being "new to linux" just to get some stupid clock setup.

    Don't bother. I'm almost certain you can get some sort of standalone commercial timer unit also. For much cheaper.

    --
    Cool! Amazing Toys.
  5. You have got to be joking... by jo42 · · Score: 2, Insightful

    Forget cobbling up a Goldberg contraption. Go to your local marine store and buy some air power horns. Have the shop foreman blow the horns.

  6. If that's all the computer is going to do... by stienman · · Score: 2

    Honestly Linux is overkill, as is a full computer. Chances are, however, very good that speed of development is paramount - it doesn't have to work so good the first time, just make it work. Then we'll evaluate it and refine it.

    Therefore I'm going to stun, and yes, even shock, the slashdot crowd. I may be publicly skewered, but in the interest of your job and sanity:

    Use DOS - 6.22 ought to work fine, but whatever you can find lying around will work. Make a simple QBasic program that has a simple interface, and makes simple sounds. It all fits onto one floppy disk, and runs under dos 3.x, through windows .NET server, including every reasonable Linux/Unix/BSD solution you can come up with.

    Make it do simple beeps to the PC speaker and amplify it, or hook the parallel port up to a large bell or beeper. It'll fit on a single floppy, and will run on that old accounting computer no one wants to use.

    If you want to have different sounds you can throw a sound card and hard drive in there and load a simple dos WAV player which won't take much CPU power. These can be called from Qbasic (or your language of choice - Turbo C 2 is free and comes with a useful IDE)

    This project should take you an hour if you buy a PA system from Radio Shack. Your Boss will be impressed at your elite hacking skills, and you will be revered by workers across the factory floor.

    And when you leave/get fired you can have it play "Who let the dogs out" or somesuch.

    -Adam

  7. Get The Work Alerter by gorillasoft · · Score: 3, Insightful

    Don't bother setting up a computer system and hacking something out. Instead, just use something like The Work Alerter, which is ready-made and allows up to 32 events. It even includes a speaker and you can set the duration of the sound from 1 to 99 seconds. It looks like additional speakers can be attached. It has a low cost of $389 and probably more reliable than hacking out a computer setup. Sometimes the right tool for the job is not Linux on a computer system.

    (I'm not affiliated with them, it was just the first place listed in my search results.)

    1. Re:Get The Work Alerter by Suppafly · · Score: 2

      Sometimes the right tool for the job is not Linux on a computer system.


      yeh a windows computer could do this just fine using software easily retrieved from download.com or any similar freeware site.

    2. Re:Get The Work Alerter by ConceptJunkie · · Score: 2

      I agree, why in the world would someone need a full-blown computer when there are undoubtedly thousands of less-expensive devices designed for this exact purpose.

      I was building an LED flashlight for my 2-year-old that would turn off after about a minute because he sometimes leaves it on. I certainly didn't consider using a Linux machine.

      --
      You are in a maze of twisty little passages, all alike.
  8. First get the time right by GMontag · · Score: 2

    First, get one of those atomic clock receiver cards to keep the PC time right, then pick one of the dozens of scripts that will cover this page to do the work and output through a sound card to an amp and the existing speakers.