Thread: Fog Machine?

  1. #1
    That makes two of us
    Join Date
    Apr 2005
    Posts
    6

    Fog Machine?

    Hello,


    I have this crazy idea of attaching a fog machine to my computer and when I press one of the "F" keys the fog machine will go off.


    I was wondering if anybody knew not only how to program the key to start this fog machine but how to physically connect it to the computer.


    Thanks for any help

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Well you'll need a fog machine that can communicate with a computer through some cable, like USB or serial or something like that. I doubt you'll find many. Or you'll need a device that can communicate with your computer that can turn something on and off. I don't think the coding is going to be the hardest part of this project.

  3. #3
    That makes two of us
    Join Date
    Apr 2005
    Posts
    6
    If I can't seem to find a fog machine
    with some connective device such as
    usb or serial should I just give up? is it impossible?

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    > If I can't seem to find a fog machine
    > with some connective device such as
    > usb or serial should I just give up? is it impossible?
    Then you have to do your own hardware modifications, but beware of things like mains electricity, and voiding warranty if you open up the fog machine.

    In principle, all you need do is replace the switch on the fogger with a relay, which can then be controlled using your PC.

  5. #5
    That makes two of us
    Join Date
    Apr 2005
    Posts
    6
    Hey thanks Salem for the help but I was wondering what exactly is a relay? can you send me a link maybe? I googled it and got everything from a database to races.


    Thanks

  6. #6
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544
    Electrical relay

    If the device can be made to come on when power is available an existing automation system such as X10 can be used.

  7. #7
    I'm Not Coooool... tCrawford's Avatar
    Join Date
    Dec 2005
    Location
    Longmont, CO
    Posts
    4
    Humm, can you not just walk over to the Fog machine and flip the switch?

  8. #8
    That makes two of us
    Join Date
    Apr 2005
    Posts
    6
    you see its something I have to get the fog machine to turn on from the computer...


    however moving on, i checked out these relay things, pretty fun looking, I was just wondering how would you connect this to a PC? and then have it turn on when you want it to with a program.


    Thanks again for all the help

  9. #9
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    You can get boards which plug into say your parallel port, which contain lots of things like LEDs, relays, etc for interfacing your computer with various bits of hardware you might like to tinker with.

  10. #10
    Registered User
    Join Date
    Oct 2005
    Posts
    9
    Seeing that you aren't aware of what a relay is I would be very weary about giving you advice on tearing apart the switch on a fog machine. What you might want to start out with is a visit to an electronics store and ask them about how relays work instead of switches and how to wire one up. Next you'd have to figure out how big or small a relay you would need. Probably will need a few in line since the voltage and amperage of the computers output is far below the same of the fog machine. I would start with a relay and some LEDs or small bulb lights and figure out how to work that first then work your way up to the Fog machine. Remember your computer can only put out about 5v at around 20 mA max so don't try to ground anything to the computer or try to supply power to anything other than a relay with the computer or you will likely burn something up or hurt yourself. for the programming end of it, in windows 98 you could use assembly code, but in xp you need a DLL file to allow you to access the parallel or serial ports. in most Unix code ports are used just like FILE IO's. Good luck. P.S. this research should take you some time so I hope you weren't needing to do this A.S.A.P.

  11. #11
    Registered User
    Join Date
    Jan 2006
    Location
    Denmark
    Posts
    16
    Well if you can find a way to turn off and on a USB stick you can use one of those electric socktes which require the usb to have power inorder for the socket to get power if you know such one!

  12. #12
    Guest Sebastiani's Avatar
    Join Date
    Aug 2001
    Location
    Waterloo, Texas
    Posts
    5,708
    >> I have this crazy idea of attaching a fog machine to my computer and when I press one of the "F" keys the fog machine will go off.

    just press the fog machine switch at the same time as the "F" key and you'll get the desired effect without any extra hardware/software.
    Code:
    #include <cmath>
    #include <complex>
    bool euler_flip(bool value)
    {
        return std::pow
        (
            std::complex<float>(std::exp(1.0)), 
            std::complex<float>(0, 1) 
            * std::complex<float>(std::atan(1.0)
            *(1 << (value + 2)))
        ).real() < 0;
    }

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 01-18-2008, 07:05 PM
  2. About rendering in a far point
    By Niara in forum Game Programming
    Replies: 8
    Last Post: 05-26-2005, 05:24 AM
  3. Porting from 32 bit machine to 64 bit machine!
    By anoopks in forum C Programming
    Replies: 10
    Last Post: 02-25-2005, 08:02 PM
  4. Designing State Machine
    By axon in forum Tech Board
    Replies: 3
    Last Post: 11-06-2003, 12:13 PM
  5. openGL, masking, alphas, & FOG
    By fusikon in forum Game Programming
    Replies: 1
    Last Post: 02-04-2003, 09:19 AM