What is needed to output voltage signals from PC

This is a discussion on What is needed to output voltage signals from PC within the Networking/Device Communication forums, part of the General Programming Boards category; Hi, I am working on a project with my dad to turn a 7/8 replica spitfire into a flight simulator ...

  1. #1
    Bored Programmer
    Join Date
    Jul 2009
    Location
    Tomball, TX
    Posts
    407

    What is needed to output voltage signals from PC

    Hi,

    I am working on a project with my dad to turn a 7/8 replica spitfire into a flight simulator program on a hydraulic platform. I bought an arduino uno and have panned out the basics of signalling to control the platform motion, but i am at a loss of how to get the simulator program to send signals to the arduino. It accepts analog and digital input but I have no idea what hardware i would need on my CPU to output these signals.

    I am not expecting anyone to look for me as i am continually searching but i hoped somone here already had some previous experience that could shed some light on this.

    Thanks for your time.

  2. #2
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,676
    A quick Google search for "USB analog digital IO" turned up this, among many others.

  3. #3
    Registered User Codeplug's Avatar
    Join Date
    Mar 2003
    Posts
    4,702
    >> I bought an arduino uno and have panned out the basics of signalling to control the platform motion, but i am at a loss of how to get the simulator program to send signals to the arduino.
    Is the simulator running on the PC?
    Isn't there usually an RS232 connection to the arduino of some sort?

    gg

  4. #4
    Bored Programmer
    Join Date
    Jul 2009
    Location
    Tomball, TX
    Posts
    407
    Quote Originally Posted by Codeplug View Post
    >>
    Is the simulator running on the PC?
    Isn't there usually an RS232 connection to the arduino of some sort?
    1. Yes I planned on just using one of my old laptops to run the simulator on.

    2. The Uno doesn't, but I'm sure I can buy an extension for it.

    I was hoping for a cheap solution rather than a $200.00 piece of hardware for a hobby project. Scrounging up all the hydraulics has already been a decent cost.

    Thanks for the insight ya'll have provided.

    My other thought was just to make a joystick that split signals to both the hydraulics and the simulator, but I was concerned the pitch and yaw of the real plane may not match the in game with good resolution.

  5. #5
    Registered User
    Join Date
    Nov 2010
    Location
    Long Beach, CA
    Posts
    5,676
    I was temporarily stupid and misread your question. You don't need the $200 thing I linked to, though there are likely much cheaper versions -- it was simply the first link I clicked. That could bypass the arduino all together, and the simulator would talk directly to the hydraulics. Codeplug is on the right track if you want to stick with the arduino though. The hardware you need, if any should be cheap. You need to get the arduino and PC talking RS232. There are several decent looking tutorials for the arduino on the web, and you can buy a cheap USB to serial for your PC. Another alternative is to buy an ethernet shield or wifi shield for the arduino and communicate that way.

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,855
    Arduino - Serial
    The Uno seems capable of running a serial interface over USB.

    Arduino - ArduinoBoardUno
    Scroll down to "Communication".
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  7. #7
    Bored Programmer
    Join Date
    Jul 2009
    Location
    Tomball, TX
    Posts
    407
    I read through that Serial communication for the arduino before. It is useful for communication control via the console that runs from your PC. Receiving the data and opening the relays is the easy part.

    The part I am stuck on is getting the Standalone C++ Flight Simulator program to send a readable signal to the arduino. I think the RS232 is probably going to be what I'm looking for on that side.

    I appreciate all the information.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Convert bits to voltage levels...
    By Dark_Soul in forum C Programming
    Replies: 4
    Last Post: 09-22-2009, 09:28 PM
  2. Intel processors voltage
    By Mario F. in forum Tech Board
    Replies: 32
    Last Post: 06-12-2008, 12:31 PM
  3. Increasing voltage
    By Liger86 in forum Tech Board
    Replies: 3
    Last Post: 04-17-2006, 03:39 AM
  4. Power supplies and high-voltage detonation
    By SMurf in forum Tech Board
    Replies: 5
    Last Post: 12-05-2003, 01:24 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21