All right, good morning everybody. I would like to thank you all for coming out. We are WeAssist. We're a group of students from the University of Delaware, and over the last few months, we've been working on hacking and modifying the Wiimotes and the Wiifit boards to use them to help people with disabilities. Basically, our plan is to provide people with disabilities more interface options with the Windows operating system. There might be future plans of porting it to other operating systems, but for now, we're just coding it for Windows. Basically, what we're doing is we have infrared head tracking, so it tracks the movement of a person's head. And then we also have a system that tracks the movement of a person's head. And then we also have weight shift tracking to add to, like with the Wiifit board, a little bit more mobility. We chose the Wii platform mostly because it's inexpensive. It's only about $40 per controller, and for that $40, you get a great infrared tracking camera. It tracks up to four different sources, and right now, we're only using one source for head tracking. But in the future, if we plan on doing gesture tracking, we're going to be able to do that. So, like, signal recognition or maybe even, like, sign recognition with the Wiimote, it would give us more options for more sources. Also, the Wiimote has Bluetooth capabilities, and so does the Wiifit board, and this provides a really easy connection with the Wii controllers and the Wiifit board. So, we can get that information coming straight to our computer, and then there's another library that we're using, WiiUse. So, that's important. which takes all that Bluetooth information, all those hex values, and then converts it into functions which we can easily read and communicate with. At this point, I'm going to pass this on to my friend Cuddles over here, who's going to talk to you a little bit about the hardware aspect of the Wiimote. All right, so the Wiimote. Everyone's seen it. Most of you guys have probably even used it. And basically, it's the controller for the Nintendo's Wii, which is the current system they have out now. And what we're working with primarily is the infrared camera in the front. And that camera detects infrared light from the sensor bar. And the sensor bar doesn't even have any sensors in it at all. It's just two clusters of infrared lights on both sides. And both sides have five infrared lights each. So to the camera, it's just two infrared blobs on each side of the sensor bar. And with that, it allows it to triangulate your position to tell where you're at. And where you are in relation to the screen. And it actually tracks up to four sources. So you can actually have two sensor bars, and it will detect like all four blobs of infrared. Now, for the hardware, here's actual pictures of the chip inside the Wiimote. And here are the buttons. This is the adapter where you connect the nunchuck and the Guitar Hero controller. Bluetooth. And the infrared camera, which is what we're primarily using. Now, the infrared camera supports a resolution of 1024x768 pixels. Which is pretty good compared to most webcams you can find out there. Which are for $40 that only produce about 640x480 pixels. So, not only are you getting a good controller, but you're also getting a pretty good infrared micro camera. And the Bluetooth chip is a Broadcom 2042 chip. And it's not 100% compatible with HID. Now, what HID is, it's a standard for Bluetooth. So basically, it's made to connect to the Wii, right? So you can connect it to pretty much any infrared Bluetooth receiver, but it won't work. It'll work, but you'll get like these weird errors or unforeseen like errors. You'll be able to work through them, but you'll get like finicky controls. So we had to work with that as well. And here are our glasses, which... So, we made that out of just basic goggles and we constructed a circuit for infrared sensors or transmitters. And they provide 180 degree angle of infrared, so you can turn your head a little bit and the Wii remote will still detect you. And it's pretty energy efficient, only one and a half volts and 50 milliamps. And here's the actual circuit. You have the 1.5 volt battery in series with two... You have the 1.5 volt battery in series with two... Infrared diodes in parallel to each other, so they both get the same amount of voltage. And then the resistor in series with all of it, giving them the 50 milliamp current needed. And then here's our little lab setup. It's pretty much exactly what you see here. And it's pretty ghetto, but it gets the job done. And now I'm going to pass it back on to Robert, who's going to talk about the software end of our project. All right. So... Here's a little bit about the software. As I mentioned earlier, we're using the WiiUse library, and that is coded for the C programming language. Basically, it's a single-threaded, non-blocking library, and it's pretty simply coded, like I stated before. Most of the functions are self-explanatory. It's like set LED to turn an LED off, like set it to one and stuff like that. So it's mostly self-explanatory. And if you do have any questions about it, there's a great... There's the website we got it from, WiiUse.net. It has tremendous documentation on it, and it's just... It's all really basic to understand. I mean, we understand it, and we didn't really know anything much about the Wiimote coming into this. So after we got that, we decided that, okay, so we need to have C programming for our Wiimotes and C programming for the Wii Fit board. But how are we going to have them run at the same time? And then our idea for that, after much thinking, was how about we run multi-threads? So right now, we have one main program that creates, which is written in C++, that creates two sub-threads, or two, like... Yeah, two sub-threads, which run the Wiimote and the Wii Fit board to get the information and then relay it back to our C++ program. The reason we have a main C++ program is so that we can access other code, such as this... Such as gesture recognition code that's being worked on at our school. And it... Since that's code in C++, we need to have another code that can communicate with it easily. So one of the main features of our product is the head-tracking aspect. And what it is is, like, we have an infrared source, like Larry talked about, mounted on a pair of safety glasses, which the user puts on his or her head. Now, the two Wiimotes, you have a Wiimote positioned to your left and your right. And they pick up your positioning on an X-Y coordinate and then, through a little bit of geometry, convert it to three-dimensional positioning with your X, Y, and Z. We use the X and the Y coordinates right now just for mouse movement and positioning. But our ideas for the Z coordinates might be when a user leans in close to the computer, maybe magnify the screen or make the mouse disappear. So if you're reading something and trying to lean in close, you won't have a mouse in your way. At this time, I'm going to demonstrate a little bit about the three-dimensional positioning and show you a little demo. All right. So this is my main screen. Hold on, Josh. All right. So this demo is basically we made something simple, and it's just it creates, like, it's just a couple images. It's a rocket ship in space. And it'll show you how we can move it left and right, up and down, and it'll also demonstrate the Z axis by getting bigger and smaller. All right. First thing I need to do is tell the program what the distance is between our Wiimotes. Currently, we have them at 36 inches apart. It's whatever the user decides. But we found that 36 creates a decent distance. It's a decent viewable range from both Wiimotes. And then I also have to tell which Wiimote is to the left and which Wiimote is to the right. So first off, I'll say 3, because we have Wiimote 3 to the right. And we do that by lighting up the LEDs to tell which Wiimote is which. And then Wiimote 2 is to the left. The reason it says there's three different sources is because we also have the Wii Fit board. Which would act as Wiimote 1. Now that everything's connected and ready to go, I put on my glasses and... Very fashionable, as Grungy states. But as soon as I push the up button, that'll trigger the infrared detection to start. Or it should. It's on? All right. So I can't see, I don't have, it's presentation mode so I can't really see the screen. So what I'm gonna do is I'm gonna move left and right. It should be moving left and right. I hope so. It's actually moving in circles. Wait, I'm not done, guys. All right. So I'm moving up and down. And it should be moving up and down, I hope. So bear with me if it's not. All right, and then lastly, I try to zoom in and out. Is it getting bigger and smaller? All right, cool. All right, so that's a three-dimensional . Sorry about that. It's more convenient when you're doing it on the screen in front of you, so. All right, I'll just close out of that. You guys can connect back to the computer. All right, you can take it out. With the Mac, you can see it on the screen at the same time that it's up there. Ouch. This computer's kind of weird. I don't want to know what he's doing. What does it add? Give it a second. What were you saying about your Mac? No. There it is. Now we're good. All right, we're all good. All systems go. Okay, so back to the presentation. Hope you guys enjoyed that. But, so how does it work? I guess that's probably what's all on your mind now, is how exactly are we doing it? And what we're doing is we have, as you see up here, we have our screen, and then we have a Wemo to the left, Wemo to the right, and they're both pointed at about 22 and a half degrees out, or I guess, towards me. Sorry about that. All right, they're both pointed at about 22 and a half degrees towards me and up vertically, so that kind of creates more of like a background. See if I can use this. It creates like this background at zero degrees right here. And that also works for the Y direction and the Z direction. So saying that all the positioning starts there and then goes off. As far as finding the angles, since there's a resolution, since we found out the resolution is 1024 by 768, well, we were thinking, well, if your X coordinate's gonna go from 0 to 1024, why not scale that down to 0 to 45? And when you do that, then you have a 0 to 45, so we had 45 degree angle, which the Wiimote is set up to project. So we did that for both the X and the Y to get our angles vertically and horizontally. After we got the angles, it was just a little bit of geometry from there. We calculated, we created this formula, or derived this formula, and first we split up, and the two triangles, and each, and we first found the X direction of this triangle right here. And then, from there, we found out the other X angle. direction, combine them both, and you get your x coordinates, which is the pretty much the it's based off the distance from your left Wiimote. After getting, after we, with one of our squares, then we were able to derive what the z and the y coordinates were, with another with a little bit more geometry, using a tangent function. Since we have the adjacent side, why not use a tangent function to get the opposite side for both the x and the, or for both the z and the y. And as I stated before, they're just they're from, they're the distance from this little zero degree mark right here, and up. But, you all, right now, as you see, we also have a displacement of about 14 inches, and that's just to say we don't want, we don't want the user to have his head laying on the table, when he has to use the Wiimote. So, you gotta bring him up a bit, so so that he or she can comfortably use it. Alright, at this point, I'm going to do another demonstration about the mouse control. ... One sec. Mike seems to have died. Oh, now it's good. Okay, never mind. Alright, it's good. Sorry about that. Okay, again, bear with me, because I don't have the screen in front of me, but I'm going to try to demonstrate the movement of the mouse, movement of a mouse with the X and Y coordinates. What? It's going to be hard. Alright, again, I gotta say the distance, it's 36 inches. And then we have Wiimote 3 to the right. Remember, folks, he's doing this blind. Ready for the flip. Yeah, it's like I'm from the circus. Blindfolded. Alright, and I gotta hit up to activate the control. Is it working at all? Alright, alright. Yeah. Are you aware that Tom's got a phone call? ... ... ... ... ... ... ... ... ... ... ... ... ... That was a scroll wheel function. Alright, how are we doing now? ... ... ... ... ... ... There you go. Alright, there we go. ... ... So, I'm moving a mouse around to where I hope I am. ... ... ... ... ... ... ... Okay, well, usually we demonstrate moving the box, if you guys stop by Hardware Hacking Village or Q and A or something, we'll try to demonstrate that there, but I can't really see the screen, so sorry about that. Well, no, we got, like, five minutes, yeah, I don't know how this is going to work. All right. All right. All right. So, I'm Josh, I'm Grungy, whatever you want to call me, it's cool, but I'm going to talk to you about how we use the Wii Fit board and our whole system here, and we were kind of just kicking around one day, we got the tracking and everything, and you can move the mouse around like you just saw, and that's pretty nifty and everything, but you can't really do anything once you get to that spot on the screen, which kind of is the point of a mouse, is to actually interact with the computer. So, to add that extra functionality into the whole system, we, you know, we're trying to think of ideas and everything, we asked our professor, and he had some cool ideas about this, and to do right-click, left-click, and all the normal Windows functions, we're like, all right, maybe you can't use your hands as well, you know, maybe you have multiple sclerosis or something like that, but you should be able to, it doesn't take too much to be able to shift your weight around. Yeah. I mean, it takes a lot to get yourself to have the accuracy to do that, you know, that's most people, I think. So what we did was we realized that the Wii Fit board has pressure sensors in each of its feet, so you can tell where a person's leaning, and Nintendo uses that in like their yoga programs and their aerobics and stuff like that to do that. So basically the features we added were right-click, left-click, scrolling, and actually even opening the gesture program on our whole thing. To do right-click, left-click, and scrolling, that's just, you use basically a Windows function called send input, and you can just look that up in MSDNA or check out our code when we release it. And to do the actual gesture program, I thought that was a really cool part about this was you have to install what's called a Windows hook. And what that does is it sits in like the message queue in Windows and watches all the messages go by. They're going to all the windows, and it says, oh, I'm looking for this. That's not what I want, until it finds the one it's looking for and then says, oh, I'm actually going to process this message. And that's what tells the gesture program to sort of open up and let the user, say, do a circle and open up Microsoft Word and the speech recognition software, you know, whatever they want to open so you don't have to go through all the menu-driven stuff. And I think that added a whole new level of functionality. Also bonus points. If you know what that error code means. If you know what that error code means in Microsoft compiler, they get that one a lot. So do you want to do that? Yeah. Yes. Yes. All right. So we're going to attempt to do the last demo because we'll see how good Rob is. Here you go. I had a better idea. Can you plug this in? Yeah. That one? Yeah. Yeah. Yeah. Yeah. This is . . All right. So originally . . Originally, we were going to do duck hunt and just try to demonstrate shooting the old NES game and shooting the duck, moving your head and clicking, but I just realized that I can't see the screen, so it's not going to be too effective. You can stop by later if you want to try. So I just came up with this idea, or I guess I think I heard a friend of mine say at one time, how about use paint? So we'll try to use paint to just show that we're clicking and moving around. Yeah. All right, it's calibrating now. Let's see if we can do this. This is without hands. Yeah. Am I on it? Yeah. Yeah. Yeah. That was better than I thought. All right, tell me how to move the screen. You're on screen. You're on screen. All right, finish it up. All right, now, say. We're about to get. What? Are we good? Yeah, that would have been perfect. Are we good? Sort of just want to thank everybody that was made like using the Wiimotes possible, we use, and all the independent hackers out there. Thanks. All right. We should be... Keep an eye on this website. We should be posting our source and all that stuff in the next couple of months. Just keep an eye out and thank you all for coming. We thank you all. Bye. Bye.