1 00:00:00,000 --> 00:00:16,040 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. 2 00:00:18,160 --> 00:00:34,520 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. 3 00:00:36,580 --> 00:00:43,440 Basically, what we're doing is we have infrared head tracking, so it tracks the movement of a person's head. 4 00:00:43,560 --> 00:00:46,020 And then we also have a system that tracks the movement of a person's head. 5 00:00:46,040 --> 00:00:52,800 And then we also have weight shift tracking to add to, like with the Wiifit board, a little bit more mobility. 6 00:00:54,200 --> 00:01:05,520 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. 7 00:01:06,720 --> 00:01:12,340 It tracks up to four different sources, and right now, we're only using one source for head tracking. 8 00:01:12,800 --> 00:01:16,020 But in the future, if we plan on doing gesture tracking, we're going to be able to do that. 9 00:01:16,040 --> 00:01:23,000 So, like, signal recognition or maybe even, like, sign recognition with the Wiimote, it would give us more options for more sources. 10 00:01:24,400 --> 00:01:35,140 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. 11 00:01:35,260 --> 00:01:45,740 So, we can get that information coming straight to our computer, and then there's another library that we're using, WiiUse. 12 00:01:45,840 --> 00:01:46,020 So, that's important. 13 00:01:46,020 --> 00:01:49,440 which takes all that Bluetooth information, all those hex values, 14 00:01:49,720 --> 00:01:53,360 and then converts it into functions which we can easily read and communicate with. 15 00:01:55,660 --> 00:02:00,100 At this point, I'm going to pass this on to my friend Cuddles over here, 16 00:02:00,200 --> 00:02:04,000 who's going to talk to you a little bit about the hardware aspect of the Wiimote. 17 00:02:06,460 --> 00:02:08,180 All right, so the Wiimote. 18 00:02:08,280 --> 00:02:09,160 Everyone's seen it. 19 00:02:09,640 --> 00:02:11,500 Most of you guys have probably even used it. 20 00:02:11,740 --> 00:02:14,640 And basically, it's the controller for the Nintendo's Wii, 21 00:02:14,640 --> 00:02:16,580 which is the current system they have out now. 22 00:02:17,180 --> 00:02:20,600 And what we're working with primarily is the infrared camera in the front. 23 00:02:20,960 --> 00:02:24,940 And that camera detects infrared light from the sensor bar. 24 00:02:25,420 --> 00:02:28,460 And the sensor bar doesn't even have any sensors in it at all. 25 00:02:28,540 --> 00:02:32,280 It's just two clusters of infrared lights on both sides. 26 00:02:32,460 --> 00:02:35,180 And both sides have five infrared lights each. 27 00:02:35,760 --> 00:02:40,380 So to the camera, it's just two infrared blobs on each side of the sensor bar. 28 00:02:40,540 --> 00:02:43,460 And with that, it allows it to triangulate your position 29 00:02:43,460 --> 00:02:44,620 to tell where you're at. 30 00:02:44,640 --> 00:02:46,120 And where you are in relation to the screen. 31 00:02:47,440 --> 00:02:49,540 And it actually tracks up to four sources. 32 00:02:49,620 --> 00:02:55,180 So you can actually have two sensor bars, and it will detect like all four blobs of infrared. 33 00:02:57,620 --> 00:03:02,880 Now, for the hardware, here's actual pictures of the chip inside the Wiimote. 34 00:03:03,440 --> 00:03:05,000 And here are the buttons. 35 00:03:05,920 --> 00:03:10,180 This is the adapter where you connect the nunchuck and the Guitar Hero controller. 36 00:03:11,140 --> 00:03:11,660 Bluetooth. 37 00:03:12,100 --> 00:03:14,620 And the infrared camera, which is what we're primarily using. 38 00:03:14,620 --> 00:03:22,960 Now, the infrared camera supports a resolution of 1024x768 pixels. 39 00:03:23,440 --> 00:03:26,880 Which is pretty good compared to most webcams you can find out there. 40 00:03:26,980 --> 00:03:31,820 Which are for $40 that only produce about 640x480 pixels. 41 00:03:32,000 --> 00:03:36,740 So, not only are you getting a good controller, but you're also getting a pretty good infrared micro camera. 42 00:03:38,220 --> 00:03:41,740 And the Bluetooth chip is a Broadcom 2042 chip. 43 00:03:41,920 --> 00:03:44,520 And it's not 100% compatible with HID. 44 00:03:45,000 --> 00:03:47,360 Now, what HID is, it's a standard for Bluetooth. 45 00:03:47,700 --> 00:03:51,600 So basically, it's made to connect to the Wii, right? 46 00:03:51,700 --> 00:03:58,120 So you can connect it to pretty much any infrared Bluetooth receiver, but it won't work. 47 00:03:58,960 --> 00:04:02,800 It'll work, but you'll get like these weird errors or unforeseen like errors. 48 00:04:02,940 --> 00:04:05,920 You'll be able to work through them, but you'll get like finicky controls. 49 00:04:06,440 --> 00:04:08,080 So we had to work with that as well. 50 00:04:09,640 --> 00:04:11,760 And here are our glasses, which... 51 00:04:14,520 --> 00:04:22,820 So, we made that out of just basic goggles and we constructed a circuit for infrared sensors or transmitters. 52 00:04:23,520 --> 00:04:31,420 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. 53 00:04:32,140 --> 00:04:36,120 And it's pretty energy efficient, only one and a half volts and 50 milliamps. 54 00:04:37,340 --> 00:04:38,880 And here's the actual circuit. 55 00:04:39,420 --> 00:04:44,280 You have the 1.5 volt battery in series with two... 56 00:04:44,280 --> 00:04:44,500 You have the 1.5 volt battery in series with two... 57 00:04:45,700 --> 00:04:49,200 Infrared diodes in parallel to each other, so they both get the same amount of voltage. 58 00:04:49,560 --> 00:04:54,880 And then the resistor in series with all of it, giving them the 50 milliamp current needed. 59 00:04:56,140 --> 00:04:58,160 And then here's our little lab setup. 60 00:04:58,440 --> 00:05:00,280 It's pretty much exactly what you see here. 61 00:05:01,680 --> 00:05:03,780 And it's pretty ghetto, but it gets the job done. 62 00:05:06,020 --> 00:05:10,200 And now I'm going to pass it back on to Robert, who's going to talk about the software end of our project. 63 00:05:13,120 --> 00:05:13,700 All right. 64 00:05:13,720 --> 00:05:14,100 So... 65 00:05:14,100 --> 00:05:15,780 Here's a little bit about the software. 66 00:05:17,040 --> 00:05:22,240 As I mentioned earlier, we're using the WiiUse library, and that is coded for the C programming language. 67 00:05:24,580 --> 00:05:29,720 Basically, it's a single-threaded, non-blocking library, and it's pretty simply coded, like I stated before. 68 00:05:30,100 --> 00:05:32,120 Most of the functions are self-explanatory. 69 00:05:32,900 --> 00:05:37,140 It's like set LED to turn an LED off, like set it to one and stuff like that. 70 00:05:37,280 --> 00:05:38,780 So it's mostly self-explanatory. 71 00:05:39,160 --> 00:05:41,720 And if you do have any questions about it, there's a great... 72 00:05:41,720 --> 00:05:43,840 There's the website we got it from, WiiUse.net. 73 00:05:43,840 --> 00:05:47,200 It has tremendous documentation on it, and it's just... 74 00:05:47,200 --> 00:05:49,200 It's all really basic to understand. 75 00:05:49,420 --> 00:05:53,560 I mean, we understand it, and we didn't really know anything much about the Wiimote coming into this. 76 00:05:55,020 --> 00:06:05,280 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. 77 00:06:06,480 --> 00:06:08,840 But how are we going to have them run at the same time? 78 00:06:08,980 --> 00:06:13,180 And then our idea for that, after much thinking, was how about we run multi-threads? 79 00:06:13,840 --> 00:06:22,600 So right now, we have one main program that creates, which is written in C++, that creates two sub-threads, or two, like... 80 00:06:22,600 --> 00:06:29,900 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. 81 00:06:30,400 --> 00:06:36,720 The reason we have a main C++ program is so that we can access other code, such as this... 82 00:06:36,720 --> 00:06:42,120 Such as gesture recognition code that's being worked on at our school. 83 00:06:42,400 --> 00:06:43,480 And it... 84 00:06:43,480 --> 00:06:47,520 Since that's code in C++, we need to have another code that can communicate with it easily. 85 00:06:51,420 --> 00:06:58,500 So one of the main features of our product is the head-tracking aspect. 86 00:07:00,060 --> 00:07:09,260 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. 87 00:07:09,740 --> 00:07:12,920 Now, the two Wiimotes, you have a Wiimote positioned to your left and your right. 88 00:07:12,920 --> 00:07:21,540 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. 89 00:07:22,000 --> 00:07:27,900 We use the X and the Y coordinates right now just for mouse movement and positioning. 90 00:07:28,880 --> 00:07:38,000 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. 91 00:07:38,340 --> 00:07:42,900 So if you're reading something and trying to lean in close, you won't have a mouse in your way. 92 00:07:44,100 --> 00:07:49,640 At this time, I'm going to demonstrate a little bit about the three-dimensional positioning and show you a little demo. 93 00:08:26,640 --> 00:08:27,360 All right. 94 00:08:27,400 --> 00:08:29,560 So this is my main screen. 95 00:08:29,740 --> 00:08:30,300 Hold on, Josh. 96 00:08:30,520 --> 00:08:33,680 All right. 97 00:08:33,720 --> 00:08:41,120 So this demo is basically we made something simple, and it's just it creates, like, it's just a couple images. 98 00:08:41,140 --> 00:08:42,300 It's a rocket ship in space. 99 00:08:42,900 --> 00:08:49,760 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. 100 00:08:53,800 --> 00:08:54,260 All right. 101 00:08:58,920 --> 00:09:03,840 First thing I need to do is tell the program what the distance is between our Wiimotes. 102 00:09:04,380 --> 00:09:06,380 Currently, we have them at 36 inches apart. 103 00:09:07,120 --> 00:09:08,960 It's whatever the user decides. 104 00:09:09,240 --> 00:09:12,880 But we found that 36 creates a decent distance. 105 00:09:12,880 --> 00:09:14,480 It's a decent viewable range from both Wiimotes. 106 00:09:17,120 --> 00:09:21,280 And then I also have to tell which Wiimote is to the left and which Wiimote is to the right. 107 00:09:21,420 --> 00:09:27,420 So first off, I'll say 3, because we have Wiimote 3 to the right. 108 00:09:27,600 --> 00:09:30,880 And we do that by lighting up the LEDs to tell which Wiimote is which. 109 00:09:36,240 --> 00:09:38,020 And then Wiimote 2 is to the left. 110 00:09:38,640 --> 00:09:42,760 The reason it says there's three different sources is because we also have the Wii Fit board. 111 00:09:42,760 --> 00:09:44,480 Which would act as Wiimote 1. 112 00:09:47,840 --> 00:09:53,660 Now that everything's connected and ready to go, I put on my glasses and... 113 00:09:53,660 --> 00:09:58,220 Very fashionable, as Grungy states. 114 00:09:58,820 --> 00:10:04,840 But as soon as I push the up button, that'll trigger the infrared detection to start. 115 00:10:06,440 --> 00:10:07,140 Or it should. 116 00:10:10,440 --> 00:10:10,920 It's on? 117 00:10:11,520 --> 00:10:12,020 All right. 118 00:10:16,280 --> 00:10:20,000 So I can't see, I don't have, it's presentation mode so I can't really see the screen. 119 00:10:23,860 --> 00:10:26,480 So what I'm gonna do is I'm gonna move left and right. 120 00:10:26,800 --> 00:10:28,360 It should be moving left and right. 121 00:10:28,480 --> 00:10:29,080 I hope so. 122 00:10:30,100 --> 00:10:31,500 It's actually moving in circles. 123 00:10:32,580 --> 00:10:35,460 Wait, I'm not done, guys. 124 00:10:37,840 --> 00:10:38,400 All right. 125 00:10:38,420 --> 00:10:39,820 So I'm moving up and down. 126 00:10:39,860 --> 00:10:41,640 And it should be moving up and down, I hope. 127 00:10:43,160 --> 00:10:44,460 So bear with me if it's not. 128 00:10:45,240 --> 00:10:49,200 All right, and then lastly, I try to zoom in and out. 129 00:10:50,260 --> 00:10:51,500 Is it getting bigger and smaller? 130 00:10:52,300 --> 00:10:53,040 All right, cool. 131 00:10:53,260 --> 00:10:54,940 All right, so that's a three-dimensional . 132 00:11:00,800 --> 00:11:01,680 Sorry about that. 133 00:11:02,120 --> 00:11:03,560 It's more convenient when you're doing it 134 00:11:03,560 --> 00:11:04,800 on the screen in front of you, so. 135 00:11:07,460 --> 00:11:08,880 All right, I'll just close out of that. 136 00:11:09,080 --> 00:11:10,340 You guys can connect back to the computer. 137 00:11:18,520 --> 00:11:19,900 All right, you can take it out. 138 00:11:24,400 --> 00:11:26,240 With the Mac, you can see it on the screen 139 00:11:26,240 --> 00:11:27,720 at the same time that it's up there. 140 00:11:31,020 --> 00:11:31,380 Ouch. 141 00:11:32,960 --> 00:11:34,080 This computer's kind of weird. 142 00:11:35,320 --> 00:11:36,460 I don't want to know what he's doing. 143 00:11:39,160 --> 00:11:39,860 What does it add? 144 00:11:43,000 --> 00:11:44,200 Give it a second. 145 00:11:44,980 --> 00:11:46,240 What were you saying about your Mac? 146 00:11:48,400 --> 00:11:48,800 No. 147 00:11:50,780 --> 00:11:51,400 There it is. 148 00:11:51,580 --> 00:11:52,300 Now we're good. 149 00:11:55,620 --> 00:11:58,760 All right, we're all good. 150 00:11:58,800 --> 00:11:59,480 All systems go. 151 00:12:00,840 --> 00:12:03,080 Okay, so back to the presentation. 152 00:12:03,480 --> 00:12:04,460 Hope you guys enjoyed that. 153 00:12:04,980 --> 00:12:06,920 But, so how does it work? 154 00:12:07,120 --> 00:12:09,200 I guess that's probably what's all on your mind now, 155 00:12:09,360 --> 00:12:10,840 is how exactly are we doing it? 156 00:12:10,840 --> 00:12:15,040 And what we're doing is we have, as you see up here, 157 00:12:15,140 --> 00:12:17,480 we have our screen, and then we have a Wemo to the left, 158 00:12:17,520 --> 00:12:20,580 Wemo to the right, and they're both pointed 159 00:12:20,580 --> 00:12:25,420 at about 22 and a half degrees out, or I guess, towards me. 160 00:12:28,200 --> 00:12:29,020 Sorry about that. 161 00:12:29,360 --> 00:12:31,640 All right, they're both pointed at about 22 and a half degrees 162 00:12:31,640 --> 00:12:35,720 towards me and up vertically, so that kind of creates 163 00:12:35,720 --> 00:12:37,000 more of like a background. 164 00:12:38,620 --> 00:12:39,520 See if I can use this. 165 00:12:39,520 --> 00:12:42,200 It creates like this background at zero degrees right here. 166 00:12:42,980 --> 00:12:46,000 And that also works for the Y direction and the Z direction. 167 00:12:46,320 --> 00:12:50,060 So saying that all the positioning starts there and then goes off. 168 00:12:51,580 --> 00:12:54,860 As far as finding the angles, since there's a resolution, 169 00:12:55,120 --> 00:12:59,920 since we found out the resolution is 1024 by 768, well, 170 00:13:00,000 --> 00:13:03,940 we were thinking, well, if your X coordinate's gonna go from 0 to 1024, 171 00:13:04,340 --> 00:13:06,860 why not scale that down to 0 to 45? 172 00:13:07,480 --> 00:13:09,500 And when you do that, then you have a 0 to 45, so 173 00:13:09,500 --> 00:13:12,240 we had 45 degree angle, which the Wiimote is set up to project. 174 00:13:12,940 --> 00:13:14,800 So we did that for both the X and the Y 175 00:13:14,800 --> 00:13:16,760 to get our angles vertically and horizontally. 176 00:13:18,880 --> 00:13:20,920 After we got the angles, it was just a little bit 177 00:13:20,920 --> 00:13:21,960 of geometry from there. 178 00:13:22,240 --> 00:13:25,820 We calculated, we created this formula, or derived this formula, 179 00:13:27,800 --> 00:13:30,000 and first we split up, and the two triangles, 180 00:13:30,200 --> 00:13:33,960 and each, and we first found the X direction 181 00:13:33,960 --> 00:13:35,920 of this triangle right here. 182 00:13:37,300 --> 00:13:39,480 And then, from there, we found out the other X angle. 183 00:13:39,500 --> 00:13:41,500 direction, combine them both, and you get your 184 00:13:41,500 --> 00:13:43,300 x coordinates, which is the 185 00:13:44,620 --> 00:13:45,420 pretty much the 186 00:13:45,420 --> 00:13:47,440 it's based off the distance from your 187 00:13:47,440 --> 00:13:48,020 left Wiimote. 188 00:13:51,240 --> 00:13:53,480 After getting, after we, with one 189 00:13:53,480 --> 00:13:55,420 of our squares, then we were able to derive 190 00:13:55,420 --> 00:13:57,500 what the z and 191 00:13:57,500 --> 00:13:59,540 the y coordinates were, with another 192 00:13:59,540 --> 00:14:01,540 with a little bit more geometry, using 193 00:14:01,540 --> 00:14:03,260 a tangent function. Since we have the adjacent 194 00:14:03,260 --> 00:14:05,400 side, why not use a tangent function 195 00:14:05,400 --> 00:14:06,860 to get the opposite side for both 196 00:14:07,740 --> 00:14:09,500 the x and the, or for both the z 197 00:14:09,500 --> 00:14:09,940 and the y. 198 00:14:11,240 --> 00:14:12,840 And as I stated before, they're just 199 00:14:13,900 --> 00:14:15,460 they're from, they're the distance from 200 00:14:15,460 --> 00:14:17,500 this little zero degree mark right 201 00:14:17,500 --> 00:14:18,360 here, and up. 202 00:14:19,700 --> 00:14:21,620 But, you all, right now, as you see, 203 00:14:21,700 --> 00:14:23,480 we also have a displacement of about 14 204 00:14:23,480 --> 00:14:25,380 inches, and that's just to say 205 00:14:25,900 --> 00:14:27,500 we don't want, we don't want the user to 206 00:14:27,500 --> 00:14:29,560 have his head laying on the table, when he 207 00:14:29,560 --> 00:14:31,300 has to use the Wiimote. 208 00:14:31,440 --> 00:14:33,180 So, you gotta bring him up a bit, so 209 00:14:33,900 --> 00:14:35,200 so that he or she can 210 00:14:35,800 --> 00:14:36,720 comfortably use it. 211 00:14:38,760 --> 00:14:41,180 Alright, at this point, I'm going to do 212 00:14:41,180 --> 00:14:43,060 another demonstration about the mouse 213 00:14:43,060 --> 00:14:43,360 control. 214 00:14:47,380 --> 00:14:47,960 ... 215 00:15:20,520 --> 00:15:21,080 One sec. 216 00:15:21,840 --> 00:15:22,880 Mike seems to have died. 217 00:15:28,580 --> 00:15:29,200 Oh, now it's good. 218 00:15:30,360 --> 00:15:31,120 Okay, never mind. 219 00:15:31,240 --> 00:15:32,140 Alright, it's good. Sorry about that. 220 00:15:33,060 --> 00:15:34,980 Okay, again, bear with me, because I don't have the screen 221 00:15:34,980 --> 00:15:36,640 in front of me, but I'm going to try to demonstrate 222 00:15:36,640 --> 00:15:38,440 the movement of 223 00:15:38,440 --> 00:15:40,560 the mouse, movement of a mouse 224 00:15:40,560 --> 00:15:41,920 with the X and Y coordinates. 225 00:15:44,940 --> 00:15:45,420 What? 226 00:15:47,660 --> 00:15:48,480 It's going to be hard. 227 00:15:51,420 --> 00:15:52,700 Alright, again, I gotta say 228 00:15:52,700 --> 00:15:54,460 the distance, it's 36 inches. 229 00:15:56,080 --> 00:15:56,800 And then 230 00:15:56,800 --> 00:15:58,700 we have Wiimote 3 to the right. 231 00:16:00,400 --> 00:16:01,280 Remember, folks, 232 00:16:01,400 --> 00:16:02,480 he's doing this blind. 233 00:16:02,780 --> 00:16:03,860 Ready for the flip. 234 00:16:04,960 --> 00:16:06,200 Yeah, it's like I'm from the circus. 235 00:16:07,720 --> 00:16:08,380 Blindfolded. 236 00:16:11,880 --> 00:16:13,240 Alright, and I gotta hit 237 00:16:13,240 --> 00:16:15,220 up to activate the control. 238 00:16:16,680 --> 00:16:17,940 Is it working at all? 239 00:16:18,360 --> 00:16:18,960 Alright, alright. 240 00:16:20,380 --> 00:16:21,040 Yeah. 241 00:16:23,000 --> 00:16:24,920 Are you aware that 242 00:16:25,580 --> 00:16:27,580 Tom's got a phone call? 243 00:16:28,600 --> 00:16:29,260 ... 244 00:16:29,260 --> 00:16:30,460 ... 245 00:16:30,460 --> 00:16:31,300 ... 246 00:16:32,360 --> 00:16:33,020 ... 247 00:16:33,020 --> 00:16:33,440 ... 248 00:16:36,640 --> 00:16:37,020 ... 249 00:16:37,020 --> 00:16:37,340 ... 250 00:16:40,940 --> 00:16:41,580 ... 251 00:16:42,540 --> 00:16:43,180 ... 252 00:16:43,180 --> 00:16:43,500 ... 253 00:16:44,540 --> 00:16:45,180 ... 254 00:16:45,180 --> 00:16:45,960 ... 255 00:16:45,960 --> 00:16:46,740 ... 256 00:16:53,020 --> 00:16:55,000 That was a scroll wheel function. 257 00:16:56,360 --> 00:16:57,300 Alright, how are we doing now? 258 00:16:59,000 --> 00:16:59,640 ... 259 00:17:00,700 --> 00:17:01,340 ... 260 00:17:03,020 --> 00:17:03,660 ... 261 00:17:03,660 --> 00:17:03,980 ... ... 262 00:17:08,920 --> 00:17:09,320 ... 263 00:17:09,320 --> 00:17:09,680 There you go. 264 00:17:10,300 --> 00:17:11,340 Alright, there we go. 265 00:17:11,780 --> 00:17:12,180 ... 266 00:17:14,120 --> 00:17:16,220 ... So, I'm moving a mouse around 267 00:17:16,220 --> 00:17:16,940 to where I hope I am. 268 00:17:17,120 --> 00:17:17,480 ... 269 00:17:17,480 --> 00:17:18,500 ... ... 270 00:17:19,660 --> 00:17:20,060 ... 271 00:17:21,780 --> 00:17:22,180 ... 272 00:17:22,180 --> 00:17:22,400 ... 273 00:17:22,400 --> 00:17:22,600 ... 274 00:17:26,760 --> 00:17:31,720 Okay, well, usually we demonstrate moving the box, if you guys stop by Hardware Hacking 275 00:17:31,720 --> 00:17:35,180 Village or Q and A or something, we'll try to demonstrate that there, but I can't really 276 00:17:35,180 --> 00:17:37,240 see the screen, so sorry about that. 277 00:17:56,520 --> 00:18:03,960 Well, no, we got, like, five minutes, yeah, I don't know how this is going to work. 278 00:18:04,280 --> 00:18:04,720 All right. 279 00:18:05,840 --> 00:18:06,320 All right. 280 00:18:06,320 --> 00:18:07,180 All right. 281 00:18:09,760 --> 00:18:15,600 So, I'm Josh, I'm Grungy, whatever you want to call me, it's cool, but I'm going to talk 282 00:18:15,600 --> 00:18:20,840 to you about how we use the Wii Fit board and our whole system here, and we were kind 283 00:18:20,840 --> 00:18:24,320 of just kicking around one day, we got the tracking and everything, and you can move 284 00:18:24,320 --> 00:18:28,880 the mouse around like you just saw, and that's pretty nifty and everything, but you can't 285 00:18:28,880 --> 00:18:32,920 really do anything once you get to that spot on the screen, which kind of is the point 286 00:18:32,920 --> 00:18:34,820 of a mouse, is to actually interact with the computer. 287 00:18:34,820 --> 00:18:42,280 So, to add that extra functionality into the whole system, we, you know, we're trying 288 00:18:42,280 --> 00:18:45,880 to think of ideas and everything, we asked our professor, and he had some cool ideas 289 00:18:45,880 --> 00:18:51,640 about this, and to do right-click, left-click, and all the normal Windows functions, we're 290 00:18:51,640 --> 00:18:56,460 like, all right, maybe you can't use your hands as well, you know, maybe you have multiple 291 00:18:56,460 --> 00:19:01,560 sclerosis or something like that, but you should be able to, it doesn't take too much 292 00:19:02,080 --> 00:19:03,520 to be able to shift your weight around. 293 00:19:03,740 --> 00:19:04,000 Yeah. 294 00:19:04,820 --> 00:19:10,960 I mean, it takes a lot to get yourself to have the accuracy to do that, you know, that's 295 00:19:11,580 --> 00:19:12,660 most people, I think. 296 00:19:12,800 --> 00:19:17,480 So what we did was we realized that the Wii Fit board has pressure sensors in each of 297 00:19:17,480 --> 00:19:22,060 its feet, so you can tell where a person's leaning, and Nintendo uses that in like their 298 00:19:22,060 --> 00:19:26,580 yoga programs and their aerobics and stuff like that to do that. 299 00:19:27,760 --> 00:19:34,140 So basically the features we added were right-click, left-click, scrolling, and actually even opening 300 00:19:34,140 --> 00:19:37,340 the gesture program on our whole thing. 301 00:19:37,500 --> 00:19:42,880 To do right-click, left-click, and scrolling, that's just, you use basically a Windows function 302 00:19:42,880 --> 00:19:48,460 called send input, and you can just look that up in MSDNA or check out our code when we 303 00:19:48,460 --> 00:19:49,000 release it. 304 00:19:49,780 --> 00:19:54,760 And to do the actual gesture program, I thought that was a really cool part about this was 305 00:19:54,760 --> 00:19:57,120 you have to install what's called a Windows hook. 306 00:19:57,380 --> 00:20:02,700 And what that does is it sits in like the message queue in Windows and watches all the 307 00:20:02,700 --> 00:20:03,520 messages go by. 308 00:20:03,520 --> 00:20:06,880 They're going to all the windows, and it says, oh, I'm looking for this. 309 00:20:07,000 --> 00:20:10,240 That's not what I want, until it finds the one it's looking for and then says, oh, I'm 310 00:20:10,240 --> 00:20:11,800 actually going to process this message. 311 00:20:12,480 --> 00:20:17,700 And that's what tells the gesture program to sort of open up and let the user, say, 312 00:20:17,780 --> 00:20:23,040 do a circle and open up Microsoft Word and the speech recognition software, you know, 313 00:20:23,040 --> 00:20:25,940 whatever they want to open so you don't have to go through all the menu-driven stuff. 314 00:20:26,360 --> 00:20:28,600 And I think that added a whole new level of functionality. 315 00:20:30,320 --> 00:20:31,380 Also bonus points. 316 00:20:31,440 --> 00:20:32,740 If you know what that error code means. 317 00:20:32,740 --> 00:20:36,540 If you know what that error code means in Microsoft compiler, they get that one a lot. 318 00:20:38,000 --> 00:20:39,660 So do you want to do that? 319 00:20:39,880 --> 00:20:40,320 Yeah. 320 00:20:40,360 --> 00:20:40,700 Yes. 321 00:20:40,700 --> 00:20:40,840 Yes. 322 00:20:40,980 --> 00:20:41,480 All right. 323 00:20:41,500 --> 00:20:47,640 So we're going to attempt to do the last demo because we'll see how good Rob is. 324 00:20:48,540 --> 00:20:49,260 Here you go. 325 00:20:55,420 --> 00:20:56,560 I had a better idea. 326 00:20:57,400 --> 00:20:58,400 Can you plug this in? 327 00:20:58,560 --> 00:20:58,900 Yeah. 328 00:21:00,100 --> 00:21:00,760 That one? 329 00:21:01,200 --> 00:21:01,640 Yeah. 330 00:21:02,080 --> 00:21:02,520 Yeah. 331 00:21:02,520 --> 00:21:02,720 Yeah. 332 00:21:13,360 --> 00:21:14,600 Yeah. 333 00:21:16,920 --> 00:21:18,920 This is . 334 00:21:18,920 --> 00:21:19,800 . 335 00:21:26,460 --> 00:21:28,940 All right. 336 00:21:29,020 --> 00:21:30,360 So originally . 337 00:21:30,360 --> 00:21:30,920 . 338 00:21:33,520 --> 00:21:38,540 Originally, we were going to do duck hunt and just try to demonstrate shooting the old 339 00:21:38,540 --> 00:21:44,880 NES game and shooting the duck, moving your head and clicking, but I just realized that 340 00:21:44,880 --> 00:21:47,380 I can't see the screen, so it's not going to be too effective. 341 00:21:48,940 --> 00:21:50,860 You can stop by later if you want to try. 342 00:21:51,080 --> 00:21:55,900 So I just came up with this idea, or I guess I think I heard a friend of mine say at one 343 00:21:55,900 --> 00:21:57,120 time, how about use paint? 344 00:21:57,300 --> 00:22:00,080 So we'll try to use paint to just show that we're clicking and moving around. 345 00:22:09,120 --> 00:22:10,520 Yeah. 346 00:22:34,180 --> 00:22:35,640 All right, it's calibrating now. 347 00:22:43,380 --> 00:22:44,400 Let's see if we can do this. 348 00:22:48,540 --> 00:22:49,960 This is without hands. 349 00:22:50,620 --> 00:22:51,020 Yeah. 350 00:22:55,200 --> 00:22:55,760 Am I on it? 351 00:22:58,920 --> 00:22:59,320 Yeah. 352 00:22:59,660 --> 00:23:00,060 Yeah. 353 00:23:00,080 --> 00:23:00,280 Yeah. 354 00:23:00,280 --> 00:23:00,900 That was better than I thought. 355 00:23:06,300 --> 00:23:07,960 All right, tell me how to move the screen. 356 00:23:08,100 --> 00:23:08,420 You're on screen. 357 00:23:08,620 --> 00:23:09,160 You're on screen. 358 00:23:11,160 --> 00:23:15,600 All right, finish it up. 359 00:23:21,960 --> 00:23:22,900 All right, now, say. 360 00:23:23,880 --> 00:23:24,780 We're about to get. 361 00:23:25,520 --> 00:23:25,840 What? 362 00:23:27,020 --> 00:23:27,820 Are we good? 363 00:23:28,440 --> 00:23:29,320 Yeah, that would have been perfect. 364 00:23:29,740 --> 00:23:30,060 Are we good? 365 00:23:31,640 --> 00:23:37,640 Sort of just want to thank everybody that was made like using the Wiimotes possible, 366 00:23:38,100 --> 00:23:41,300 we use, and all the independent hackers out there. 367 00:23:41,780 --> 00:23:42,220 Thanks. 368 00:23:44,020 --> 00:23:44,660 All right. 369 00:23:45,000 --> 00:23:45,960 We should be... 370 00:23:49,180 --> 00:23:50,640 Keep an eye on this website. 371 00:23:50,760 --> 00:23:53,980 We should be posting our source and all that stuff in the next couple of months. 372 00:23:54,120 --> 00:23:57,500 Just keep an eye out and thank you all for coming. 373 00:23:57,660 --> 00:23:58,760 We thank you all. 374 00:24:00,060 --> 00:24:00,520 Bye. 375 00:24:00,520 --> 00:24:00,600 Bye.