- Notifications
You must be signed in to change notification settings - Fork0
CSync Video Signal detector for Arduino Pro Micro
License
KabukiFlux/CSync-Video-Signal-Detector-for-Arduino
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Connecting a video signal to a CRT monitor in an arcademachine can cause problems if the sync is on a range thatthe monitor is not prepared to display correctly, if thechassis is not prepared to display multiple resolutionsor avoid displaying out of range resolutions can cause theblow of the HOT or worst, so one way to avoid this isto detect the Horizontal Line Width and disable the videosignal if it's out of sync.
This script was used for testing purposes during a liveevent on:Twitchhttps://www.twitch.tv/kabukiflux
This is a simple test script that you can use and adaptto detect CSync video formats on an Arduino Pro Microyou're encouraged to improve it as you wish but in noway this is something to become a production or a finalproduct, this is made for makers only.
The script detects the line width on a Horizontal Syncsignal or on a CSync signal, on the CSync signal thevertical sync is included and it can reach to problemsif we detect the line width on the anomaly zone (the edgecases with the vertical sync signal). To avoid this issuewe use a sampling of 20 measures and only the most commonmeasure is taken into account.
The script is able to identify:
15khz signals (480i and 240p)
24khz signals (384p)
31khz signals (480p)
Out of range signals ( > 480p)
Sample of the serial output:
- as you can see on the output is included the line widthin uS as well for reference.
You need to install the Arduino Ide and the Sparkfun ProMicro boards on the Arduino IDE.
This script will send debug messages over the USB SerialPort if enabled at a baudrate of 9600
1- Configure the arduino board and USB port on the IDE.
2- Insert a CSync video signal on the corresponding pin onthe Arduino Pro Micro (see the code).
3- Upload the code to the Arduino.
4- Set the serial port monitor to 9600 baud.
See MIT Licensing
About
CSync Video Signal detector for Arduino Pro Micro
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.