Posts Tagged ‘hockey’

CMUcam2 in Matlab! & Project updates!

Posted by Erin, the RobotGrrl on Wednesday, February 24th, 2010

On Sunday, a breakthrough was made with regards to getting the CMUcam2 to send a frame back to Matlab! Amazing! It works!

Check out the screenshots:

Matlab & CMUcam2

(something bright was being shone onto the camera)

Matlab & CMUcam2

(lens cap on (yes they make lens caps that small))

It’s quite noticeable that the resolution is very small. In fact, it’s only about 10 pixels in size!

I started off small so that we could have something that works, then go from there. :D It’s only sending the green channel too, which helps improve the latency.

The way it works now is that it asks for a few hundred bytes of data. From there, we search through the array to find a 1, or the start of the frame, until a 3, or the end of the frame. This is stored into a new variable so that we can search through it (again!) and plot the data.

Plotting the data needs some improvement. Not too sure how to handle this yet– should I make a Processing app that will be able to save the image as a .png? Or can Matlab write images too? Hmm!

Post a comment if you want me to post the code, I just don’t want to post something that’s incomplete and will essentially confuse everyone. :)

Other projects statii:

PR2 Proposal

Out of the 120 Letters of Intent that WillowGarage received for the PR2 Beta program, one of them is one from Clarkson University!

There are ten robots that are going to be given away. Coincidentally, the research teams that win will be notified on March 26th — that’s the date of the Boston FIRST regional (which Team 229 is attending and is going to ROCK THE ROBOT HOUSE)! :D

We’re giving it our best shot, and it’s looking really cool! If you see me around, ask me about it! :D

This whole process has been super exciting. Our proposal is being wrapped up, though it’s only due March 1st (that’s in six days, we still have plenty of time). My two sections are pretty much complete except for some stuff. I’ll be blogging about it on March 1st at 8:00PM, so keep an eye out!


Sociable Robotics

The Socializing a Social Robot with an Artificial Society SURE abstract from the summer has been added to the Honors Summer Research 2009 page! Finally! ^_^

Also, I refined my paper with logic that can easily be followed now, and included Zoomify graphs of the results. This makes it easy for readers to scan and interpret the graphs themselves. Plus, Zoomify graphs are always fun.

As for the code… I still have to get on to documenting it. It’s a lot of work, so I’m just getting through it step by step. Lesson learned: although comments are distracting when you’re working on the code, it’s horrible to go back and then spend time to comment it. Always comment. No exceptions!


SecondLife Statistics Project

We finally parsed through the data and found something really striking. When the economic downturn in real life appeared, the usage hours on SecondLife rose, and kept on rising for a few months! The virtual economy was booming. It’s almost like as if people were tired of the real life, and wanted the easy success of the virtual world.

Though, there was eventually a decrease in the usage hours on SecondLife. This leads us to wonder if…
1) Is there a lag between RL and SL?
2) Did people notice that there weren’t as many opportunities on SL as when they first joined?

It’s really cool to think about this sort of stuff. It makes you wonder what Oreo sales have been like throughout this modern recession. I would love to study Oreo sales, I think they would be really representative of the economic situations. Either that, or Oreo sales always remain constant. :P


Team 229

This build season I helped out with the website a lot. We were coming from nothing, and now we have a beautiful source of information, all collected together!

It was quite a load of work, however help from the teammates and mentors helped very much. Go check it out!


Physics Team Design

In Physics II there are two lab sections that allow you to participate in a team based design course. The challenge is to model the velocity of a hobby train with given voltages. We do this using photogates… and a piece of National Instruments hardware that measures data at a rate of 400,000. I’m not sure what the units are, but it’s pretty amazing! The challenge sessions are where we apply this model, trying to predict the train’s movements based on the data that we have collected.

The way the data is collected is through LabView. Unfourtunately, the program that is used was deleted… so the professor/TA needed some help to fix it. After working on it for a few hours, we figured it out and got it to work! :)


iPhone Stuff

I’ve been playing around with core-plot and working on an app lately- it’s 80% done, and will be out on the App store within the next few weeks!

We’re still trying to sort out if we’re going to Open Source it, and how that would work (since we want people to buy the App too…!). Perhaps we could just *suggest* a donation whenever people try to download the code? Anyone have any experience with Open Source App business model plans?


Random

Coming back from winter break to school was tricky this time around… since I was outside the entire day playing hockey during the break!!! Although Clarkson has open skate, their ice mixture is really weird, and there’s no pickup hockey games :( Better than nothing, though.

I bought two shirts from shirt.woot, and they are awesome. One of them is ‘I Fought the Laws’, and has three pictures of crazy robots. The other is a robot that is plugged in to a wall outlet, leading to its heart. ^_^




That’s all for now! Keep it real, humans and robots. =)

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Posted in: Art, Other, Programming, Projects, Robot, School.

Hockey MANOI – a summary

Posted by Erin, the RobotGrrl on Saturday, January 3rd, 2009

I made a pretty good summary of Hockey MANOI in this thread at Trossen Robotics forum. I figured I should post it on my blog because it is a good summary :D and I broke it down into easy to read parts, so it’s like a whole JOURNEY of awesome!

Hello TRC World! :D

My project is a hockey playing humanoid.

It uses a MANOI AT01 kit, controlled by an Arduino (with an ATmega328) with a Wave Shield, and a SSC-32.

Humanoids have always been associated with walking or running. This project focuses on a different action for humanoids, skating. The end result of this project yields an interesting vision of the possibilities of skating robots.

Introduction

The idea came around when I was trying to make my humanoid (MANOI AT01) walk. Instead of taking a “big bite”, I decided to take a smaller bite and make it slide its feet. However, I quickly realized that when it slides its feet, it looks exactly like a newbie Canadian hockey player!

A Canadian newbie hockey player begins to skate by almost walking. Although the skater doesn’t go far, he does move forward due to the friction between the blade of the skate and the ice.

When I did notice this, I quickly grabbed some lego to create MANOI’s own version of skates, which are similar to rollerskates. I mounted the lego onto the feet using velcro.

The hockey stick I just found laying around. I had to cut a bit of it off, as it was too tall. I use tape and tie wraps to keep it mounted to MANOI.

Development

Development on this project was mainly trial and error. To get all of the motions correct so they all balance together was critical.

Instead of using the controller board that is usually used to control the MANOI, I did a major transplant and substituted it for the Arduino and SSC-32. This allows me to have much more flexibility in terms of sensing and creating motions. The H2H software was too problematic.

Usually what would happen is I would draw out a motion, on paper, that I would want to create, and I would put it into MANOI. Sometimes I got it first try, other times I didn’t. However, the cool part is that a lot of the motions stemmed from the ideas of other motions.

For instance, in the video of MANOI Skating with music (seen below), the motion where MANOI is running is actually a faster version of the sway motion! That was really surprising.

The development for the Wii nunchuck part of the code was quite easy as I had already established all of the variables and settings of when the nunchuck is tilted left or right, forwards or backwards. Instead of using real numbers for it though, I just defined a “home position” of the nunchuck, and subtracted or added numbers to the accelerometer axis, x y and z.

The music part of the wave shield was quite fun and straight forward. I looked around for the songs, and put them on a SD card which plugs into the wave shield. From there, it was just a simple method call inside of the Arduino.

Once the above developments were done, I wanted to create a version of MANOI that could sense if a ball/puck/object was there. I did this by using LDRs and LEDs.

Rest assured, I would have used IR Sensors if I had any ;) This was the best alternative I had, though!

On the left side of the sticks the LEDs are in a yellow casing, and on the right side they are in a clear casing. There is some effect on the reading, however their values change precisely the same when an object is in front of the stick.

The black construction paper enclosure around the LDRs was required to direct the reading. Otherwise, the light from the LEDs saturated the reading and no difference was seen when an object was present or not.

I observed the change between the readings of when there was an object present, and when there was not an object present.

From this, I created a simple neuron, where if the input values succeed a predefined threshold, it will perform an action. In this case, the action would be to shoot the object.

I had to tweak the threshold a little to make it work with smaller objects, such as a roll of electrical tape.

In the video below, you will observe that it does work with a roll of electrical tape, a ball, and a spool of lead solder (the LEAD solder isn’t mine, it’s my DAD’s because he can’t use non-lead solder like the rest of us -_- ;). The spool is white, which proves that the theory does work, meaning that the light that is reflected from the LEDs back into the same LDR board does not obscure the readings.

Results

Here are the videos that you can look at!

This is the first video, where I was just getting the motions down.

The program is basically a sequence of movements:

- Forward 6 times
- Shoot 3 times
- Backward 6 times
- Shoot 3 times

As you can see, the forward and backward movements both result in MANOI moving backwards. As I later found out, through trial and error, it was due to the Arduino and power cords limiting the movement of MANOI! Once they were mounted properly, it worked much better.

This is the second video, where MANOI is controlled by the Wii nunchuck!

You press Z to shoot, and you hold C and tilt to move it. :D MANOI can move forwards, backwards, left, right, and home.

This is there third video, where MANOI is playing a little game of hockey by himself while listening to some music. The song that you first hear is the Hockey Night in Canada theme song!

This is the last video, where MANOI can autonomously decide if he should shoot or not.

(The quality in that video is quite yucky, please check out the video on [URL="http://vimeo.com/2641041?pg=embed&sec=2641041"]vimeo[/URL] if you’d like to see it in better quality)

Conclusion

In conclusion, this project was SO much fun! The only time I didn’t enjoy it was when I was trying to hold MANOI, who was whacking me with its stick, with one hand and trying to type in some code with my other hand.

My favourite part was watching people play with the Wii version of the code. They really enjoyed it!

I also liked making the AI part too, that was pretty fun.

Next Steps

The next steps would include coding a modified version of the Bayes filter algorithm to predict if an object is in front of the stick or not.

More sensors would be fun, like three proximity sensors mounted on the front, left and right. This way MANOI could avoid opponents trying to take the ball off of it.

I would also add two more servos in the leg that would allow rotation. This would then allow me to create a more realistic skating humanoid, where there would actually be a stride.

Perhaps I could also add a camera to the head so that it could track where the ball/puck/object is.

That’s my project, I hope you like it! ^_^
You can see more of everything I mentioned at robotgrrl.com

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Posted in: MANOI, Programming, Projects, Robot.

Hockey MANOI + Wii Nunchuck

Posted by Erin, the RobotGrrl on Thursday, November 20th, 2008

Today (Thursday) I got my MANOI working with my Wii nunchuck! :)

It was super easy since I already had the configuration ready because of my other robot.

Here are some pictures:

SSC-32 Barely Visible
The SSC-32 is barely visible anymore!

Transformers
The big transformer powers the battery to give it 12-13V (constantly). The small transformer is for the Arduino, cause I couldn’t find a 9V battery :(

Leg
MANOI’s Leg

MANOI
MANOI

MANOI's back
MANOI’s back- the battery and Arduino are attached to tape using velcro :)

The way it works is the Wii nunchuck has an i2dc interface with the Wave Shield, which is on the Arduino. Using the Nunchuck library, you know what button is being pressed and values of the accelerometer.

I already made functions to determine if the nunchuck is tilted home, left/right or up/down. Soooo, I just added the “skating” functions to that, and the condition that the C button has to be pressed. There’s more control this way.

To shoot, it’s just the Z button. :)

The most surprising part of all of this was when I realized that MANOI “skates” better when I added all the stuff to his back. I guess it adjusted the center of gravity just right!

There’s a video here:

I still have some more stuff to do… like add a few more motions and sound.

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Posted in: MANOI, Projects, Robot.

Friday Night Robotics!

Posted by Erin, the RobotGrrl on Saturday, November 15th, 2008

This is my Hockey MANOI work in progress robot. It needs a lot of improvement before I actually take it outside (hopefully there won’t be snow by then). It’s using a plastic stick that I found lying around (check out the pics)

Hockey MANOI Hockey MANOI Hockey MANOI

So far it’s going okay, I guess. Trying to make a robot balance with many moving parts is difficult though, and really exhausting. There’s lots of things that I’ll need to fix… The program is basically a sequence of movements:

- Forward 6 times
- Shoot 3 times
- Backward 6 times
- Shoot 3 times

The Forward and Backward movements do vary slightly, but they both result in the robot going backwards. I’m trying to think of a way to fix it that will be the best way, like attaching a few heavy rocks to the front of the robot won’t be the best way in this case. Once the robot shoots after going Backward, there’s too much movement and it falls over.

I’ll probably have an if statement in the Shoot movement asking what was the last movement. If it was backwards, the shot will be more slow and less intense so it won’t tip over. :)

Stick on Arm

The stick also has to be mounted better… it moves WAY too much =P (those tie wraps serve no purpose)

Despite all of the falling over, it’s fun to be trial’ing and error’ing to see how the robot can balance :D And it’s working off of an Arduino! I plan to add the Wave Shield, with some hockey sounds/songs that MANOI can play — there will also be a FSR on the stick so the robot will know if it should shoot or not ^_^

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Posted in: MANOI, Projects, Robot.

SOFREEZINGCOLD

Posted by Erin, the RobotGrrl on Tuesday, November 11th, 2008

ITS SO FREEZING COLD! I think I’m gonna transform into an ice-cube!! ZGG!

Speaking of cold… You know when you first start to skate, you pretend you’re walking? You hardly go anywhere, but you do go somewhere because of the friction… My robot can now do that! I was playing around with MANOI, gave him some roller-skates (actually: lego wheels), and programmed it in. After a few trials and errors, it works! MANOI now can look like a goofy Canadian newbie skater. SWEET!

I’m trying to find a small hockey stick that I can tape to its hands, but I have a feeling Ill have to make one myself. Carving it will be okay, I’m just worried about how I would make it thin- like half an inch. I’ll probably use one of the sanding power tools to do that (since I don’t want to saw my hand off (or fingers (but then again, they may just fall off because I’m SOFREEZINGCOLD (wow this is a lot of nested brackets (LOL))))).

I hope to play hockey with my ‘bot on Saturday… this will be interesting!

I updated my blarg to Wordpress 2.7 B2, and stylized a new theme! I’m not sure what I should name that lonely RSS elephant over on the right though. Syndie, the syndication elephant? LOL!

Post to Twitter Post to Delicious Post to Digg Post to Facebook Post to Reddit Post to StumbleUpon

Posted in: MANOI, Projects, Robot.