Export to GitHub

nlm - VideoSwitch.wiki


videoswitch

Video Switch

The module can be used with a switch video sources.
Making the switch is easy and cheap.
Switching cameras, done by select switch from the transmitter.

The sample application.

http://i.imgur.com/tE3umtR.jpg' />

Sample source code

If you are based on the source code contained in the trunk, replace the following:


// CONN 4, Wejście sygnału S4
// dodatkowe złącze We/Wy
byte input_Signal4 = 10; // PIN 2

// CONN 5, Wejście sygnału S5
// dodatkowe złącze We/Wy
byte input_Signal5 = 9; // PIN 3

with code


byte output_Signal4 = 10; // PIN 2
byte output_Signal5 = 9; // PIN 3

In function setup() add the following code


pinMode(output_Signal4, OUTPUT);
pinMode(output_Signal5, OUTPUT);
digitalWrite(output_Signal4, LOW);
digitalWrite(output_Signal5, LOW);

In function loop() add the following code

  duration = pulseIn(input_Signal3, HIGH);
if (duration < 1601) {
digitalWrite(output_Signal5, LOW);
digitalWrite(output_Signal4, HIGH);
} else if (duration >1600){
digitalWrite(output_Signal4, LOW);
digitalWrite(output_Signal5, HIGH);
}

Remember, the connector CONN-4 and CONN-5, do not have GND. You need to use a different connector cable to connect the GND, or solder the cable directly.

Scheme of the video switch.
http://i.imgur.com/ld0X5pP.png' /> http://i.imgur.com/jLL8uoz.png' />

Required parts:
1x ILD206 or similar
2x 1k resistor
1x pcb
5x 2x1 connector