Giter Club home page Giter Club logo

vbit-py's Introduction

vbit-py

This project is used to generate teletext suitable for decoding in a TV. This project is the hardware driver part and it requires a teletext stream. T42 Teletext streams can be generated by vbit2. This project relies on the vbit inserter hardware and a raspberry pi. See the Wiki page for details on how to install vbit-py.

Teletext stream to vbit hardware, in python

This performs a similar task to raspi-teletext but drives the vbit hardware rather than a Raspberry Pi.

It runs on the latest version of Raspberry Pi. You may need to install the latest Python3 updates if you are using an older system.

Initial tests

i2c bus and video chips

Check that the i2c bus and chips are responding correctly

pi@raspberrypi:~ $ i2cdetect 1
WARNING! This program can confuse your I2C bus, cause data loss and worse!
I will probe file /dev/i2c-1.
I will probe address range 0x03-0x77.
Continue? [Y/n] y
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:          -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- 25 -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- 44 -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --

You should get a response from 25 and 44 if the vbit chips are working. If not you should look in the Raspbarry Pi config that i2c is enabled.

video path

This test configures the video chips. Put PAL video in vbit on the left hand connector. Run PAL video from the right hand output to a TV monitor. Run the shell script vbit-i2c.sh. The picture should be passed through the video chain and appear on the monitor.

spiram

This test checks that the spiram is working. This test does not need video running. The resulting array should be the same as the one that was written to the spiram. If errors or randomness happens try reducing the spi bus speed as mentioned in the source code.

pi@raspberrypi:~/vbit-py $ python spi.py
[65, 66, 67, 68, 77, 77, 77, 77, 77, 77, 77, 55, 77, 77, 77]
clean up

Control Scripts

I've included some scripts to control some of the IC's other features.

WSS

The SAA7121 is capable of Wide Screen Signalling. This allows TVs to automatically switch between aspect ratios. Run ./wss help for full details.

Brightness and Contrast

Running ./luminance allows interactive control over the input video signal's brightness and contrast. Note that the script doesn't save the new values as default, so you'll need to change the appropriate values in saa7113.py if you want to save the changes.

Hue and Saturation

Run ./chrominance to adjust the Hue and Saturation. As above, doesn't save the new values but is very useful for adjusting settings quickly.

vbit-py's People

Contributors

peterkvt80 avatar avrovulcanxh607 avatar deveon95 avatar

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.