Posts Tagged ‘Processing’
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
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!
Problem after Problem after Problem
Wow, hahahaha I meant to post this yesterday! I wrote it all up… then forgot! Haaa woow
It really feels like I’ve been working on this software to control MANOI for ages now. On Friday I thought that I was really close to finishing off- that it would be so simple to send a variable from Processing to the Arduino.
Evidently, that assumption is DEAD WRONG! I have to send it through Serial. This raises many problems, like the possibility that the data might be fed to the SSC as well.
I’m now powering the SSC-32 by the Arduino. It’s plugged in to the Gnd and pin 6, so I can tell it to turn on or off. PLUS, I have a latching switch on the 5V, just in case.
So it almost feels like I can safely say that I’m really close to finishing off. I’m playing around with code that only sends data to Arduino when it knows it will receive it. Of course, when I try to send data to the SSC-32 it messes the whole process.
The moon last night (2 nights ago) was really bright… it looked pretty through my telescope
This Harvest Moon is one of my favourites because you can see Tycho Crater.

