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.

Similar projects worth following
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!

  • 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

  • The code is online, demo of stereovision

    Roeland5404/28/2014 at 18:09 0 comments

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

    We also have a demo video for the stereovision:

  • Putting in the stereovision

    frederiek.vandepitte04/28/2014 at 14:55 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)

    Roeland5404/25/2014 at 14:58 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

Enjoy this project?



Rebelj12a wrote 11/12/2014 at 12:14 point
2 things....

Make it round... *easy enough*

Make it shoot things. (more difficult... I would suggest CO2 and airsoft pellets.) Looks like you are getting the targeting down just fine.

Also use a raspberry pi to move the software to onboard.
The pellets though, I have my heart set on airsoft pellets.

Almost forgot. Add in either a ultrasonic rangefinder or laser rangefinder for additional accuracy.

  Are you sure? yes | no

trungkstn wrote 05/19/2014 at 20:36 point
where can i buy material (motor, circuit and frame) of small quadcopter?

  Are you sure? yes | no

Eric Evenchick wrote 04/07/2014 at 15:38 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 04/07/2014 at 16:08 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 04/08/2014 at 15:10 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 04/08/2014 at 17:50 point
Nice, looking forward to seeing it.

  Are you sure? yes | no

WimB wrote 04/08/2014 at 18:25 point
We've got some extra motivation now to keep up our great work!

  Are you sure? yes | no

RodolpheH wrote 03/26/2014 at 08:03 point
Will it fire tiny lasers ?

  Are you sure? yes | no

frederiek.vandepitte wrote 03/27/2014 at 12:32 point
Actualy the droid fired plasma bolts (see link), but we might add that functionality of a "laser targetter".

  Are you sure? yes | no

smok wrote 03/25/2014 at 21:44 point
I'm intrigued. Would it be a multicopter?

  Are you sure? yes | no

Roeland54 wrote 03/25/2014 at 22:51 point
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 03/27/2014 at 16:30 point
There going to be the risk of getting hit with the blades... that's some serious encouragement!

  Are you sure? yes | no

Similar Projects