Wiimote Project

General Category => General Discussion => Topic started by: Menna on April 01, 2010, 09:22:53 AM

Title: How to detect more than 4 IR LEDS
Post by: Menna on April 01, 2010, 09:22:53 AM
Hello,
I use wiimotelib to detect 4 IR LEDS. I need to mak them 5 IR LEDS
I've read "With more than four objects visible, the camera is prone to rapidly switching between some of them. This could allow perception of more than four objects, at a reduced response speed and reliability." on  http://wiibrew.org/wiki/Wiimote (http://wiibrew.org/wiki/Wiimote)

If the IR camera switches between more than 4 objects....which object does it choose to switch the 5th object with?
How do I know when it switches 2 objects
And Does it switch between only 2 objects or it doesn't have to switch always between the same 2 objects?
Thanks
Title: Re: How to detect more than 4 IR LEDS
Post by: boonjin on April 01, 2010, 11:04:47 AM
Hi,

If you would like to detect 5 IR LEDs and you are switching between them rapidly. The positions of the IR dots detected will be randomly allocated within the 4 locations. In other words, any object may be switched with the 5th object and this will go on indefinitely.

A way to track differentiate the object is that you will have to manually process the data of each object and find the previous detected position and the current location. With this, you can just find the closest point and it should be referring to the same point.

Regards,
Boon Jin
Title: Re: How to detect more than 4 IR LEDS
Post by: marcwolf on September 30, 2011, 10:53:30 PM
Hi.
One way you can do this is to group the LED's into set of 4 and turn them on and off as needed.

For example  LED's are A,B,C,D and E,F,G,H

Turn on A,B,C,D  and read the positions. Then turn them off
Turn on E,F,G,H and read the positions. Then turn them off

Depending on how fast the WII remote is at reading the values will determine how many sets of leds you can control.
Hope this helps
Marc