IMG_20111017_162540.jpg
This Instructable is for those who would like to use your Arduino to output to a TV. Granted the Arduino is only powerful enough to produce a black and white picture it can still be fun to play with and useful for some projects.
 
Remove these adsRemove these ads by Signing Up

Step 1: Item list

IMG_20111017_151602.jpg
Things you will need:
Hardware
- Arduino
- A TV
- A Protoboard or PCB
- 2 Resistors
1x 470 ohm ( Yellow, Violet, Brown )
1x 1k ohm ( Brown, Black, Red )
- 2x 2-Pin headers ( Only 3 are used but the 4th helps with stability )
- Spare RCA cord you don't mind cutting up
Software
- Arduino Software ( http://arduino.cc/en/Main/Software )
- The TVout library ( http://code.google.com/p/arduino-tvout/ )
montrealtiger123 says: May 25, 2013. 7:50 AM
Hi,
I have just downloaded the TVout library and installed it sucessfully. However, when I try to upload the sketch to my Arduino Mega 2560, it gives me this message:

C:\Program Files\Arduino\Arduino ERW 1.0.4\libraries\TVout\TVout.cpp:733: error: '_SYNC_PORT' was not declared in this scope

But whenever I change my board selection to the Arduino Uno or Mega 1280, it can compile the sketch...

Please help me :(
benlabs says: May 25, 2013. 6:25 AM
How did you get it on a monitor?
ffinster says: Feb 7, 2013. 1:24 PM
Here I share how to use the updated Beta 1.0 version of the TVOut Library from time frame December 2010. http://code.google.com/p/arduino-tvout/
With the Arduino-1.0.3 JAVA ide http://arduino.cc/en/Main/Software
Java7 downloaded from  www.java.com

I added some images that you can see my sketch, and then paste the whole sketch file TVOut_Beta1_Test at the end. To make a presentation post simple, one leaves out missing steps. Conversely adding all the steps and the assumptions makes this post long. I do hope I covered everything, but do comment and add corrections please.

I downloaded the file TVOutBeta1.zip, unzipped it, and then added/moved 3 directories pollserial, TVOut, TVOutFonts to the Arduino LIbraries directory "~/arduino-1.0.3/libraries", where from Arduino IDE I could just issue "Sketch --> Import Library" command to load the "#include TVout.h"  & "#include FontALL.h" headers to my current sketch. Or you could just add these 3 libraries to "~sketchbook/libraries" directory. like in the YouTube video Arduino TVout Library Setup http://www.youtube.com/watch?v=LMu7EASMfUY

The Tilde character '~' is a short hand for "users home directory" in linux/unix. In Windows it might be like $HOME in a batch file?? I use Puppy Linux version Lucid Puppy 5.2.8 from http://puppylinux.org as my base operating system for the Arduino Java IDE version 1.0.3   I believe newer version Precise Puppy 5.4.3 would work also.

Search the puppylinux forums for Arduino with the URL http://www.wellminded.com/puppy/pupsearch.html http://puppylinux.org/wikka/Arduino
http://murga-linux.com/puppy/viewtopic.php?t=83862


<pre>
// February 7, 2013
// This code works with file TVoutBeta1.zip dated December 2010 from http://code.google.com/p/arduino-tvout/ 
// and instructions here http://playground.arduino.cc/Main/TVout
// I tested with OSEPP UNO R3 Plus board http://osepp.com/products/arduino-compatible-boards/uno-r3-plus/  I purchased at Fry's Electronics
// Sync on Pin 9, Video on Pin 7, Ground Black Wire to ground post.  Audio out on Pin 11.
// Code from here http://code.google.com/p/arduino-tvout/
//  I used http://PuppyLinux.org for my Operating system Version 5.2.8 Lucid Puppy.  Newer Precise Puppy should work too.
//  I downloaded and installed Java 7 from http://www.java.com
//  specifically the non-RPM version here  http://www.java.com/en/download/manual.jsp?locale=en#lin
//  Then I installed the Arduino Software from here http://arduino.cc/en/Main/Software  Version 1.0.3  a newer version  is 1.5.x for the new Duo Arduino board.

//  http://www.youtube.com/watch?v=LMu7EASMfUY  TVout Library setup with Arduino Sketch software.
// Added TV.tone software call but no hardware to test.  http://www.youtube.com/watch?v=ntzrp868cKY
// Arduino pin 11 drives a resistor divider (1k top, 470 bottom) that feeds a 0.1uF decoupling capacitor (removes DC component of signal) into the audio output jack.
// More info and source code here: http://www.wayneandlayne.com/projects...
//   http://www.wayneandlayne.com/projects/video-game-shield/ 
//   http://www.wayneandlayne.com/files/vgs/downloads/video_game_shield-schematic-v1.15.svg  see for Audio out Pin 11 schematic


#include <TVout.h>
#include <video_gen.h>
#include <fontALL.h>

TVout TV;

// Pin 13 has an LED connected on most Arduino boards.
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:

void setup()  {
  TV.begin(_NTSC);
  TV.select_font(font6x8);
    // initialize the digital pin as an output for blinking the LED.
  pinMode(led, OUTPUT);
}

// the loop routine runs over and over again forever:
void loop ()
{
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)

  TV.clear_screen ();
  TV.print( 30, 40, "TVout FTW!!!" );  //TVout software for the World!
  TV.delay (60);
  TV.tone(480,500);         // Play a 480 tone for half second
  delay(500);               // wait for a half second
  TV.print (30, 60, "Wait one Second" );
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  TV.tone(440,500);         // Play a 480 tone for half second
  delay(500);
  TV.draw_rect(20,20,105,56,WHITE); //draw a white rectangle
  delay(1500);               // wait for two seconds
}

</pre>

I thought that this was a very inexpensive project to test out Arduino IDE with a OSEPP UNO R3 Plus   PuppyLinux is Free, too..
2 resistors 470 and 1000 ohm, 3 jumper wires, and one composite video cable.
Radio Shack 470 ohm 271-1115  1000 Ohm 271-1118
I tested with out cutting the composite video cable by touching the center pin to the junction end of the 1K and 470 ohm resistor and the outer shield to the black ground wire from the Arduino.  This gave me a crisp display on the composite video input to the TV/Monitor.   I tried with out success a 12 foot long zip cord (2 wire molded next to each other) audio cable.  Then tested a 75 ohm coax composite cable.  Success!!  Display showed right up.   High frequency, megahertz range, video needs coax,  while  20 -20000 hertz audio works with zip cord.
Fred Finster  WB7ODY
mayfair2005 says: Nov 21, 2012. 3:47 PM
Here is my take on it, bit higher resolution pictures if it helps anyone. I used jumper wires secured with hot glue instead of header pins since im using a mega and didn't want to make a shield for 3 pins covering half the board.
IMG_20121121_191117.jpgIMG_20121121_191132.jpgIMG_20121121_191052.jpgIMG_20121121_192313.jpg
JuggaloMemnoch (author) in reply to mayfair2005Nov 21, 2012. 7:12 PM
Looks really good :).. Thanks for the better pics, The camera on my phone doesn't like to stay focused :(
Computothought says: Aug 7, 2012. 7:00 PM
Docs say to use 9 and 7,, but you seen to be using 9 and 8. Could you clarify please:


NG,Decimila,UNO 9 7
globo says: Oct 19, 2011. 8:25 AM
The photo is a little blurry. I've re-build it using Fritzing.
Can someone check please if that is correct?

http://dl.dropbox.com/u/1133977/Arduino/TV-Out/TV-Out_Steckplatine.png
TV-Out_Steckplatine.png
JuggaloMemnoch (author) in reply to globoOct 19, 2011. 11:05 AM
Sorry about the blurrines... Is the yellow wire the ground in your picture?
redd.the.cat in reply to JuggaloMemnochMar 7, 2012. 4:33 PM
it looks like it, altho it should have the colors switched it doesnt really matter what the colors are as long as u got them in the right place ^w^
jonnyradu says: Nov 21, 2011. 6:50 AM
I had the same problem with the compiler , with errors in the library files , the problem for me was theat I play`d around with my Hackduino with atmega8 and when I swicht the 0022 to my Duemilanueve board with the atmega328 it compiled fine , so i gues it dose not like atmega8 :)
redd.the.cat in reply to jonnyraduMar 7, 2012. 4:30 PM
on the tv-out page it says it only works with, atmega 168, 328, 1280, 2560, but no it doesnt work on a dated chip such as the atmega8, i cant wait to try iti just dont have the resistors
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!!!
JuggaloMemnoch (author) in reply to techno guyJan 22, 2012. 10:17 PM
Hey... Sorry you're havin problems.. Could you be a little more specific as far as what's goin on? What's it saying is unrecognized?
techno guy in reply to JuggaloMemnochJan 23, 2012. 5:47 PM
usually it says "TVout TV is not a name", now it says "render_setup was not declared in this scope", but by seeing the bottom after trying to verify it, I can tell that after that is fixed, I will have more problems to fix.
jonnyradu says: Nov 21, 2011. 6:51 AM
Just tested it works with atmega168 boards too
coder512 says: Nov 9, 2011. 10:45 PM
is it possible to render an image ??
coder512 says: Nov 9, 2011. 10:30 PM
rename the file to dot pde extension and try
Dominion-Network says: Oct 26, 2011. 3:13 AM
I do have a question, how did you solder the Video RCA wire to the protoboard?
buteman says: Oct 21, 2011. 9:24 AM
The file, when you download it as named as a .tmp file.
When I downloaded it it came out as FNRFNXNGTQVP4MU.tmp
Just rename it as something like tvout.pde
In fact anynameyoulikereally.pde will work

It
is the .pde part which you need

and the arduino ide will recognise it and compile it.
francisroan says: Oct 20, 2011. 9:17 AM
one good news the download was ok i just needed to change the format but the code does not compile i listed a few problems



down!!!!!!!!!!!!!!
francisroan says: Oct 20, 2011. 3:30 AM
its a pretty long error and i cant type all that and cant cpy either but it says smethin abt

cores, udr undeclared .....

this eroor is repeated and with some other errors!!
francisroan says: Oct 18, 2011. 3:25 AM
hey i tried using the code in the pic and it doesnt seemed to work i dont know why /?? i used ide 18,21,22 and none of them seemed to work and the downloading file that comes in .tmp format help?????
Dominion-Network in reply to francisroanOct 18, 2011. 6:36 AM
Could you give us more information, giving details such as any error messages, compiler errors etc would be a great help.
jman 31 in reply to francisroanOct 18, 2011. 5:44 AM
You might try renaming the file with the proper format. If I remember right, that has worked for me before on here.
JuggaloMemnoch (author) in reply to francisroanOct 18, 2011. 4:16 AM
I used the 0022 version of the IDE.. What comes up when you try to complie/upload the sketch?

And I'm sorry this is my first Instructable and I'm not sure why it would come up as a .tmp file... I'll look into it
Computothought says: Oct 17, 2011. 9:26 PM
This interests me. I still have a couple of old B&W portable battery operated TV's that this project would go great with.
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!