Close

Does this project spark your interest?

Become a member to follow this project and don't miss any updates

Star Wars training droid

Flying training droid that interacts with its opponent.

12 68 35
Enjoy this project?
Share on twitter   Share on Facebook

This project was created on 03/25/2014 and last updated 4 months ago.

Description
The goal is to create a flying training droid that interacts with its opponent. Inspired by the Star Wars lightsaber training droid. We will do this by using wiimote to locate a mini quadcopter. A computer calculates the necessary corrections and sends them to the quadcopter.



The Code is online!
https://bitbucket.org/rlutters/hack-a-day-sci-fi-contest
Details

Components
  • 1 × Walkera LadyBird mini quadcopter
  • 1 × Arduino Duemilanove
  • 2 × Wiimote
  • 1 × Kinect Sensor
  • 1 × Apple Macbook Pro (with Windows) We need something to run the software on.
  • 8 × SMD IR-emitter 940nm 140° Harvatek HT-170IRAJ IR-emitter 940 nm 140 ° 0805 SMD

Project logs
  • The code is online, demo of stereovision

    4 months ago • 0 comments

    So first of all you can find the c# code of the project here:

    https://bitbucket.org/rlutters/hack-a-day-sci-fi-contest

    We also have a demo video for the stereovision:

  • Putting in the stereovision

    4 months ago • 0 comments

    So for the last part we needed a way to get an x,y,z coordinate. We had some idea's how but we ended with Stereo vision.

    With just 2 motes we could calculate an x,y,z coordinate, since 2 lines in space intersect only trough one point.
    This seemed to work great, we could track the copter easily when moved him slow, but when we triend it with the flying copter we saw that the motes where sometimes giving incorrect values causing our copter to crash.

    With stereo vision there are 4 zones: 
    First is outside everyones range, you don't want to be there
    - Seccond is the blind spot (marked black). Like the first, you don't want to be there.
    - Third is the gray area. This is the field where you are seen by only one mote. This could be used to get you back to forth place, since we have a clue of where you are.
    - Last is the light gray area, this is where we have stereo vision.

    Since the motes are on one line we can say that the y value are the same, practical we take the average.

    For the z and x value we use the x value off the motes and draw a mental line between the mote center and the point they see.
    Those two lines intersect eachother and that intersection is our x and z value.

  • 2 axis control tested (video)

    4 months ago • 0 comments

    After some fine tuning of the PID's we could finally do some test with 2 axis control by the computer.

    but first something about the progress of connecting everything.

    1. connect the available WiiMotes. 
    you can connect a WiiMote in windows 7 by just using the standard windows bluetooth wizard. It creates a new HID device in you device list. So at the left lower corner of our application you can search for available WiiMote's. 

    Once there is a WiiMote connected you get the 2-axis representation of de the detected IR-lightsource on the right (the red dot). You also can put the wanted location on de grid by clicking it (the blue dot). 

    2. Connect to the RCremote.

    On the left upper corner there is the connection panel to connect to the arduino that sends the pwm signal to the rc-remote. 

    3. adjusting pid gain value's

    you can adjust the PID gains and min, max values realtime with the text boxes. The current output is also visible (value between 0 and 255). 

    So with 1 WiiMote we can determine the position of the quadcopter in 2-axis. 
    the other axes can still be controlled by the RC remote in the classic way. 

    Time for a little demo:

    Wat is happening here is that the computer is adjusting the throttle (height) and the roll. (the orange propellers are the front.)

    you can see the throttle adjustment is working already wel. The roll still needs some adjustment.  

View all 13 project logs

Discussions

trungkstn wrote 3 months ago null point

where can i buy material (motor, circuit and frame) of small quadcopter?

Are you sure? [yes] / [no]

Eric Evenchick wrote 5 months ago 1 point

Wasn't sure if this project was serious at first. Glad to see it's actually coming together!

Are you sure? [yes] / [no]

RodolpheH wrote 5 months ago 1 point

I wasn't sure either. I even had the same idea but I didn't found how to make it looks like in the movie. But since it's based on Star Wars, a lot of people want to see it finished. That is a good motivation for the creator !

Are you sure? [yes] / [no]

frederiek.vandepitte wrote 4 months ago null point

By this saterday we should have a first movie.
It will be very exerimental, that's for sure

Are you sure? [yes] / [no]

Eric Evenchick wrote 4 months ago null point

Nice, looking forward to seeing it.

Are you sure? [yes] / [no]

WimB wrote 4 months ago null point

We've got some extra motivation now to keep up our great work!

Are you sure? [yes] / [no]

RodolpheH wrote 5 months ago 1 point

Will it fire tiny lasers ?

Are you sure? [yes] / [no]

frederiek.vandepitte wrote 5 months ago null point

Actualy the droid fired plasma bolts (see link), but we might add that functionality of a "laser targetter".
(http://scifi.stackexchange.com/questions/13170/can-mirrors-be-used-to-deflect-lightsabers)

Are you sure? [yes] / [no]

smok wrote 5 months ago null point

I'm intrigued. Would it be a multicopter?

Are you sure? [yes] / [no]

Roeland54 wrote 5 months ago 2 points

The anti-gravity device is still on my to do list... so yes it will be a multicopter.

Are you sure? [yes] / [no]

Eric Evenchick wrote 5 months ago 2 points

There going to be the risk of getting hit with the blades... that's some serious encouragement!

Are you sure? [yes] / [no]