Sponsors of Wiimoteproject.com
IR Pens for Wiimote Whiteboard
Wiimote Project » Wiimote Projects » Wiimote Interactive Whiteboard » Right clicks with the Wiimote Whiteboard
Pages: 1 2 3 [4] 5 6
  Print  
Author Topic: Right clicks with the Wiimote Whiteboard  (Read 40011 times)
0 Members and 1 Guest are viewing this topic.
*
Karma: +0/-1
Posts: 26
Offline Offline
View Profile WWW
« Reply #45 on: January 20, 2008, 03:10:37 AM »

It is also possible with Windows XP. Microsoft has released a tool that does the same. You just have to download and install it
Logged
*
Karma: +0/-0
Posts: 2
Offline Offline
View Profile WWW
« Reply #46 on: January 20, 2008, 09:56:32 PM »

I'm totaly newbie in Wiimote WB, as I have bought my Wiimote just today. But I think that rightclick could have a pretty simple solution.
If the sampling period of Wiimote is 10ms, what we need for the right click is let's say 15ms IR flash to make sure, that Wiimote has caught it. This means, that wiimote will return 1 or max 2 samples with IR on. On the other hand it is necessary to ensure, that left click  will take longer to 30ms.
On the side of IR pen it is an easy task for some microcontroller (I'll try to construct it with PIC10F202 in the next days).
On the side of Windows it is just the question of recognition of the  length of IR LED on-state.

Jakub

 
Logged
*
Karma: +2/-1
Posts: 89
Offline Offline
View Profile
« Reply #47 on: January 21, 2008, 01:18:52 AM »

plz keep in mind we seek a simple, cheap solution. programming pics isn't something any one can do Smiley
Logged

wiipen
point ATM: building V2
V1: 1 LED on 1 AAA battery feed
V2: 1 LED on USB feed
V2 will be remodded too V3
V3: 1 LED on USB feed /w LMB and RMB
V4: 1 LED WIRELESS /w LMB and RMB
V5: we'll see :3
Vmany: Bluetooth IR pen with mouse functions.
*
Karma: +0/-0
Posts: 3
Offline Offline
View Profile
« Reply #48 on: January 21, 2008, 11:45:01 AM »

There was another post that questioned Johnny's statement that the frame rate of the Wii's IR camera is 100 Hz, roughly the same as the rate at which it sends reports over Bluetooth. That post stated that the PixArt camera used in the Wiimote has a frame rate of 30 Hz. This question is quite important for anyone building in a right-click using a flashing code.

I built a simple flasher circuit using a 555 timer IC with some pots and hacked the whiteboard app to display a basic "oscilloscope trace", high for IR point detected and low for no IR point detected. The trace takes 16 seconds to cross the form, with a width of 1280 pixels. That is 80 reports per second. I found that I could increase the frequency of the IR pulses to the point where the Wiimote would reliably show a "high" signal for 1 to 2 reports. Any frequency above this would result in very obvious aliasing, with the signal switching between longer periods of high and low. The aliasing must indicate that the frequency was approaching the frame rate of the camera.

This seems to confirm that the camera operates at a frame rate closer to 100 Hz than 30 Hz, and this should be really good news for anyone wanting to use flashing codes.

I did some experimentation and found that the maximum rate at which one can double-click is about 10 Hz. This is relevant because we don't want a double-click to register as a right-click.
Logged
*
Karma: +0/-0
Posts: 3
Offline Offline
View Profile
« Reply #49 on: January 21, 2008, 11:59:13 AM »

I'm planning to build a simple circuit where a continuous on signal is a left-click, and a fast flashing signal (say around 15-20 Hz) is a right-click. The trick is going to be hacking the whiteboard app to recognize the right-click reliably. Some people asked about syncing the pen with the Wiimote. This is impractical. As long as the flashing frequency is far enough below the frame rate of the camera and the rate at which the Wiimote sends reports (i.e. below about 15 Hz), all that you have to do is make the software cater for the fact that a pulse may be detected and reported for either 1, 2 or 3 "pen on" reports.

It is impossible to click continuously at anywhere near this rate (by a factor of 5 or so), so it should be easy to distinguish a fast double-click from a right-click flashing signal.

Another very nice feature to have would be a middle click, useful for scrolling in a browser without running to the far right edge of the screen each time! I'm thinking that a small microcontroller may be the best solution here, allowing us to generate various codes quite flexibly, while minimizing the number of components.

Now to learn PIC programming...
Logged
*
Karma: +0/-0
Posts: 2
Offline Offline
View Profile
« Reply #50 on: January 21, 2008, 03:58:11 PM »

There was another post that questioned Johnny's statement that the frame rate of the Wii's IR camera is 100 Hz, roughly the same as the rate at which it sends reports over Bluetooth. That post stated that the PixArt camera used in the Wiimote has a frame rate of 30 Hz. This question is quite important for anyone building in a right-click using a flashing code.



The IR camera in the wee remote only has to detect and report blob positions, I have read that this
is done by dedicated 'on sensor' logic so 100Hz is probably feasible as you've found.


Nial.
Logged
*
Karma: +0/-0
Posts: 2
Offline Offline
View Profile WWW
« Reply #51 on: January 22, 2008, 12:05:11 AM »

plz keep in mind we seek a simple, cheap solution. programming pics isn't something any one can do Smiley
Yes it is! I already have etched printed circuit board with dimensions 8 x 28mm and all the schematics consist only from 5 components: PIC10F202 (which you can purchase as a free sample), one SMD resistor, IR LED and 2 buttons. Now I'm working on building this "simpletronics" into Edding 360 whiteboard marker and after that I'll start with PIC programming. After debugging I'll publish all the information including all the files needed on my web. The only problem for other people will be to find someone with the PIC programmer to burn the hex file into the PIC.

Jakub
Logged
*
Karma: +0/-1
Posts: 26
Offline Offline
View Profile WWW
« Reply #52 on: January 22, 2008, 10:49:39 PM »

I have already programmed a µC. It flashes with 20ms to be sure that every flash can be recognized. The setup is a little bit big, since I am using the µC board as stroboscope with high power LEDs.

Burning will not be that problematic. You can use the serial interface on your pc to emulate a burning devive. Of course it will be slower to write/read ...

The only thing I'm missing is the recognition software ;P
« Last Edit: January 22, 2008, 10:52:15 PM by Der Wichtel » Logged
*
Karma: +0/-0
Posts: 3
Offline Offline
View Profile
« Reply #53 on: January 22, 2008, 11:01:00 PM »

It is also possible with Windows XP. Microsoft has released a tool that does the same. You just have to download and install it

Really?  Where is this tool?  Will it work with XP home or only Tablet PC edition.  Thanks.  John
Logged
*
Karma: +0/-0
Posts: 1
Offline Offline
View Profile
« Reply #54 on: January 23, 2008, 07:52:04 AM »

personally i am going this route
http://h10010.www1.hp.com/wwpc/id/en/sm/WF06c/A1-1697201-1698431-1698431-1698473-1698473-78019431.html

i bought 10 of these bluetooth (thin!) mice for $6 each. they weigh 42g each!

i want to wire up an IR led to run continuously off its battery so instead of the IR flash being a mouse click, the IR is constantly on setting the mouse position

the left and right click are built into the mouse so its a simple solution!
Logged
*
Karma: +2/-0
Posts: 123
Offline Offline
View Profile Email
« Reply #55 on: January 23, 2008, 07:48:14 PM »

but then it defeats the purpose of using a pen. Thats what the whole origional design was about, if you managed to take the mouse apart and then make it into a pen then i'd clap for you Smiley
Logged
*
Karma: +3/-0
Posts: 36
Offline Offline
View Profile
« Reply #56 on: January 23, 2008, 10:01:55 PM »

Exactly, then its easier to use the WiiRemote as its normally used, in your hand and the ir leds at the screen.. Smiley then you got a whole lot more buttons & the accel. functions SmileyTongue
Logged
*
Karma: +2/-0
Posts: 123
Offline Offline
View Profile Email
« Reply #57 on: January 24, 2008, 12:12:33 AM »

We've talked about that before, but the idea didn't seem to stick, and personally, i think that would be great, you press the a or b button for left and right click, then you've got 5 other buttons to use, the +,-, home, 1, and 2 buttons. But the idea is probably gonna get lost again like last time, oh well, only hoping Smiley
Logged
*
Karma: +3/-0
Posts: 36
Offline Offline
View Profile
« Reply #58 on: January 24, 2008, 12:17:46 AM »

troy59: What idea do you mean? Do you mean using the wiiremote itself as the mouse? Or do you mean something else? Because thats exactly how the WiiRemote operated without any hacks/mods Smiley
Logged
*
Karma: +2/-0
Posts: 123
Offline Offline
View Profile Email
« Reply #59 on: January 24, 2008, 12:33:24 AM »

using the wiimote itself as the mouse. We've brought up that idea before on this forum but it kinda faded away.
Logged
Pages: 1 2 3 [4] 5 6
  Print  
 
Jump to:  

Clicky Web Analytics