Posts Tagged ‘Processing’
Grabbing MANOI’s Accelerometer and Gyro Data

Last FNR I embedded MANOI’s Accelerometer and Gyro into its back. Usually what people do first when they add these motion sensors is make their robot self balancing.
For now, I’m going to see if I can do something a little cooler.
The idea stems from a Fast-Fourier Transform result for sound- where you can see the various volumes and such. (Check out my Processing Fancy FFT). What I’m aiming to create is a FFT for motion. Basically, if you move MANOI around, the algorithm will be able to detect a pattern and do stuff afterwards. Essentially what this is leading up to is an interesting dancing robot. =)
I’m starting off with a Processing program that will visualize and log the data (see above screenshot). I envision a split-view display with two cubes. One will be showing the live sensor input, the other will be showing the results of the pattern algorithm to the live data.
No idea yet how the algorithm will turn out. I’m probably going to start at a very basic level, and perhaps add complexities on later. It will be interesting to see how this will turn out!
Soon to be blogged…
- The FNR that I mentioned, but didn’t blog about
- RampageRobot!!!
- RoboGlyphs
Friday Night Robotics – MLK Day Preparations
Warning: This FNR does not contain any robots at all, but it’s still REALLY amazing!
A while ago I put my name on a list that wanted to help out with MLK day, 2010. I originally thought I would be doing a website, not really thinking about the intractability portion. When the Fall 2009 semester began, the group of us met, and ideas were tossed around. MLK Day in 2010 had to be different.
We came up with the idea of having a Twitter aspect of the performance. People would be able to tweet from laptops and then see it displayed on the screen! We are going to be using 5 laptops throughout the dinner, each with a different theme:
- Inspiration
- Dedication
- Culture
- Leadership
- Performance
When a person goes to send a tweet, this is what the webpage looks like:

It’s very user-friendly in the way that… once a person reads the theme and the question, they’ll understand to type in the box and press the button. I designed it to be simple, hopefully people will think it is simple too.
Being projected onto the display will be the Processing application that I’ve spent the better part of 4 months coding! :O It displays three twitter accounts at a time, and they are refreshed every 10 seconds and cycled upwards. The background changes very slowly over time as well, it’s almost not noticeable. Here is a screenshot:

The best part about this is… it will be open source… in about 1 month. I just need to take some time to document it before I release it to the wild. Since it wasn’t a project for grades, I didn’t comment it (I find comments get in the way), so I will have to do that. Hopefully people will pick it up and improve it, since there’s some parts in the code that it’s obvious that I had no idea what I was doing.
So that is the MLK Twitter portion of the dinner. I’m really amazed how well this is all going to work together, it will be a very special moment for sure. I had the privilege of seeing the performance being rehearsed, it is extraordinary! If it is going to be recorded, I will be sure to post a video.
I hope everyone has a wonderful MLK day! =)
Friday Night Robotics – Light
For better or worse, I made a program for BubbleBoy that reacts to a light being turned on.

The program evaluates the light the same way MANOI’s hockey stick did. Once it goes over a particular threshold, it will begin to spin its hat and start saying “HELLO!HELLO!HELLO!”.

At first, I wanted to make BB react to sound, so I dismantled a “haut-parleur” that I got a while ago, thinking that it was a piezo speaker. It’s actually not a piezo, because when I was looking at the analog readings on the Arduino, nothing happened if I fiddled with it. Weird!
When it says on the LCD that I’m at “cheel”, it is hardcoded in. I tried to use the script that downloads a feed, but it doesn’t work for me, for some reason. I commented below that post with my setup and questions. =)

Aah I can’t wait until my Femsapien arrives from the EPFL! It is super boring without a humanoid to work on.
I’m not exactly sure what the moral of this FNR is supposed to be… annoy me and face ‘teh ultimate’ BubbleBoy?! Hahahaha
I’ll add the video later in another post, Vimeo has a wait time of 130 minutes – and YouTube … well who knows about YouTube. o.O
I’m going to be working on an AI Library for Processing with a few people here at the COSI (hopefully). Expect many more posts about that! Woohuu! =)
That’s all for now. *turns lamp off*

Gumball
I added a new Processing thing I made… called Gumball.
It’s not that cool, but great to play with for like 20 seconds. =P
Particles in Processing
I finally finished off the “Define Dancing” Processing artwork that I started a long time ago!
The reason why I didn’t finish it back then was because the colours were messed up. I figured them out, and while playing with the colours, I created another program called Particle Finger Painting :d
Here’s the Define Dancing one…
You can move your mouse around, and one particles will stay with it. All of the other particles are attracted to it, but some are stronger than the others. Plus, there’s forces between all of the particles too – some of them are negative, which results in “fireworks”-like collisions
Here’s the Particle Finger Painting one-
I really like this one… it’s the same as the Define Dancing one, but the layering and transperency of the ellipses are different.
They both use the traer physics library for the particles. =)
Try the live ones out- they’re probably laggy since it’s in a browser. In that case, you should download Processing and try them out. It’s a good IDE to have anyway!

