AV:Time Sleuth

The Time Sleuth is a device that measures display lag. It does this by sending an HDMI signal that flashes white bars on your display while you hold the sensor up to the display to allow it to calculate the amount of time it takes from when the signal is sent to when the signal is detected. It was created by Chriz2600 and citrus3000psi.

The Time Sleuth is open source and can be built by hand or can be purchased from VideoGamePerfection.

Basic Use
To use the Time Sleuth:


 * 1) Connect an HDMI cable between it and your TV.
 * 2) Connect a USB cable to a USB port (such as one on your TV) for power.
 * 3) Set the desired resolution via the selector knob and hold the Time Sleuth up to your TV.
 * 4) Hold the Time Sleuth's sensor up to the white bars that are generated and it will display exactly how much time it takes from when the signal is sent, to when the Time Sleuth's sensor detects it on the screen.

Resolutions
The Time Sleuth lag testing device can be programmed with up to five different resolutions. There are 17 to choose from, including 50 and 60Hz modes. To assign these resolutions to each slot on the Time Sleuth:


 * 1) Navigate to the main website and create your configuration: https://time-sleuth.i74.de/ Time-Sleuth-Resolutions.jpg
 * 2) After you've chosen a resolution for each position, hit "Generate Firmware" and wait for the file to be created. Please be patient, as this can take up to a few minutes.
 * 3) Once it's done, click on the zip file link to download it to your computer.
 * 4) Lastly, extract the file inside that zip, which will be labeled "lagtester.pof" - This is the file containing the firmware and setup.

Flashing the Firmware
The only downside of the Time Sleuth is you need to use a "USB Blaster]" and special software to flash firmware, you can't just plug it into your computer. Luckily, the programmers are really cheap, the software is free and the instructions below (click on all pics for full-sized) should give you all the info you need to flash your own.


 * 1) Download and install the software. Here's direct links to the programmer only. With these, there's no need to install the whole Quartus Prime suite or to register:
 * 2) * Windows 64bit
 * 3) * Windows 32bit
 * 4) * Linux 64bit
 * 5) Install the Quartus Prime software. This might take a really long time, as it's downloading more components during the installation.
 * 6) Connect your USB Blaster.
 * 7) If in Windows, check Device Manager to make sure the USB Blaster was detected as an "Altera USB Blaster". If so, you can skip to the next step. If not:
 * 8) Double click on whatever the USB Blaster shows up as — or "Unknown Device" if nothing automatically installed. USBBlasterDeviceManager1.jpg
 * 9) Click on "Update Driver", then "Browse my computer for driver software". Search for drivers wherever you installed the Intel software. The default location is usually either `C:\intelFPGA_lite` or `C:\intelFPGA`. Also, ensure you have "Include Subfolders" checked.
 * 10) Click "Next" and the USB Blaster drivers should properly install and the Device Manager should read "Altera USB Blaster", as shown above.
 * 11) Once you've confirmed the USB Blaster is showing up properly in the Device Manager, unplug the USB cable.
 * 12) Connect the USB Blaster to the Time Sleuth, using the JTAG cable the USB Blaster should have shipped with.
 * 13) Turn the Time Sleuth's knob all the way to the left, to position 1.
 * 14) Connect USB power to the Time Sleuth first, then the USB Blaser.
 * 15) * Note: If the Time Sleuth is in any position other than #1 when USB power is connected to both devices, it will error out! No harm will be done, just unplug everything, turn the knob all the way left and start over.
 * 16) Launch the "Programmer (Quartus Prime 17.1)" software, which should be under Start > Programs > IntelFPGA. Then click on "Hardware Setup" and make sure the USB-Blaster is listed. If not, try using a different USB cable. If that fails, reboot your PC in case it was pending driver installation. If the programmer isn't detected, you won't be able to proceed.
 * 17) Click "Add File" and choose the .pof file you created with all the different resolutions installed.
 * 18) Select all three checkboxes under Program/Configure, Verify and Blank Check. Then click Start to begin the flashing process. QuartusProgrammerPreparePof.jpg
 * 19) If all went well, you should see 100% in the upper right corner and no error messages in the bottom status window.  If you had any issues at all, go back and check all the driver and installation steps above and, most importantly, make sure the knob was all the way left in position #1. QuartusProgrammerSucessful.jpg

Troubleshooting
If you are having issues getting it to work, tape a piece of blank paper between the Time Sleuth and the display so that it tones down the brightness of the light received.

Media
https://www.youtube.com/watch?v=rWDV_veuSdU

https://www.youtube.com/watch?v=7VOsOuQ5mhM