Code Monkey home page Code Monkey logo

vidsource's Introduction

vidsource banner

BATC Composite Video Source for Raspberry Pi Zero

This software build for a Raspberry Pi Zero enables it to become a very simple Composite Video (PAL) test card generator or camera (with a Pi Camera). Only 2 external controls are required. A pushbutton between pins 18 and 20 to select the desired testcard and, if a camera is fitted, a switch between pins 16 and 14 to select the camera. The design was described in CQ-TV 270.

The current installation method only needs a Windows PC connected to the same (internet-connected) network as a Raspberry Pi 1 2 or 3. Do not connect a keyboard or HDMI display directly to your Raspberry Pi. You could connect a composite video display, but it is not required at this stage.

  • First download the 2021-05-07 release of Raspios Buster Lite on to your Windows PC from here https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-05-28/2021-05-07-raspios-buster-armhf-lite.zip

  • Unzip the image and then transfer it to a Micro-SD Card using Win32diskimager https://sourceforge.net/projects/win32diskimager/

  • Before you remove the card from your Windows PC, look at the card with windows explorer; the volume should be labeled "boot". Create a new empty file called ssh in the top-level (root) directory by right-clicking, selecting New, Text Document, and then change the name to ssh (not ssh.txt). You should get a window warning about changing the filename extension. Click OK. If you do not get this warning, you have created a file called ssh.txt and you need to rename it ssh. IMPORTANT NOTE: by default, Windows (all versions) hides the .txt extension on the ssh file. To change this, in Windows Explorer, select File, Options, click the View tab, and then untick "Hide extensions for known file types". Then click OK.

  • Power up the RPi with the new card inserted, and a network connection. Do not connect a keyboard or HDMI display to the Raspberry Pi.

  • Find the IP address of your Raspberry Pi using an IP Scanner (such as Advanced IP Scanner http://filehippo.com/download_advanced_ip_scanner/ for Windows, or Fing on an iPhone) to get the RPi's IP address. You may be able to read it on the composite video display.

  • From your windows PC use Putty (http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html) to log in to the IP address that you noted earlier. You will get a Security warning the first time you try; this is normal.

  • Log in (user: pi, password: raspberry) then cut and paste the following code in, one line at a time:

wget https://raw.githubusercontent.com/BritishAmateurTelevisionClub/vidsource/main/install.sh
chmod +x install.sh
./install.sh

The build will request that you enter your callsign and locator, and then finish off in about 15 minutes with no more user input required, so go and make a cup of coffee wait for it to reboot. When the build is finished the Pi will reboot and show the first testcard on the compositie video output. You can then shutdown and put the built card into a Raspberry Pi Zero.

An alternative installation method is to download the complete release image (see the "Releases" section above right), unzip it and write it to an SD Card.

  • If your ISP is Virgin Media and you receive an error after entering the wget line: 'GnuTLS: A TLS fatal alert has been received.', it may be that your ISP is blocking access to GitHub. If (only if) you get this error with Virgin Media, paste the following command in, and press return.
sudo sed -i 's/^#name_servers.*/name_servers=8.8.8.8/' /etc/resolvconf.conf

Then reboot, and try again. The command asks your RPi to use Google's DNS, not your ISP's DNS.

  • If your ISP is BT, you will need to make sure that "BT Web Protect" is disabled so that you are able to download the software.

Advanced notes

To load the development version, cut and paste in the following lines:

wget https://raw.githubusercontent.com/davecrump/vidsource/main/install.sh
chmod +x install.sh
./install.sh -d

To load a version from your own GitHub repo (github.com/your_account/vidsource), cut, paste and amend the following lines:

wget https://raw.githubusercontent.com/your_account/vidsource/main/install.sh
chmod +x install.sh
./install.sh -u your_account

vidsource's People

Contributors

davecrump avatar

Stargazers

 avatar  avatar

Watchers

 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.