Posts Tagged ‘RGB’

Finishing the RoboGlyphs Project

Posted by Erin, the RobotGrrl on Saturday, June 12th, 2010

Just the fun stuff was left for this project! Here is a photo blog montage of the journey to the finish :D

The first thing to do was to put the black foam backing onto the RoboGlyph. I wasn’t really sure how the glue would look, so I placed a minimal amount on the corners. Next time I do this, I’m going to put glue all over the back since it created a neat effect with the sparkles on the foam. It sort of makes them more sparkly… :)

IMG_7701

Cut the excess foam away with the Xacto knife. Cutting it on a slight inwards angle towards the glyph is much better than a 90 degree cut, I found.

IMG_7703

To mount the RoboGlyphs to their board, I used toothpicks on the back. This is what it looks like from the front:

IMG_7704

Zoomed in:

IMG_7707

The toothpicks fit nicely in the holes of the perf board. I found that if you put glue in the perfboard hole, then put the toothpick in, it will stick better.

IMG_7709

They’re all tilted forward because they don’t have a proper footing yet! =)

IMG_7714

Again, from the back:

IMG_7724

At first I was thinking about using some rubber feet to keep the RoboGlyphs standing, but I didn’t have any on hand. The next best thing: Lego! Plus, there is something else that I can add on to the Lego to make it even more interesting… :)

IMG_7729

The “more interesting” part would be tinfoil! Tinfoil is a conductor, and therefore can have a charge running through it.

IMG_7733

It’s quite a difficult task to manage to put the tinfoil onto the Lego bricks. This try was using hot glue. When another brick is placed on this one, the tinfoil splits.

IMG_7735

I tried using a simple glue stick, and it actually works much better! The tinfoil does not split when another brick is placed on top of it.

IMG_7753

Putting tinfoil inside the brick is much easier. :D

IMG_7776

While the glue is setting for the tinfoil, it’s time to wire up the RoboGlyphs. Thanks to the super simple colour coded wires, the process took a matter of seconds. The Sanguino only has 6 PWM pins, and there are no PWM drivers in my pocket, so the green LEDs will not be controlled by PWM.

IMG_7783

Green is probably the best default colour!

IMG_7787

Red:

IMG_7790

Blue:

IMG_7792

The edge lighting is really cool, even though I didn’t really do it very precisely. You can’t really tell from this photograph, though.

IMG_7803

The Lego 2x4s were glued on to the bottom of the boards. Then they’re placed onto the tinfoil-coated Lego brick. 5V is applied through an alligator clip!

IMG_7808

The other end goes into an Analog In, where the Sanguino checks to see if there’s anything there. If nothing is there… The lights don’t turn on! :D

IMG_7815

There’s a few finishing touches that I have to make. I’d like to connect it to Twitter via Processing, and have it as a permanent setup. I also have to fix the Lego connections, as right now it can only tell if the middle RoboGlyph is disconnected! =)

Posted in: Art, Projects.

Advancing on RoboGlyphs

Posted by Erin, the RobotGrrl on Tuesday, June 8th, 2010

Around June 8th and 10th, more stuff was done on the RoboGlyphs project.

The boards were painted black…

IMG_7666

Which actually looked quite dazzling when dry:

IMG_7671

The wires were soldered in, too. Also, the wires were colour coded too!

IMG_7685

Thus, the final product!

IMG_7675

Posted in: Art, Projects.

Friday Night Robotics – CMUcam2

Posted by Erin, the RobotGrrl on Friday, February 5th, 2010

The CMUcam2 is a really cool camera for robotics made by CMU. The version that we’re using for this Matlab project (that I mentioned before) was actually used in FIRST competitions a long time ago.

CMUcam2

The first problem we faced with this was that it requires 7.2V, in a range of 5.2V – 8.6V. What gives 7.2V?! Crazy! If you take 6 AA rechargeable batteries together, they can add up to be 7.2V exactly. (1.2V * 6 = 7.2V). Battery packs naturally don’t come in sixes, so I ended up making one:

CMUcam2

This was actually my first time making a series battery pack. It’s in series because we want to use Ohm’s law, where the voltage is added together. Thanks to the people in the Fat Man and Circuit Girl IRC chat room, they helped me figure it out. Here’s a drawing that I made incase others too need help with this someday. Basically, connect the positive to negative over and over again! ^_^

Series Batteries

The next step is to get the camera working. This is by far the hardest part. There’s numerous methods of communicating to the CMUcam2, all of which use RS232. Arduinos also use RS232, so at least we’re in known territory.

The CMUcam2 has a serial port, a TX/RX/Gnd line, and a TTL port. On my Mac, I tried the serial port, it didn’t work. I tried the TX/RX/Gnd line into an Arduino, it also didn’t work. I also tried to use the TTL, but it also didn’t work. I’m not really sure why nothing works on my Mac, especially since the camera works with a PC just fine.

This is where I’m at right now. No idea what to do to make the CMUcam2 work on my Mac. Do any of my blog readers have any ideas? :)

WOOT~~~ TWIST ENDING!! READ ON!!!

I was thinking that it would be really lame to end the blog post without some sort of screenshot of Matlab or something. So I gave the CMUcam2 another shot… I made it work!!! IT WORKS!!! IT WORKS ON MY MAC!!!!!! =) :D The code that I was using to test the camera is from Instructables.

Matlab CMUcam2

So, now that it works we have things to do… like figuring out how we can get the RGB data for each pixel, and then saving that to an image. After its in an image, we can do some form of edge detection. Matlab probably has a toolbox for that. :) More fun later!


Google thinks that you might like this:




Posted in: Programming, Projects, School.