Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - atomriot

Pages: 1
Project Ideas / WPF Wiimote Integration
« on: February 26, 2008, 12:02:00 PM »
Just saw this link

but Rudi Grobler made a little WPF app to mess with the wiimote. I have not messed with it yet but will grab it tonight. thought you guys might want to see it/play with it.

sorry, should have read a little closer.
its actually Matthias Shapiro's app

IR Pens / My third "Big Daddy" pen
« on: February 11, 2008, 10:23:18 PM »
so i needed to make a pen that was less rigged looking and more professional looking. I got a premade skinny pen that ran on AAAA's but the LED assembly was stuck in the aluminum frame plus, its activator was at the end which was no good.

so i got a jumbo permanent marker, 3 IR LED's from radio shack, a 47 ohm 1/2 watt resistor, a 9 volt connector and a momentary switch and came up with this:

the white cap on the end is the endcap of the yellow sharpie, heh perfect fit luckily.
the endcap is the jumbo markers encap.
with minimal distortion, the 9volt battery fits right inside

in a camera test against my face, my first pen (the bic) lit up a small portion of my cheek
my second pen (the sharpie) lit up the side of my face
my third pen (the big daddy) lit up my entire face

i made this so i could set the wiimote on the projector at one side of the room and will test it tomorrow to see how it does.

the only thing else i would do to it is put something on the end to disrupt the IR so it can more easily be seen behind it. I am thinking like a ping pong ball if its not too big, or just some hot glue.

the key to using hotglue for this, it so lightly dab it after it has cooled a little. cooled enough it doesnt stick but not enough that it is not mailable.

Other Projects / Wii-Theremin
« on: January 30, 2008, 09:44:57 AM »
I know that I commented about this on someone else's post but it ended up being something different than what they were talking about.

I have been playing with DirectSound and the wiimote to create a theremin like application. Doing a little google'ing you will find many people doing something like this with web cams and the like so it made sense that it could be done with a wiimote. I also found an application that is a .Net Synth called DirectXynth. It was written by Phillip Johnson and you can find a short bit about it here

I have contacted him about using his app as a base and he has shown interest in adding wiimote support so I will be working on that and distribute it if he gives permission.

Other than that I have been using DirectSound to output frequency based in 2 IR blobs reported from the wiimote but have run into issues of playing through a buffer but the issue is just my inexperience with DirectSound.

Any input or ideas you have would be great, other than that I will keep you guys informed of my achievements or hardships.

IR Pens / Pre-made pens
« on: January 27, 2008, 11:21:31 PM »
How many people would want pre-made pens? i mean hand made by people on this board. perhaps there could be a trade section that allowed people to put up requests or designs for pens and then the more handy technical people could make and sell them for cheap.

this of course would need to be policed to make sure fellow wiimoters were not trying to take advantage of other wiimoters but it would also provide a place where the people that are not as skilled in the craft could get some custom made for them for less than having to buy the high price pens that have IR + other capabilities that are not even needed for the apps.

Who here would buy a pen from other board members so long as it wasn't exorbitantly high in price? say, cost + 10-15% (for labor of course) + shipping? i don't know, just a thought.

Other Projects / wiimote drum machine
« on: January 19, 2008, 12:55:03 PM »
after messing around with the drum machine kit from Andrew Rudson

i thought it would be pretty sweet if you could do the same sort of thing with a wiimote and a few light pens, or a few pieces of reflective material and an IR led array.

i will tinker around but it will be from the ground up sort of thing since i cannot simply find Andrews code anywhere to edit. should be fun though, i just hope the wiimote will be able to read fast enough to get a good feel like your playing the drums.

the idea is to have multiple zones set up either in the air or on a surface depending on the orientation of the wiimote. then you assign a sound to be played when it reaches that area. it will be interesting and probably take some time to get right but thought it might be a fun waste of time, heh.

Whiteboard / Whiteboard app with left click right click or move only
« on: January 18, 2008, 08:10:17 PM »
this is my app with the addition of left click or right click.

i added mouse enter and exit to the black box there.
when you move over it, the mouse behavior will change from move only, to left click to right click.

this was accomplished by having this instead of the normal leftdown part

Code: [Select]
if (cursorControl)
    switch (mouseBehavior)
        case 1:
            mouse_event(MOUSEEVENTF_LEFTUP, 0, 0, 0, 0);
        case 2:
            mouse_event(MOUSEEVENTF_RIGHTUP, 0, 0, 0, 0);

you also have to do this for the leftup part thats a little further down the page

this was in the mainform.cs

Comments and Feedback / I'm still around
« on: January 17, 2008, 08:40:37 AM »
I dont think anyone has specifically requested something of me but i have been busy with work these last few days and not able to help out as much on here. after friday though that should change and i should be back at it. good job on the figuring out the visual styles thing with vista, and hopefully we can get a better bluetooth thing going.

i also am working on adding pairing into the app automatically but as i said before, work has been taking all my time.

any one else have any ideas for additions to the app(s)?

post 666 btw :P

Programmers Den / Free .NET 2.0 classes from Microsoft
« on: January 15, 2008, 08:22:44 AM »
Microsoft is having some free .NET 2.0 classes you can register for and do on your own. they are to get people prepared to ramp up to .Net 3.5 and you can do them at your own pace.

the links from the article are here:

MSDN Ramp-up

We are Microsoft


Check his blog

Second Life .NET User Group,

and the information about them is below,

From the Editor
Hello all and welcome again to MSDN Flash. As we put the holiday season behind us, your local developer community team is gearing up to deliver an awesome 2008.
Feeling a little rusty with your .NET 2.0 skills? Why not check out the MSDN Ramp Up program? You'll find free (yes, free) training to help you learn the skills you need to get ready for moving from 2.0 to 3.5. Just sign up, select your track and then you can take courses at your own pace. You'll also get a 30-percent discount on select books, too.

And, what better way to put those new skills to use than to join us for We Are Microsoft on January 18 - 20? This three-day event will match developers with local Dallas charities for a weekend of code-slinging to help these great organizations do their work. This is a rare opportunity to give something back to the broader community. Toi Wright and Chris Koenig have worked hard to make this happen, and there is a great list of charities that you can help. But, more importantly, you'll leave knowing that you've done a little something to make the world a better place.

Don't forget your local user group events. With the holidays over, area user groups are kicking up again and getting rolling, delivering great technical material as well as providing networking opportunities. Of course, it's also fun to just hang out with a bunch of other coders. If you don't know where your local user group is or when it meets, check out Codezone, where you can find your local groups. You can also check our team members' blogs, listed below.

In addition to your regular user group events, Zain Naboulsi is also busy doing MSDN events around the area. Check his blog for the latest dates and locations. Can't make an event in person? You can also join the Second Life .NET User Group, a new .NET community in the Second Life virtual world. When you join up, make sure you join the .NET Developers group in-world so you'll get notices about group meetings.

Make sure you check out your developer community team blogs, where you'll find event information, technical tidbits and more:

Chris Koenig
Zain Naboulsi
J Sawyer
Phil Wheat

Happy Coding!

Project Ideas / Cynergy Labs: Project Maestro
« on: January 14, 2008, 09:58:56 AM »

i know it has been mentioned on the boards at least once but i have not seen the video until today.

enjoy, and if someone is strong in wpf to make this possible, that would be pretty sweet!

I initially had issues with the apps i would get from his blog so i started digging around and found that Blue Soliel or whatever its called, has to install its own bluetooth driver on top of yours to get this to work. seeing as how it eventually costs money to use, i wanted to find a way around it.

luckily the fix is pretty easy. I ran the wiilib test app and it worked by itself....hmm but whiteboard doesnt.... What i did was compared the Connect method in the wiimote.cs file from the lib and the whitebaord app (and all of Johnny's other apps) and noticed there was a very small difference.

this is the code from Johnny's apps

Code: [Select]
if(attrib.VendorID == VID && attrib.ProductID == PID)
    if (!IsRemoteConnected((int)index))
        Debug.WriteLine("Found it!");
        found = true;
        remoteID = (int)index;

        // create a nice .NET FileStream wrapping the handle above
        mStream = new FileStream(mHandle, FileAccess.ReadWrite, REPORT_LENGTH, true);

        // start an async read operation on it

        // read the calibration info from the controller

What i noticed is the including of the options
Code: [Select]
if (!IsRemoteConnected((int)index))and
Code: [Select]
        remoteID = (int)index;

then they have in the wiilib a try catch around teh calibrate method. here is the wiilib snippet

Code: [Select]
if (attrib.VendorID == VID && attrib.ProductID == PID)
    Debug.WriteLine("Found it!");
    found = true;

    // create a nice .NET FileStream wrapping the handle above
    mStream = new FileStream(mHandle, FileAccess.ReadWrite, REPORT_LENGTH, true);

    // start an async read operation on it

    // read the calibration info from the controller
        // if we fail above, try the alternate HID writes
        mAltWriteMethod = true;


so if you take out the code and make it like the wiilib code, then it should work. i have not, however tried this with multiple wiimotes as i only have one.

hope this helps, and happy wii'ing

General Discussion / visual studio 2008 express editions
« on: January 12, 2008, 09:08:56 PM »
so is anyone doing wii development in these?

i was about to get one to do some work on bluetooth connecting and when i went to microsoft so look them up i came to this page

scroll to the bottom and notice the image. Its the wii lib default app. heh.

Project Ideas / alternative way to use the wiimote on computer
« on: January 12, 2008, 08:29:07 PM »
ok, so the wii hooks up to the computer. thats pretty sweet.

and we can build pens to control it, thats pretty sweet as well

well what about holding the wiimote rather than the pen?

what if you built a suction cup (for the whiteboard app) and put on your whiteboard.

you could write a program to control it properly like holding the bottom button (i think B) to move the mouse, you could use A for clicking and also assign a right click button. this wouldnt be very hard to make. the hardest thing would be making the always on led and that would be pretty easy.

im not currently making this but i guess i could if someone needed this. what this would provide would be a wireless mouse (using the wiimote) and full control. you could even program the buttons to do all sorts of crazy stuff like next and previous page in a powerpoint or opening a program or whatever. seems like it would be a good way around the problem with detecting right clicks too.

just an idea.

IR Pens / My pen Schematic
« on: January 10, 2008, 08:58:33 AM »
Pretty much follows the image from the initial blog site.
I have now built 2,
one using a Sharpie Accent pen body

and one using a Bic Ultra Round Stick Grip

from radio shack i got the rest

Infrared LED
part: 276-143

Momentary Switch
part: 275-1571

1 AA battery holder
part: 270-401

here is a picture of the two i got so far. they work but are less than pretty.
the first one was the bic pen. i got the momentary switch before realizing that the switch was longer than the pen. thats one reason i switched to the sharpie.
the other thing on my pens is if you look at where the LED is, there is the clear cap on the bic and the end cap from the bic is on the sharpie. when i used the tracking box from the wiilib example, it makes it show up so much better.

Also i tried to find a different battery container that is just a cap for a single AA but i could not so i will have to make one later. When i get one, the battery on the sharpie will be inside with the original cap on the end.

also on the bic i initially superglued the button in place then the pen stopped working properly come to find out the glue i used is conductive (future glue) so be weary of that... heh

they dont look great but they work. so thats all i need. heh.

Comments and Feedback / Pen design conversations
« on: January 09, 2008, 09:00:15 AM »
Perhaps there could be a sub-section for Pen schematics and discussions on how people built them and where they got their stuff....

might be informative to the masses.

Say Hi! / meet the locals
« on: January 07, 2008, 10:05:00 PM »
me, im developer who loves to tinker. i dont own a wii but enjoy playing with wiimotes

Pages: 1