Giter VIP home page Giter VIP logo

raspberry-pi-tv-sim's Introduction

Raspberry Pi TV Simulator

Code and hardware for simulate a channel change in a old tube TV.

The Raspberry Pi change a random movie file in the folder 'movies' when the TV is showing a static noise. The static noise is provide by the TV circuit. A Arduino Mini Pro get the voltage on the tunning potentiometer and turn a relay on or off, selecting the TV composite video input or the noise from the TV circuit.

WARNING: Dangerous voltage inside TV set! Be Careful!

  1. Demo Video

demo video

  1. TV set:

The TV set is a 5 inch tube TV with AM/FM radio. The set is powered by a 12V DC external power supply and has composite video and audio input. This input is selected by a switch on the back of the TV set. The TV has a battery compartment in the bottom where I mounted the Raspberry Pi.

The tuning circuit use a potentiometer to variable the voltage to the TV tunner. The radio board use a variable capacitor. The variable capacitor and the potentiometer are mechanically connected to the tunning knob.

  1. Hardware Schematics:

    • Relay Board: Relay board

    • Level Shifter: Level Shifter

    • Regulator module: Regulator module

  2. TV modification:

    • Remove the internal power supply transformer. The set will be powered by a 12V DC external power supply only.
    • Remove the battery contacts for more room for the hardware in the battery compartment.
    • Cut the tracks of the tuning potentiometer, isolated it and connect it to the Arduino board: Potentiometer tracks
    • Isolate the video/TV switch and connect the wires to the relay board: Relay Board
    • Get the 12V from the DC barrel connector.

All the wires are send to the battery compartment.

  1. Software:
    • TVSim.ino = Scketch for Arduino Mini Pro.
    • TVSim.py = Script for Raspberry Pi.

For enable the Raspberry Pi composite video output use the command:

$ sudo raspi-config

Put the Python script in auto start for the Raspberry Pi boot.

  1. Hardware inside the battery compartment: Hardware inside the battery compartment

  2. Known problems and items for future improvements:

    • Sometimes the TV show the mouse cursor or the Linux terminal. (problem)
    • Movies always starts from the beginning. (improvement)
    • Different channels (scifi, horror, cartoons, etc...)(improvement)

raspberry-pi-tv-sim's People

Contributors

pakequis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

raspberry-pi-tv-sim's Issues

Possible improvements

It may be possible to remove both the relay and the Arduino

This describes how to crudely read a POT using PWM, 2 resistors and a capacitor
https://www.circuitbasics.com/using-potentiometers-with-raspberry-pi/

You could remove the relay board and play the "TV static" as a video clip.

Using fork() you may be able to start one clip playing before the previous has finished, that might cure the framebuffer showing issue.
or failing that try adding something like "cp /dev/zero /dev/fb0" to blank the framebuffer.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.