First I would like to give credit to: https://www.instructables.com/id/150-Arduino-TV-Annoyer-Turns-TVs-on-when-you-/
This is his design I have tweaked it a little bit to go a few steps further. It is the infamous device that once you turn off your TV it will unknowingly to the person sitting there turn it back on after a couple of seconds. The original device would turn the TV off, with the changes I made the device will now randomly turn off, turn on, and boost the volume up. I had to rewrite some code from the original and spruce it up. Believe me it is as annoying as ever.
Step 1: The Things We Need
First lets see the parts we will be using:
1x Infrared Detector
1x Wide angle Infrared LED
1x Narrow angle Infrared LED
1x 2N3904 PNP transistor
1x 10 Ohm resistor (Brown, Black, Black, Gold)
1x 47 Ohm resistor (Yellow, Purple, Black, Gold)
1x Arduino Uno
Some wire (preferably solid-core, 22 gauge or so)
1x USB A-B cable
1x Soldering Iron (Optional)
1x Spool of thin solder
1x Solderless breadboard
1x Arduino IDE
Step 2: Lets Put It Together
1.) Plug in IR Detector. Make sure the dome on it is facing you. Top of the 20,19,18
2.) Connect the leftmost pin of the detector to Arduino Digital pin 2, the middle pin to Ground, and the rightmost pin to +3.3V.
3.) Plug in the 2N3904 NPN transistor. Make sure the flat side is facing you. Top of the 9,8,7
4.) Connect the leftmost pin of the transistor to the 47 Ohm resistor, the middle pin through the 10 Ohm resistor to Arduino Digital pin 3 (PWM), and the rightmost pin to Ground.
5.) Connect the cathodes (negative, has a shorter leg, and the side is marked with a flat part to indicate the cathode) to the other end of the 47 Ohm resistor, and the anodes (longer lead, not the cathode) to +3.3V.
Step 3: Hey DJ Drop That Code
Connect your Arduino to the computer using the USB A-B cable, then download the .ZIP file below. In the .ZIP file, there should be a folder called "TV_Annoyer". Copy this folder into your Arduino Sketchbook folder. On a Windows machine this is usually located in "C:\Users\<username>\Documents\Arduino".
Open the sketch in the Arduino IDE (downloaded from the Arduino.cc website), and upload it to the Arduino board.
The code is all written with randomizing annoyance that you can't wait to wreak havoc with.
Step 4: Let the Torture Begin
After you successfully connected everything and uploaded the sketch to the Arduino, Test it out by putting it near your TV, plugging it in to a power source, and click the TV's remote! With mine the signal from the remote to the device got interrupted by a case so what I did was I camouflaged half of the breadboard with electrical tape, since the TV is black it hid it very well.
Well now you can begin to annoy people or like in my case it be used against you.
Here's a video so you can see it in action: