Archive for September, 2011

More interactivity with ramen

http://www.openprocessing.org/visuals/iframe.php?visualID=39297&width=720&height=480&border=true
Press “e” for eggs.
“o” for onions.
Click on the mouse over the bowl to add noodles.

Will add more stuff.

Let’s play with electricity

electricity

This week doesn’t require any mad programming skills and just basic electrical know how.

electricity

With the help of helping hands, this allows me to both hold the points together to get a reading on the multimeter and take a picture at the same time. Of course this one beeps.

So does this one. Notice that I wired the board in such a way that both sides have power and ground.

electricity
electricity

Which of the images above has a complete circuit?

But fun question, does electricity pass through our bodies? Yes, but we still provide enough resistance that the 5V from the Arduino will not shock us nor complete the circuit.

electricity

And just like that with a resistor and all, we have another lit LED.

electricity

Interesting that the LED uses approximately 1.72 V out of 5V.

electricity

The amount of electricity passing through the resistor is approximately 3.31 V. Add that up it’s almost 5V. At least we know where all the power is going.

electricity

electricity

Let’s add a switch and see if it affects the power flow.

electricity

Well apparently all it does is just cut off the power completely.

electricity

Notice that the gree light is not as bright as the red one. Different color LEDs have different power requirements.

electricity

electricity

Notice the difference between the power usage of the green and the red LED and the amount that passes through the resistor.

electricity

Now when we add another LED, they don’t light up as brightly as before.

electricity

The resistor is now only getting 0.14 V.

electricity

But if we re-arrange the LED’s that they’re all being powered by a single line instead of a series of leads. It’s a whole lot brighter.

electricity

The resistor is using up 3.38V. while the LED’s are at 1.65 V.

electricity

What’s wrong here?

Under pressure

Named after that song from Queen, now I have to program the arduino to recognize an analog input. Meaning, it’s not just as simply flipping a switch. This requires and entirely different mindset.

pcomp

Using a knobthingy commonly known as a “potentiometer”, it allows the light to switch on once you turn it past a certain point. Notice that the potentiometer does not use a resistor and is an exception to the rule.

Now I wanted to control the intensity of the LED using a light sensor. So I ended up with this. It still needs a bit of tweaking on the range the sensor recognizes but it more or less captures the desired result.

I’m still working on two LEDs and two pressure sensors.

pcomp

Wind machine

There used to be a cable channel back home that was called the “Aquarium channel” which was basically a camera pointed at a very large aquarium and played classical music the whole day. Sometimes, there would be dead fish floating and other times it was being cleaned or something. Eventually they took it out and replaced it with something more profitable.

I thought it was a great break in the channel programming where people could just stare at the aquarium and just relax but saddened that as with any television entity, you couldn’t really interact with it.

I propose a visual array of bamboo trees with the sound of wind just rustling through and moving each tree individually.

 

Thank you softypapa for the great video.

Instead of using a camera to capture motion to sway the trees, I was thinking of using various microphones strategically positioned around the display to sense where the wind is coming from and move the image accordingly.

Or I can put an array of flex sensors inserted into actual bamboos located in a remote location to and via IP addressing to send the signals back to the display to move the bamboo trees visualization.

device

Animated Ramen

This particular homework was problematic at the coding level at first. Working with Alex, my assigned partner we figured out on how we’d like to animate our projects and went to work.

I went through 3 different revisions of the code posted last week since now I had to add “void setup” and “void draw”. One will setup the set elements into the sequence and the other will animate.

The bowl was problematic at first as it kept saying I was mixing “active” and “static” elements. I then moved the bowl code to be included in the “void setup” command and it worked! Now the problem was how to animate.

At first I could get the “mousePressed” command to work properly. I gave up on that code at first and moved on to another code to use. I ended up without control in the case of my ramen. Everywhere I moved my mouse it just spread the “ramen” code all over the screen.

So in frustration I gave it a rest. Then in one lazy Sunday morning I figured it out! It turns out that I lacked a closed curly bracket

And here’s the final product. Click on the mouse to add the ramen and for the final touch, press the spacebar for the eggs, spring onions and chopsticks. Enjoy!

Ramen!

Dragon Age II: Mark Of The Assassin

Legacy was a great DLC which provided both character development for any scenario selected and was a far cry from previous Dragon Age DLCs which were downright disappointing.

Now they’ve announced Dragon Age II: Mark of the Assasin featuring Felicia Day.

So it’s not the made for the web tv show that Bioware announced earlier in the year which was supposed to come out during the summer but this is good as well.

From what we can deduce from the trailer, it looks like Hawke and a new character “Tallis” journey to Orlais to steal a jewel called “The Heart of the Many”.

The gameplay look like it’s a solo Hawke adventure which means no companions but that could change couldn’t it? The story seems like it would be best with Isabela in the mix since it involves sneaking around and stealing stuff. But that’s just me.

Good thing thing to know that we don’t have to wait that long for this DLC. The game will be available for download on the PC, PS3 and Xbox360 on October 11 for $10 or 800 Microsoft points.