Arduino TVout Keyboard




Introduction: Arduino TVout Keyboard

In this tutorial, you will learn how to use a PS2 keyboards and the Arduino TVout library to create a simple word processor. By the end of this tutorial, you will have the same thing show above.

Step 1: Parts

For this Instructable, you will need:


1.) An RCA compatible television.

2.) PS2 keyboard. If you have a USB keyboard, buy a converter. (Buy here)

3.) Arduino Uno

4.) Wire (ribbon cable)

5.) A 1k ohm (Brown, Black, Red) and a 470 ohm (Yellow, Purple, Brown) resistor

6.) If you do not own these resistors, use variable resistors

7.) Breadboard

8.) Breadboard connecters (Wire)

You will also need:

A soldering iron


Perf board


X-acto knife (or any other kind of knife)


TVout beta1
PS2 library

Step 2: Creating Libraries Folder

If you haven't done this already, go to your Arduino folder and create a folder called libraries. If this folder already exists, do not do this. Next, unzip both libraries you just downloaded and put the folders into the libraries folder.

Step 3: Changing TVout Beta

TVout beta has a few problems with it. To fix these problems, go to this link and download the files provided. Take these files and replace the pre-existing ones. This should fix some uploading bugs.

Step 4: Moding the Keyboard

Gather these parts to mod the keyboard cable:

1.) PS2 keyboard

2.) X-acto knife (or other knife)

3.) Wire (ribbon cable)

4.) Perf board

5.) Pliers

6.) Solder

Step 5: Stripping the Cable

First, break the perf board as show. Next, strip the wires and add solder to the tips. Lastly, solder four pins onto the perf board. Make sure they are not touching. Solder the 4 colored wires onto the board.

Step 6: Adding Ribbon Calbe

Create a 2 inch long strip of 4 wires with the ribbon cable. Pull the wires apart as show above. Strip the tips and add solder to each wire. Solder the smaller end to the wires on the perf board.

Step 7: Connect the Keyboard to You Arduino

Connect the colored wires as follows:

Red: 5 volts

White: Ground

Green: Pin 3

Yellow: Pin 8

Step 8: Connect to RCA

Connect to the Arduino as follows:

Pin 7: 470 ohm resistor

Pin 9: 1k ohm resistor

Connect to RCA as follows:

Connect both resistors to the signal line on the RCA cable

Connect the ground line to ground on the RCA cable

Step 9: Upload Code

Upload the attached code to your Arduino. Make sure your Arduino is connected to the computer while uploading. While running the code, you an use either USB or the DC jack to power your project/

Step 10: Boot Up and Run!

Feel free to leave in the comments what you did with this project. It is a little buggy, so feel free to fix it. Hope you enjoyed it!

Be the First to Share


    • Make it Glow Contest

      Make it Glow Contest
    • Game Design: Student Design Challenge

      Game Design: Student Design Challenge
    • Cold Challenge

      Cold Challenge



    7 years ago on Introduction

    This works out pretty well, but I'm having trouble. When I type, it writes the wrong letters on the screen about 50% of the time. When I use the ps2 library and just send the saved character over the serial and don't use the TV out library, it works just fine. Did you have an issue similar to this?


    Reply 7 years ago on Introduction

    I had a similar issue. Disable any serial communications and it should work fine.


    Reply 7 years ago on Introduction

    That was using the code you provided. As far as I can tell, the problem starts with the "char c =" command. The character isn't being correctly saved. (Even when I make the char volatile.) If I don't use the TVout library, it works fine.


    Reply 7 years ago on Introduction

    Hmmmm, I don't know. Perhaps you should check the arduino forums?


    Reply 7 years ago on Introduction

    Are you using a arduino uno?