[Prototype] Unity controller thing with a gyro+accelerometer

I hacked this little thing together tonight. It is an accelerometer and gyro on an ESP8266 module running Arduino, streaming the data wirelessly (the wire you see is power) to Unity.
The gif shows me manipulating a single object, and a camera around an object.
I guess the real world use of this could be:
1) Unity editor extension to make working with objects natural (but not precise)
2) As a type of game controller for silly games (When is the next A MAZE? ;-) )

Or neither of the above, and just a cool little thing :P

(rather watch it in full motion here)
image

Still got a lot of work to do, but it works pretty well right now. And the latency is great. I'm going to use what I learned here to make this faster.

Comments

  • Hey @roguecode this is rad! The GIF looks great :D

    Just a few questions:
    Which acc/gyro are you using (6DoF)?
    Are you experiencing any drift as time goes by?
    Do you know if there is any way to directly input the data instead of over the network?

    @evangreenwood : surely you should try to use an accelerometer based controller for your games like Dirty Scumbags. I am sure it could be hilarious :D

    Keep it up, I look forward to seeing more of these!
  • Thanks!

    - It is the Sparkfun 6DOF module, which is really just an ITG3200 and ADXL345 on one board.
    - I imagine over time, yes, but I haven't used it for any great length of time yet.
    - Yes, easier than doing it over WiFi.
    Thanked by 1blacksheepZA
Sign In or Register to comment.