DIR Return Create A Forum - Home
---------------------------------------------------------
Arti-X Forums
HTML https://artixsoft.createaforum.com
---------------------------------------------------------
*****************************************************
DIR Return to: Arduino Tutorials
*****************************************************
#Post#: 33--------------------------------------------------
[TUTORIAL]How to get a display on your TV with Arduino[TUTORIAL]
DIR By: Artix
Date: December 10, 2014, 4:25 pm
---------------------------------------------------------
Hello! Scott here, and in this tutorial, you will learn how to
take an old yellow video cable, 2 resistors, and some wire, and
hook your Arduino to your TV via those parts, and display text,
and shapes. Lets get started!
Examples:
[IMG]
HTML http://i60.tinypic.com/r8fdso.jpg[/img]
[IMG]
HTML http://i62.tinypic.com/j66ck2.jpg[/img]
What you will need:
TVout library - DOWNLOAD:
HTML https://code.google.com/p/arduino-tvout/downloads/detail?name=TVout.zip&can=2&q=
HTML https://code.google.com/p/arduino-tvout/downloads/detail?name=TVout.zip&can=2&q=
Arduino
USB Cable
1x Yellow Video Cable
3x Wires
1x 1k ohm resistor
1x 470 ohm resistor
Breadboard (optional)
Perfboard (optional)
[IMG]
HTML http://i59.tinypic.com/a1sff8.jpg[/img]
Lets get started!
So first, grab your yellow video cable, and strip it with some
wire cutters. Two wires should appear. one of them is GND, and
the other one will be connected to the 2 resistors. So grab a
breadboard, and set it up like so:
[IMG]
HTML http://i58.tinypic.com/2gspu03.jpg[/img]
I already prototyped it, and i put it on a perfboard. Mine looks
like this:
[IMG]
HTML http://i62.tinypic.com/qnqtyg.jpg[/img]
Anyway... After that is done, you need to import the TVout
library provided above. If you don't know how to import a
library, you can use this guide:
HTML http://arduino.cc/en/Guide/Libraries
HTML http://arduino.cc/en/Guide/Libraries
Once the library is imported, hook your arduino up, and upload
this code to it using the arduino IDE:
--- Code ---
#include <TVout.h>
TVout TV;
char x, y;
void setup()
{
TV.start_render();
}
void loop()
{
TV.clear_screen();
TV.print_str(10,10,"This is");
TV.print_str(10,20,"a test for");
TV.print_str(10,30,"the Arti-X");
TV.print_str(10,40,"TVout tutorial.");
delay(1000);
}
--- End Code ---
Now hook it up to your TV, and you should see this:
[IMG]
HTML http://i60.tinypic.com/71td86.jpg[/img]
Thanks for reading! I hope this was easy to follow.
For more information about the TVout possibilities, visit:
HTML https://code.google.com/p/arduino-tvout/
HTML https://code.google.com/p/arduino-tvout/
*****************************************************
Page 1 of 1