Archive for August 2007

First Test of Arduino with Max7219 LED Driver and LTP2657 LED Matrix

I’ve been doing some more Arduino hacking, this time with my newly-arrived MAX7219 LED Driver circuit. Here’s what I have right now:

The circuit is very simple – The MAX7219 connects to Arduino on pin 2, 3 and 4, and I use the sample code in the Arduino wiki (http://www.arduino.cc/playground/LEDMatrix/Max7219). The LED Driver is connected to a little 7×5 segment display I picked up at HCS (A surplus electronic store in Sunnyvale) labelled the LTP2657AA. I had to reverse engineer the pins to figure out what goes where, but manage to connect up the digits to the ground (cathodes) of the LEDs in the segment, and the segments to the positive (anodes) terminals. With one transistor (10K) to keep the voltage levels okay and following the MAXIM data sheet I managed to get it all up and running.

For future reference, here’s the pin layout of the LTP2657AA, if the notches is at the bottom, bevels at the top, and held horizontally:

rows are anodes, cols are cathodes

LEFT

1 – green row 1
2 – red row 1
3 – green col a
4 – red col a
5 – green row 2
6 – red row 2
7 – green row 3
8 – red row 3
9 – green col c
10 – red col c
11 – green col d
12 – red col d
13 – green col b
14 – red col b

RIGHT

1 – red col f
2 – green col f
3 – red col d
4 – green col d
5 – red col e
6 – green col e
7 – red row 3
8 – green row 3
9 – red row 4
10 – green row 4
11 – red col g
12 – green col g
13 – red row 5
14 – green row 5

Its quite a nice little matrix, duo color (although it only displays one at a time), and for $2 i cant complain!

so, now its all about building a sweet project.

Strange Music videos, and Youtube – now with Inline Ads!

It looks like the folks over at Google has been keeping busy with Youtube lately. They have a new player, quite a major redesign of their original, now on their website. The color change is a bit startling – the red bar now indicates playing instead of downloading (gray bar) which is just confusing.

But the big stunner is the ads they put over video. Everyone is trying to get some revenue from the tons of videos being watched online (something like a 30% click-though rate in video search results) and superimposed ads, like what Youtube is doing, is a step towards the classic Television-like banner ads. We’ll have to see whether this is the “big answer” for video advertising. Personally, I find it distracting and annoying, especially since Youtube content is generally so short. Luckily they included a little “close” button to get rid of it.

Then, to (hopefully!) demonstrate this ads appearance, here’s a crazy little Red Hot Chili Peppers video I found. I’m sorting my RHCP collection (I have just about every song ever published by them) and in the process I figure i’d poke around for some less well known RHCP music videos. Have fun with this one:

Kill -9 rap

if you haven’t seen this yet… it’s worth it.

“Raw footage of a performance that “CS rapper” Monzy gave last summer outside Stanford University’s Computer Science building. This footage was shot for the documentary, NERDCORE FOR LIFE.

Nerdcoreforlife.com”

Avenue Q – The Internet is for Porn

I watched Avenue Q yesterday night in the Orpheum Theatre in SF, and it was great! Excellent play, fantastic cast, all around wonderful. They kept the audience spellbound for 2 and a half hours, and no-one wanted it to end.

I didn’t realize how big of a phenomenon their “The Internet is for Porn” song became, but after witnessing it first hand, i can’t help but post some youtube videos!

The Opening Act:

The Original “The Internet is for Porn”:

Avenue Q meets Fiddler on the Roof:

And of course, the Presidential Debates, as done by the Avenue Q cast:

Let’s connect many many LEDs to Arduino

Seeing is believing, right? So it’s not that surprising to see that many people have gone to great lengths to hook up tons and tons of LEDs to various hardware projects. Youtube has some cool videos, which will have to keep my happy until I recieve my shipment of MAX7129 chips. More on that later ^_^

The First Arduino Project: TinyVU

So! I just hacked my first arduino project – a tiny VU meter. there’s not much more to say so here’s a video!

First Experiences with Arduino (and setup instructions!)

I just recieved my Arduino NG rev C board in the mail, woohoo! With glee I ripped off the post office packaging to start playing around. The kit I received from the workshop at Yahoo that focused on Physical Design. Very cool of Yahoo to support even its interns in such diverse interests as Physical Computing.

My glee soon wore off with the incredibly painful setup procedure. My hopes were that you take it out of the box, plug it in, (maybe install some drivers) and off you go. That is why i got the USB version. Unfortunately its not quite this easy. Arduino follows a fairly long road from IDE to Microprocessor, which is not uncommon, but painful none-the-less. Microcontrollers are harder to work with than what would be nice for the average hobbyist, and Arduino does a darn good job to make it easy, but its not perfect. Arduino uses Cygwin to compile the C programs you write into MIPS hex for the microprocessor. To upload the program, the Java IDE calls out to cygwin to connect to a pseudo COM port, that wraps the USB connection to Arduino. (You need the supplied drivers for this). This wrapper talks to the USB to Serial chip on Arduino itself, which talks to the bootloader on the MIPS processor to save your program into EEPROM. Since there is a lot of moving parts, it doesn’t always work…

To keep it short, this is what I needed to do to get Arduino working:

1) Download the Arduino zip from www.arduino.cc and extract

2) Replace the cygwin1.dll in the home folder of Arduino with the newest Cygwin dll from cygwin.org

3) Download the newest drivers for the virtual COM port from http://www.ftdichip.com/Drivers/VCP.htm

4) Plug Arduino In. Install the above drivers you downloaded to talk with Arduino.

5) Set the COM port driver to a COM port lower that 10 (this is important! Windows gives the weirdest errors if you try a COM port higher than 10) and a BAUD rate of 115200. You can do this by using Device Manager. Look under Ports -> USB Serial Port

6) Open the arduino program you originally downloaded.

7) Set the COM port to the port you made the USB driver use. (I used 2, since it was the only one free)

8) Follow the instructions _VERY CAREFULLY_ on the Arduino Guide page.

Hopefully this gets you going! The setup took a while to figure out, and it could be simplified, as well as better instructions on the Arduino website, but it was easier than using a PIC programmer!

Once I got it up and running, I immediately built a little night rider viz with the 10 LEDs I received in the kit. I’ll put up a couple of pictures soon. The reference guid is clear and easy to understand, and the given examples are clear and informative.

For a good workshop-based into to Arduino, check out http://jennylc.com/teaching/yahoo/

This is the workshop that was given at Yahoo.

Arduino definitely looks like a great little platform to play with and get some physical computing going on. Even for circuits-oriented people, this is a nice way to get easy interactivity with computers, or more intelligence than you want to put into your analog circuits. I want to build the world’s biggest VU meter to put up against my ceiling to visualize when I play music. Something along the lines of the Urban Carpet. I’ll post pictures!

How Propaganda Works

“The conscious and intelligent manipulation of the organized habits and opinions of the masses is an important element in democratic society. Those who manipulate this unseen mechanism of society constitute an invisible government which is the true ruling power of our country…”

This is an acticle worth reading, and i’m mirroring it here from http://home.att.net/~bob.wallace/howpropagandaworks.html

How Propaganda Works
by Bob Wallace

“Once you base your whole life striving on a desperate lie,
and try to implement that lie,
you instrument your own undoing.”

- Ernest Becker, The Denial of Death.

It’s not hard to understand how propaganda works. You don’t need a college degree, or to even to read any of those thick textbooks everybody hates. Everything relevant can be explained in one not-particularly-long article. And, I guarantee you, you must understand how propaganda targets you, to immunize yourself against the attempts.

Propaganda works by appealing to our most base, animalistic instincts. It does not appeal to our better nature, although one of the purposes of it is to convince us it does. It pretends to appeal to our reason, when in fact it appeals to our most primitive emotions. There is good reason for this: perception travels through the emotional brain first, to the rational brain last.

Specifically, propaganda works by appealing to three things: emotionalism, tribalism and narcissism.

I just mentioned perception travels first to the emotional brain, then the rational brain. This happens to everyone, including people who con themselves they are the most rational and intelligent of intellectuals.

As for tribes, we share with every nearly every animal in the world the instinct to form tribes, arranged in a hierachy, with a leader. We are group animals. The fact we look to a leader to take care of us is one of the most firmly established principles in psychology (if you don’t remember anything else, remember that).

When anyone transgresses the taboos of a tribe, they can, and often are, ostracised or even expelled. An example? Say some people oppose a war. What happens? They are often called cowards and told to leave the country. Who hasn’t heard the insult, “You’re a coward! If you don’t like it here, get out!” People who say such things think they’re being patriotic; in reality they’re acting like animals. Emotional, irrational, herd animals, prone to the fear and flight activated by propaganda. Individuals think; groups do not, and cannot.

Narcissism is our inborn tendency to see everything as grandiose or devalued, good or bad, with nothing in-between. It’s why nearly every tribe in the world — and nations are just tribes writ large — called itself “the People,” “the Humans,” “the Chosen,” “the Motherland,” “the Fatherland,” or “the greatest nation on earth,” relegating everyone outside the tribe to a devalued non-people, non-human status (aka “collaterial damage”). No wonder it’s so easy to kill the outsiders — they’re just not quite human.

When you combine those three concepts, you have the basis for all propaganda. If a leader of a tribe tells the people their goodness is under attack by insane, evil people who want to destroy them, they will react just like animals and attack. The Nazi propagandist Herman Goering noticed all you had to do to get people to march off to war is for the leaders to tell them they were under attack, denounce protestors as traitors exposing the tribe to danger, and the people would slander, ostracize and expell the protestors, and then tramp straight off to be slaughtered. He said this technique worked in every country of the world.

The Bush administration used exactly this technique to start two wars. Essentially they told the public that our goodness was under attack by insane and evil people who wanted to destroy us. See how it works? Tribalism, emotionalism, and narcissism.

Supporter of the war responded by attacking protestors as traitors — trying to expell them from the tribe — and marching off to war. It’s altogether too simple, and too easy.

One man everyone should know is Edward L. Bernays, the American disciple and nephew of Sigmund Freud. He was for all practical purposes the founder of modern propaganda techniques.

Bernays despised most people and regarded them as his inferiors, especially because of intellectual or social claims. (See how it works? I just appealed to your emotions, and convinced you Bernays was attacking you. You fell for it, right?)

Bernays not only pretty much founded modern propaganda techniques, but was also the father of modern PR. Although, you could say they are same thing, and that there’s really no difference between them.

In his 1928 book, Propaganda, Bernays wrote, “The conscious and intelligent manipulation of the organized habits and opinions of the masses is an important element in democratic society. Those who manipulate this unseen mechanism of society constitute an invisible government which is the true ruling power of our country…”

Remember that quote. Burn it into your memory. Bernays thought people should be ruled by an extremely small elite, who should manipulate them through propaganda. That means you. People who believe in the wonders of government, and that it is their friend, should think twice about it.

In another book, In Crystallizing Public Opinion, Bernays wrote how governments and advertisers can “regiment the mind like the military regiments the body.” This can be imposed, he said, because of “the natural inherent flexibility of individual human nature,” and suggested the “average citizen is the world’s most efficient censor. His own mind is the greatest barrier between him and the facts. His own ‘logic-proof compartments,’ his own absolutism are the obstacles which prevent him from seeing in terms of experience and thought rather than in terms of group reaction.”

Bernays also thought “physical loneliness is a real terror to the gregarious animal, and that association with the herd causes a feeling of security. In man this fear of loneliness creates a desire for identification with the herd in matters of opinion.”

Bernays claimed that “the group mind does not think in the strict sense of the word…In making up its mind, its first impulse is usually to follow the example of a trusted leader. This is one of the most firmly established principles in mass psychology.” What Bernays called the “regimentation of the mind” is accomplished by taking advantage of the human tendency to self-deception [logic-proof compartments], gregariousness [the herd instinct], individualism [exalting their vanity] and the seductive power of a strong leader.

Bernays also expressed the opinion people “have to take sides…[they] must step out of the audience onto the stage and wrestle as the hero for the victory of good over evil.” This also means appealing to our narcissism, our inborn tendency to see everything as either good or bad, with little or nothing in-between.

He also noted the need for people to feel as if they belong to something larger than themselves. Again, this also means appealing to our narcissism, such as people claiming they belong to “the greatest nation on earth.”

When people consider themselves as part of the Humans (by whatever name they call themselves), they exalt themselves. Still again, those outside the tribe are non-people, “collateral damage.”

“Mental habits create stereotypes just as physical habits create certain definite reflex actionism,” Bernays wrote. “…these stereotypes or clichés are not necessarily truthful pictures of what they are supposed to portray.” Perception is everything, the truth matters little or not at all.

Now, let’s boil all this down and see what we have:

Mass Man, the herd, cannot think, and is instead ruled by its feelings. The herd will look to a leader to save it. The best way to accomplish this is for the herd to feel it is under attack. The herd will draw together, expell those who see the truth and protest, and then march off to war.

The full quote from Hermann Goering? “Voice or no voice, the people can always be brought to the bidding of the leaders. That is easy. All you have to do is tell them they are being attacked, and denounce the pacifists for lack of patriotism and exposing the country to danger. It works the same in any country.”

Tell the herd they are the Humans, or the People, or best of all, have God on their side. Paint their enemies as insane and evil. Again, this is appealing to people’s narcissism, the tendency to see everything as either good (us) or evil (them). Evoke paranoia and hysteria in them by convincing them the insane evil ones want to conquer and destroy them. What will happen? You can get them to march off to war by the millions, just as Goering noticed. The truth doesn’t matter, only the manipulation of perception.

To make it as simple as possible, everything that is needed for a successful propaganda campaign can be summed up in those three aforementioned words: emotionalism, tribalism and narcissism.

We con ourselves we are so advanced. In reality, the human race is stuck in One Million Years BC, except there’s no Raquel Welch in a two-piece fur bikini.

I forgot — there is one another component to sucessful propaganda: keep repeating the message over and over.

What Barry Says: The American War Machine

This is worth watching:

Electric Daisy Carnival – In retrospect

The summer is almost over and in the process of ordering books and supplies, i started browsing around for some Electric Daisy Carnival clips. EDC was awesome, with great music and great people. So here’s some clips I found. If you couldn’t make it – see you there next year! 25 000 plus *beautiful* people…

Colette from the Deep House stage – where I spent most of my time. Colette sings live, which is totally uncommon and siiiick.

Opening (“Didn’t mean to turn you on”)

“About Us”

Kaskade of course rocked the party (he did Gleb…)

The quality sucks but check the nice visuals on those screens!

There’s tons more but I can spend only so much time looking through crappy Youtube videos before I am obliged to get some better quality and more satisfying stuff… Let me go put on some vinyl