Author Topic: Smoothing for Wiimote Whiteboard 0.2  (Read 63069 times)

Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
on: June 02, 2008, 09:35:33 PM
I have released the Smoothboard software that is targeted at actual use in lessons and presentations with the focus of ease-of-use.

Smoothboard now comes with built-in annotation feature, quick access toolbar and more for all your interactive whiteboard needs.

Smoothboard can be downloaded from http://www.smoothboard.net



Following from benpaddlejones request,
http://www.wiimoteproject.com/project-ideas/mouse-smoothing-a-new-challenge-for-the-programmers-t1003.0.html
I have modified Johnny Lee's Wiimote Whiteboard 0.2 to incorporate the mouse smoothing effect. This feature enhances the smoothness when drawing with an infrared pen.

I have followed the method used in the Java version of Wiimote Whiteboard by averaging out the past values of the click coordinates.


[youtube]http://www.youtube.com/v/i0dXCuJ6aas[/youtube]




Comparison of the original without smoothing with the new smoothing feature


Smoothing can be enabled/disabled and also the number of past points to average out can be chosen.

Update:
I have made the app to save the user settings for the smoothness so that the settings can be loaded in the next run. The settings are saved in calibration.bat.

Update on 7th June 2008:
Cursor control did not function in Vista 64bit.
I have followed the solution by takai which can be found here:
http://www.wiimoteproject.com/wiimote-whiteboard/vista-issues-with-mouse-control-in-wiimotewhiteboard-02-onwards-solved-t1026.0.html


Download source codes and executable here:
http://www.boonjin.com/wp/2008/06/02/mouse-smoothing-for-wiimote-whiteboard

Note: I have developed a more functional version of the wiimote whiteboard. Multiple Wiimote support, outside screen toggles(right click, double click, keyboard presses, launch files), partial screen area calibration, calibration viewer, IR sensitivity settings etc.

Wiimote Smoothboard:
http://www.smoothboard.net
« Last Edit: August 15, 2009, 04:49:26 AM by boonjin »

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Reply #1 on: June 02, 2008, 10:04:20 PM
Success

Just tried on the whiteboard at school, very impressed!

Benpaddlejones


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline takai

  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Reply #2 on: June 03, 2008, 08:56:12 AM
Can you please post up the source for this, even in its unpolished state.



Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #3 on: June 03, 2008, 10:29:58 AM
Can you please post up the source for this, even in its unpolished state.

Hi! I have just uploaded the source codes.

You can get it from here
http://www.boonjin.com/wp/2008/06/02/mouse-smoothing-for-wiimote-whiteboard

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline Der Wichtel

  • *
  • Posts: 26
  • Karma: +0/-1
    • View Profile
    • my site
Reply #4 on: June 03, 2008, 05:48:23 PM
Somehow it does not work with Windows Vista.

I can calibrate and the programm can see the dots but the mouse doesn't move.
But I have the same problem not only with your version but on the original 0.2 version as well.

Can you please have a look on this problem?



Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Reply #5 on: June 03, 2008, 06:11:02 PM
Der Wichtel
If you can connect and get to the calibration stage, then the issue is more likely your IR source.

If you click the 'A' button on your wiimote and you go to the calibration page then the Wiimote is connected and working. so try:

Before the calibration stage with the dialogue box click your pen if the wiimote can detect your pen. If it does next to "Visible IR Dots" it will show a count of how many IR sources it can detect. You may need to use various distances position to check this. (try waving in front of wiimote and spiriling out).

Check http://www.wiimoteproject.com/ir-pens/electronics-101-sharing-my-mistakes-updated-t834.0.html to see if your IR source is suitable.

Let me know what your find.

benpaddlejones


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline takai

  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Reply #6 on: June 03, 2008, 08:33:30 PM
Ive had issues with the WiimoteWhiteboard 0.3 (written and posted by someone else) under Vista.

Ill give this version a go when i get home, but seeing as i can run Johnny Lees 0.2 and this seems to be a relatively minor modification, i cant see why it wouldnt work.

Maybe try pointing the IR pen at the camera directly to test.



Offline Der Wichtel

  • *
  • Posts: 26
  • Karma: +0/-1
    • View Profile
    • my site
Reply #7 on: June 04, 2008, 12:25:41 PM
Der Wichtel
If you can connect and get to the calibration stage, then the issue is more likely your IR source.

If you click the 'A' button on your wiimote and you go to the calibration page then the Wiimote is connected and working. so try:

Before the calibration stage with the dialogue box click your pen if the wiimote can detect your pen. If it does next to "Visible IR Dots" it will show a count of how many IR sources it can detect. You may need to use various distances position to check this. (try waving in front of wiimote and spiriling out).

Check http://www.wiimoteproject.com/ir-pens/electronics-101-sharing-my-mistakes-updated-t834.0.html to see if your IR source is suitable.

Let me know what your find.

benpaddlejones


Hi. Calibration works perfekt and it shows me 1 dot. Besides the 0.1 Version works as well very good just not as good as yours with smoothing. So it has to do something with the codechanging from 0.1 to 0.2.

The pen just does not move ( tried both cursor  control checked and unchecked.

thank you for your help
« Last Edit: June 04, 2008, 12:28:18 PM by Der Wichtel »



Offline benpaddlejones

  • Support Admin
  • *
  • Posts: 1178
  • Karma: +49/-0
    • View Profile
    • Inter.Connect.Ed
Reply #8 on: June 04, 2008, 02:49:36 PM
Boonjin
Does your app need the wiimotelib.dll to be present in the folder with it?

I just put you app next Johnny's so the wiimotelib.dll was already there?

Wondering if this could be Der Wichtel issue?

Benpaddlejones


See my full profile and links on my Google Profile: http://www.google.com/profiles/benpaddlejones


Offline Der Wichtel

  • *
  • Posts: 26
  • Karma: +0/-1
    • View Profile
    • my site
Reply #9 on: June 04, 2008, 03:09:01 PM
I have put the dll into the folder but still the same problem.
However if I use the version in the folder bin --> windowsxp it is working. If I put your exe or the original  Wiimote Whitboard.exe from the main folder they are still not working.
So the version in the bin/windowsxp folder must be different ....



Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #10 on: June 04, 2008, 08:19:10 PM
hm...I'm not sure what's the cause of your problem. Like you said it may be due to the code change of the mouse simulation from 0.1 to 0.2. I have not tested with a Vista machine yet.

Anyone here have successfully use 0.2 or 0.2 with smoothing on vista?

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url


Offline takai

  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Reply #11 on: June 05, 2008, 09:37:04 PM
Im using 0.2 with vista, will check 0.2 with smoothing now.

EDIT: no cursor control under vista with 0.2 smoothing. Checking code now.
EDIT2: From what i can see its a problem with how it disposes of the Calibration form. Basically its calling the dispose function from a second thread which causes vista to spit, but when you run the compiled program you cant see that.
« Last Edit: June 05, 2008, 09:48:34 PM by takai »



Offline sebbel

  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Reply #12 on: June 06, 2008, 03:25:33 AM
Thank you so much for that version boonjin.

It worked just fine for me and I was able to use it in some presentations already. Well done and great work!
As you are more experienced with the Whiteboard than I am.. Is there a possibility to have an IR Pen which has a bigger range as the regular ones?

I'd love to just point with my pen on the whiteboard from 5-6 meters away.
Do you think thats possible?



Offline takai

  • *
  • Posts: 27
  • Karma: +0/-0
    • View Profile
Reply #13 on: June 06, 2008, 04:43:59 AM
Hm, just realised its a problem with 0.2, i thought i was using 0.2 but i was using 0.1



Offline boonjin

  • Moderator
  • *****
  • Posts: 929
  • Karma: +28/-0
  • Smoothboard Developer
    • View Profile
    • Smoothboard
Reply #14 on: June 06, 2008, 04:45:25 AM
Thank you so much for that version boonjin.

It worked just fine for me and I was able to use it in some presentations already. Well done and great work!
As you are more experienced with the Whiteboard than I am.. Is there a possibility to have an IR Pen which has a bigger range as the regular ones?

I'd love to just point with my pen on the whiteboard from 5-6 meters away.
Do you think thats possible?

Hello! Glad that you have tested this version.
I am actually a new wiimote whiteboard user. I just made the IR pen only more than a week ago. I have actually not tested it on a real projector yet. :)

For your suggestion, I think it will be difficult because the usual IR pen does not act like a laser which is unidirectional. The IR diode will spread the IR at a considerably big angle. Another problem will be that the IR is invisible to our human eye. So you will not be knowing where you are pointing.

 Maybe there are other methods available like using a red laser pointer with a hi resolution webcam.

I will try to think of other solutions such as using an additional wiimote at the screen facing the user.

Thanks for your suggestion!

Smoothboard
Wii Whiteboard/Wiimote Whiteboard with annotation features and collaborate with multiple iPads and Android Tablets!

Smoothboard for Mac
Using a Mac? Now you can annotate on PowerPoint or Keynote slideshows!

BoonJin[/url