Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » Hardware Support » IR Pens » Click Emulation using Extra LEDs
Pages: [1]
  Print  
Author Topic: Click Emulation using Extra LEDs  (Read 3036 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-0
Posts: 2
Offline Offline
View Profile Email
« on: January 25, 2008, 05:42:04 AM »

Well I just had a random idea on how to implement a Left and Right click emulation with some extra LEDs.

The idea would be to have 3 LEDs in one pen, but not all on the tip though they would need to be separated some distance. You could have one on the tip of the pen, which is constantly on (using an on/off switch somewhere) to just track the mouse.

Then position another LED somewhere in the middle of the pen (or any place some distance away from the first) and have it turn on only when a momentary switch is pressed, so it produces 2 distinct LED points to the Wiimote, and in the program have it so when it detects distinctly 2 points that it sends a left click message to windows.

You could then position a 3rd LED farther up the pen, some distance away from the 2nd LED, that is also connected to a momentary switch. This switch would turn on both the 2nd and 3rd LEDs at once, such that it produces 3 distinct tracking points for the Wiimote, and in the program have it so when it detects 3 distinct points that it sends a right click message to windows.

The only problems that I could see with this method would be a possible delay when you try to turn all 3 LEDs on, so that it only picks up the first 2 LEDs before the 3rd one goes on, and also there would be a blind spot where the Wiimote sensor meshes the 3 LEDs together and only sees it as one point, this would happen if you position the pen in such a way that its perfectly parallel with the Wiimote, however this blind spot would be small and could be changed based on where you place the Wiimote.

Sorry if this is the wrong forum, and thank you for reading my thoughts.
Logged
*
Karma: +0/-0
Posts: 2
Offline Offline
View Profile
« Reply #1 on: January 25, 2008, 12:06:02 PM »

That seems to be intresting but I am wondering how the software would be able to determine what LED gives the mouse position when 2 ou 3 LEDs are turned on. Is that possible to make a difference between the different LEDs by the sofware ?

Logged
Guru
*
Karma: +11/-1
Posts: 137
Offline Offline
View Profile
« Reply #2 on: January 25, 2008, 03:40:20 PM »

I think the wiimote keeps that info Smiley when it sees 1 IR source, and then recognises a 2nd IR source, it will keep the first one the first one Wink (as far as i know)
Logged
Pages: [1]
  Print  
 
Jump to:  

Clicky Web Analytics