Archive for May, 2013

How to play MP3s in the shower

by on May.26, 2013, under Hardware

If you’re anything like me then you love music! I just can’t go anywhere without something playing some nice tunes in my ears. Whether it’s my home or car stereo, PC, iPad, cell phone, whatever, music follows me everywhere. So obviously, when such a time came that I had to get a new shower cabin I figured, hey, that’s one place I still don’t have music playing.

So I looked around and found a cabin with a built in FM tuner. Of course, there were models which supported playing MP3s straight out of the box but I didn’t feel like throwing money at such a model so I got this one. I should note here that if you’re the type of person who already owns a shower cabin capable of playing MP3s this post may not be for you. But if you’re only able to tune into radio stations this little hint will help you play your custom song selection in the shower in no time.
(continue reading…)

Leave a Comment :, , more...

M&M Sorter using OpenCV and Arduino

by on May.23, 2013, under Code, Hardware, IT

After my first OpenCV project which dealt with object tracking, I decided to do something a little more challenging and complex, but also more fun. I went for M&M sorting. You might have already seen this idea being realized somewhere online, I know I’ve seen a ton of different examples. However, everyone seems to have a different approach to doing it, so I figured I’ll give it a shot myself.

For those of you that want to jump straight into the action or just want to watch the pretty M&Ms fly about, you can go directly to my video showing the program execution:

If you’re interested in some more details on how the sub-parts of the project function, take a look at this video explaining things a bit better:

Finally, for those of you more into reading, and those looking for the specifics let me present the fine details of the project:
(continue reading…)

2 Comments :, , , , , , , more...

Tracking a ball and rotating camera with OpenCV and Arduino

by on May.20, 2013, under Code, Hardware, IT

I recently started playing around with the OpenCV library and one of the first tutorials I did dealt with tracking a ball with the camera. I expanded on that concept a bit by having the camera rotate and continue tracking the ball even if it goes off screen. I did this by connecting the camera to a small servo controlled by an Arduino Uno, which receives commands from my PC via a serial connection.

The base project I used can be found here. I decided not to reinvent the wheel and used that code as a starting point so props to the author. However I did modify the code slightly and also added some more things to make it work for my project. The modification refers to changing the color model from RGB to HSV as I found out that it’s much easier to specify a tracking color by using the Hue value rather then finding a good RGB value. The additions refer to the code for serial connectivity and the Arduino instructions send via the serial connection itself.

You can see how the project ended up looking and working in this short YouTube video I made:

(continue reading…)

68 Comments :, , , , , , more...