Introduction: USB Sensor Bar

Picture of USB Sensor Bar

This is how to make a sensor bar that can be used with a Wiimote and has a usb interface. It works fine with the Wii as well as the PC while using a program that allows to use the wiimote as a joystick (such as Glovepie) and is compatable with IR tracking.

Assembly is simple and can be done by anyone. For this instructable I used Legos to house the wires and LEDs, but anything that will fit them will work.

Step 1: Supplies

Picture of Supplies

For this project you will need:

4 infrared LEDs
1 USB cable
Electrical tape (optional)
wire cutter
wire stripper (optional)
something to house the LEDs and connections
and you will also need wire and a soldering iron OR 5 alligator clips.

If you use alligator clips it makes making the connections easier, but it will be harder to place it in a compact case.

Step 2: Open Up the USB Cable

Picture of Open Up the USB Cable

Use the wire cutters to cut off the end of the USB cable that does not go into the usb port.
Cut down the end of the plastic covering the wires about an inch down and cut off the rest of the plastic up to that point.
You should see 4 different colored wires. red, black, green, and white. Cut or pull back the green and white wires and tape them down. You don't need these wires since those are used to carry information.

Now strip the red and black wire about 1/3 of the way or so.
And insert the cord into your case.

Step 3: Making the Connections

Picture of Making the Connections

When connecting the LEDs together make sure that red wire is connected to the longer leg of the first LED and that the short leg is connected to the long leg of the next LED. The sort leg of the 4th LED will be connected to the black wire. Make sure you only use four LEDs (two for each side of the sensor bar) otherwise the LEDs won't be bright enough or may not light, unless you wire them differently, but we will keep it simple.

If you are using alligator clips all you have to do is clip them on. Simple.

If you are new to soldering, make sure you have a damp sponge to keep the tip of the iron clean. Also be extremely careful not to touch any of the medal. I recommend soldering over cardboard that way if any solder touches it it won't stick easy. Just simply touch the wires together, put solder to it, and melt it with the soldering iron. The solder should stick to the wires. Also, try not to inhale the smoke.

Step 4: Applying the Tape

Picture of Applying the Tape

I recommend that you tape one or both of the legs on each of the LEDs to prevent them from touching each other. You may also want to put tape over the connections you have soldered.

Step 5: Testing the Connections

Picture of Testing the Connections

Now that all of the connections have been made it's time to test it before you fit it into your case.

Just plug it into any usb port while the device is on or that still provides power while in standby mode.

Use a camera or a phone or anything that takes pictures or video to make sure that the LEDS are lighting up (you can't see it with your own eyes).

Step 6: Choosing a Case

Picture of Choosing a Case

When choosing a case to use for your sensor bar, make sure that the center of the LED placements are in line with the two on the Wii's sensor bar.

If you are not interested in making one out of Legos, simply skip to the last step.

Step 7: The Base of the Sensor Bar

Picture of The Base of the Sensor Bar

For the base of my lego sensor bar I connected two 4x12 flat pieces with another flat 4x12 piece and a flat 4x6 piece.

Step 8: The Wall of the Sensor Bar

Picture of The Wall of the Sensor Bar

I used 1x pieces to create the walls of the sensor bar and two 2x4 pieces with 2 flat 1x2 pieces snapped on the ends of it to hold the LEDs.

Step 9: Placing in the Components

Picture of Placing in the Components

I placed the components in and put 2x4 blocks over the LED leads to keep them into place. I also twisted the wires to keep them from sticking out of the top.

Make sure the LEDs are close enough to each other and far enough apart.

Step 10: The Flaps

Picture of The Flaps

I made two flaps to cover the LEDs using two flat 4x6 pieces crisscrossed and adding a bendable flap.

Step 11: The Finished Case.

Picture of The Finished Case.

I Added two flat 1x4 pieces on each end, two flat 4x8 pieces 4 spots away from the end pieces, and filled the middle gap with a flat 2x4 piece.

The spots above the LEDs were filled with the flaps made in the last step.

Step 12: Testing the Final Product

Picture of Testing the Final Product

The last thing to do is to plug in your new sensor bar and make sure it works!

Comments

Castelo Branco (author)2012-03-23

This is my version of the wii bar. I builded it using some aluminum bars (the leftover of my pedalboard hard case). Is also USB powered and looks good with my iMac.

timojloo (author)2009-06-17

Did the USB - powered energy short out the LEDs' ???

I was testing mine and it killed the LED.

Do I need a resistor or more LEDs????

Nice instructable by the way =)

nodoubtman (author)timojloo2011-10-13

Remember that usb can produce 5 V and 100 mA not more... so your resistor value should be : 5 V - Vled / A

let's say you have a led 1.4 V and 20 mA should do that :
5 - 1.4 V / 0.20 =180 - 220 Ohms resistor
see that page : http://ledcalc.com/#calc

thank you! :)
Have a great day! :)

oniGamemaster (author)timojloo2009-06-17

No it didn't, not for mine anyway. I was reviewing this not too long ago and it would be better to add a resistor. How many LEDs did you use? I think it acts as a current source without a resistor which can provide up to 100m amps from the usb. Try adding a 100 Ohm resistor to the front of the circuit.

hondaman900 (author)2011-04-20

Nice instructable. Well laid out. There's a more developed version of this on Kickstarter http://www.kickstarter.com/projects/1621263610/the-megabar-free-your-wiitm Seems to be a more complete system. I like their father-son kit idea.

account3r2 (author)2010-10-17

if i have 4 2.8v leds, what amount of voltage would i need if i used batteries?

oniGamemaster (author)account3r22010-10-17

What is the current rating? If you used batteries it should be 4x2.8 if the current rating is about right. That's right inbetween 7 and 8 AA batteries.
LEDs use current sources, It would probably drain the batteries pretty quick.

account3r2 (author)oniGamemaster2010-10-18

im using these

account3r2 (author)oniGamemaster2010-10-18

i might use a supercap instead because it is rechargeable then use a female usb plug and when i want to charge it i plug the cord it.

oniGamemaster (author)account3r22010-10-17

If you used 2.8v you could try only using two, one for each side, the range may be a little limited though.

account3r2 (author)2010-10-17

what voltage leds do i use? please reply soon

oniGamemaster (author)account3r22010-10-17

1.4 V

ryvie (author)2010-07-02

do u need resistor on the wire?? thx

oniGamemaster (author)ryvie2010-07-03

you do not need a resistor if you use 4 LEDs. Other than that you would. If you want you can add a resistor you can, 100 Ohms should be fine, or you can go less for brighter leds, try playing around with a few.

smrtcar (author)2009-11-19

Can I not just use a cordless wii sensor bar with batteries attached?

http://nintendo.about.com/od/accessories/fr/nyko_wireless_sensor_bar.htm

Just asking... :)

oniGamemaster (author)smrtcar2009-11-19

 sure you could, but where's the fun in that? It's also cost more.

But you could add a place for batteries instead of a usb cable.
This would take three of 'em for 4 LEDs, and possibly a resistor, but i'm not sure.

dharc789 (author)2009-08-15

What about if you wanted to use 4 AA batteries as well with the USB. Would the 100 Ohm resistor still work. I have been trying to figure this out. Using 4AA batteries (6V) calls for a 15 Ohm resister and for a USB (5V) it calls for a 2.2 Ohm. Could you use 100 Ohm resister to cover both??

oniGamemaster (author)dharc7892009-08-17

Would it be as if you had a switch to switch from the usb to the AA power source? or both at once for more voltage and LEDs? I think I miss calculated when I thought a 100 Ohm would work, I was put it as if the diodes had resistance but they don't. So if the 6V calls for a 15 Ohm, it may cover both but it may make the Leds dim when plugged into a usb port. Depending on the skematic. Send me a pic of what you're thinking and I'm sure we'll get it.

dharc789 (author)oniGamemaster2009-08-18

Here is a drawing I'm was thinking about. I think it would work. But wanted to confirm.

oniGamemaster (author)dharc7892009-08-18

Looks like it could. I would not use that kind of switch, I would just use one that is fixed at the left end and toggles between the other two. The only thing that looks strange is the batteries are labeled AC when it is a DC source, and that they put more resistance on the lower voltage source, but that's probably because the USB has more current.

Colonel88 (author)2009-08-18

first of all, what does this sensor bar even do? does it connect ot the wii to receive wii remote signals or something? Because i don't understand what it is supposed to do. but if it is used to illuminate infrared camras, then it is awesome. Please reply

oniGamemaster (author)Colonel882009-08-18

All that the sensor bar does is send out infrared light. That's it. This allows the wii remote to locate the sensor bar's position, and based on that the wii remote sends the information to wii which then shows the results on the screen. So in short it is the wii remote that tracks the sensor bar and not the other way around. The sensor bar is just light.

l4nd0fc0nfu510n (author)2009-06-20

I can't get mine to work with GlovePIE. How do I make it detect that I have an IR sensor plugged in?

In order to get the sensor bar working with GlovePIE you need a script that enables IR movement.

Like this one that will allow mouse movement with the sensor bar http://www.wiili.org/index.php/Carl%27s_IR_Mouse

And here is one that is being worked on to provide good FPS play
http://www.wiili.org/forum/new-fps-ir-script-using-directinput-t1639.html

THANKS! Excellent instructable!!

l4nd0fc0nfu510n (author)2009-06-20

Nevermind sorry, I bought a 4th. Instructable works great! Thanks!

glad you were able to get another :)

ReCreate (author)2009-05-02

I always thought of making myself this,I planned to buy a sensorbar on ebay and mod it to connect to the usb port

About This Instructable

97,208views

36favorites

More by oniGamemaster:USB Sensor Bar
Add instructable to: