CCTV camera controller

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 schematic diagram

 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.

cctv_camera_switch_dcc.dsn

Download File

initeeprom_cctv.ino

Download File

dcc_cctv_control.ino

Download File

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 *


About The Author

Ibrar Ayyub

I am an experienced technical writer holding a Master's degree in computer science from BZU Multan, Pakistan University. With a background spanning various industries, particularly in home automation and engineering, I have honed my skills in crafting clear and concise content. Proficient in leveraging infographics and diagrams, I strive to simplify complex concepts for readers. My strength lies in thorough research and presenting information in a structured and logical format.

Follow Us:
LinkedinTwitter

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top