This project allows you to build you own CCTV switchbox, that you can use to connect up to 6 cameras to a single screen.
The camera signal (CVBS over CInch or any other) is switched to the output using SPDT or even SPST relays.How it works ?
– by default the controller will cycle through all 6 channels at a speed which is adjustable by a potentiometer. This controls the time which each of the cameras’ image is displayed.
– if you press the “F2” button, the display will change to “static” mode and the last shown channel will remain active
– in Static mode, the F1 button will cycle through the 6 channels, displaying each of the corresponding images on screen until you press F1 again
– going back to Dynamic mode (sweep) is done by pressing F2 again
– if you want to control this from a DCC central, the addresses 950…956 are in use
950 = SWEEP mode
951..956 = camera 1..6
Cameras 1..3 can be mounted on Servo controlled pan/sweep arms and the position of those servos is controlled by the 2nd potentiometer. Changing the position of the servos only works in Static mode.
The camera signal (CVBS over CInch or any other) is switched to the output using SPDT or even SPST relays.How it works ?
– by default the controller will cycle through all 6 channels at a speed which is adjustable by a potentiometer. This controls the time which each of the cameras’ image is displayed.
– if you press the “F2” button, the display will change to “static” mode and the last shown channel will remain active
– in Static mode, the F1 button will cycle through the 6 channels, displaying each of the corresponding images on screen until you press F1 again
– going back to Dynamic mode (sweep) is done by pressing F2 again
– if you want to control this from a DCC central, the addresses 950…956 are in use
950 = SWEEP mode
951..956 = camera 1..6
Cameras 1..3 can be mounted on Servo controlled pan/sweep arms and the position of those servos is controlled by the 2nd potentiometer. Changing the position of the servos only works in Static mode.
The schematic diagram
Physical build pictures.
Arduino Code and TinyCad design file.
Notes :
*** the DSN file is the electronic schematic for the project as drawn in TinyCad
*** the first INO file is the Arduino code (use the Arduino SDK ) that will init the EEPROM data before first use. You can ignore this if you want, but the EEPROM will not be properly initialized and the program may not work correctly the first full loop but afterwards it will work fine en remember the last active channel in EEPROM even if you switch off the power for a longer period of time.
*** the second INO file is the actual control program.
*** the DSN file is the electronic schematic for the project as drawn in TinyCad
*** the first INO file is the Arduino code (use the Arduino SDK ) that will init the EEPROM data before first use. You can ignore this if you want, but the EEPROM will not be properly initialized and the program may not work correctly the first full loop but afterwards it will work fine en remember the last active channel in EEPROM even if you switch off the power for a longer period of time.
*** the second INO file is the actual control program.
cctv_camera_switch_dcc.dsn |
initeeprom_cctv.ino |
dcc_cctv_control.ino |
The project in action (movie link).
Video 1 : the essentials… startup and sweep mode :
https://www.youtube.com/watch?v=urqqzoVGGIs&feature=youtu.be
Video 2 : the result on screen
* under construction *