The Matrix effect with Arduino and TV

 by alikazi
matrix_1.gif

Remember the movie The Matrix? Of course, who can forget that one!
Remember the code-falling-down-the-screen effect from the movie? Very unique! 
Are you interested in creating a similar effect with an Arduino and a TV?
Follow me.

What you will need:

 1 Arduino (You need ATMega328 for this project. ATMega168 will run out of memory!)
 1 TV (Any standard TV works as long as it has an RCA input . Current market LCD TVs might not work.)
1 RCA Cable
1 breadboard (Half-size works)
1 1K Ohm Resistor
1 330 Ohm Resistor (470 Ohm also works)
1 Potentiometer (To control the speed of the falling code. More info in step 2.)

 I've made this instructable keeping in mind readers who are absolute rookies. You can also refer to it if you just want to learn to connect a TV to an arduino. Also, please excuse my crappy camera. I will be uploading better pictures soon.

 Before we begin, here's a preview of the final product. Compare the project video with a clip from the movie itself. 


 


Now, let's put this together.

 
Remove these adsRemove these ads by Signing Up
techno guy says: Jan 22, 2012. 9:52 PM
I can't get it to work, there is always some problem. First it was unrecognized stuff and then error compiling, and now more unrecognized stuff. HELP!!!
alikazi (author) in reply to techno guyJan 23, 2012. 9:41 PM
You might be missing the required TVout library. In step 5 I describe where to download it from and which one to download. The picture in step 5 shows how to verify the library was installed correctly. If you still have problems, uninstall and reinstall Arduino software and the TVout library. Even better if you can clean your registry with a safe registry cleaner to erase driver conflicts.
Greyfox95 says: Dec 27, 2011. 12:24 PM
looks like a computer vomited code on a tv, but dang that looks good man!
Inducktion says: Dec 16, 2010. 4:36 PM
It doesn't look like it reaches down all the way o_o
psycho_3852 in reply to InducktionSep 3, 2011. 10:15 PM
i agree but would there be a way to have the letters erased from the bottom of the screen so it looks like a endless stream
alikazi (author) in reply to psycho_3852Sep 4, 2011. 2:31 PM
Its been a while since I wrote the program for this project so I don't recall exactly how, but I do remember thinking it is easy to make the code go all the way down. I just looked at the program to refresh my memory and one thing I can suggest is to modify the two for loops such that they wont iterate until y[a] > 96 (104 being the max vertical value of the screen).

In the current program, the two for loops iterate too often which is why the code doesn't get a chance to go all the way down, all the time. Modify them to wait until a line being printed reaches its max vertical value (i.e. y[a] exceeds 96) and it should work. I'd appreciate feedback on this suggestion if you try it out.
medwards2 says: Aug 28, 2011. 2:28 PM
Tried to figure out how to wire everything to get my Arduino to work with Tvout, but couldn't get it to work until I found this instructable with pictures of the wiring. Finally got it to work and then ran your matrix code. Looks good, if not a bit retro, which is even cooler.
Tom McGuire says: Dec 20, 2010. 2:33 PM
Hey I was just trying to do this TV out thing and I'm having trouble getting any kind of signal out of my arduino. I'm using a Diecimila with a ATmega168. Did you use a 168 or did yours have an ATmega328 or something else? One of the examples from the TVout library gave me an out of memory error so I'm thinking that's it.
Tom
alikazi (author) in reply to Tom McGuireDec 22, 2010. 12:33 AM
Hey Tom,

You spotted out an important detail I've forgotten to list here. You're right, I used a ATmega328 for this project, ATmega168 does not have enough memory for TVout. I will update my instructable. Thanks for the comment!
Pro

Get More Out of Instructables

Already have an Account?

close

PDF Downloads
As a Pro member, you will gain access to download any Instructable in the PDF format. You also have the ability to customize your PDF download.

Upgrade to Pro today!