Arduino infa-red jammer?

does any one have the code for a arduino based IR jammer
i can also just use a .hex file to go straight on the atmega 168 or 328p 

sort by: active | newest | oldest
funkhangs3 years ago
I'm a little late to the party, but with this code you only need an arduino uno and an IR LED to get you started.

// IR Jammer by Dugan Karnazes
// 7/21/2013
// Uses timer 1 peripheral on Atmel 328P. 8 bit timers could be used
// for this application, but timer 1 is used to allow people unfamiliar with
// the timer peripherals to modify OCR1A and access a broader frequency range.
// The table below shows which frequency is generated for each value of OCR1A.
// The jamming signal is generated on PB1 (Arduino uno pin 9). If attaching an IR LED directly to
// the chip, a resistor is not needed due the the 50% duty cycle of the signal. This will not
// burn out your LED or chip. The jammer worked from a few feet away from my TV and stereo using
// this method. The range can be increased by using a high power IR led and transistor.
// The jammer works by creating modulated IR light in the frequency
// band that most IR recievers work in. Because all recievers are not on exactly the same
// frequency, this program sweeps through the common range spending 1 ms on
// each of the frequencies listed below. With some experimentation, you can find the
// value of OCR1A that works best for your device and only generate that frequency.
// frequency = 1/(2*OCR1A*(1/clock)
// clock is 16000000 for arduino boards
// ORC1A     Frequency (hz)
// 205      39024
// 206      38835
// 207      38647
// 208      38462
// 209      38278
// 210      38095
// 211      37915
// 212      37736
// 213      37559
// 214      37383
// 215      37209
// 216      37037
// 217      36866
// 218      36697
// 219      36530
// 220      36364

#include <avr/io.h>
#include <avr/interrupt.h>
#include <Serial.h>

int main()
  // make PB1 (Arduino pin 9) an output pin
  DDRB |= _BV(1);
  // Allow Timer 1 to control PB1 (toggle on compare)
  TCCR1A = (1 << COM1A0);
  //clear register
  TCCR1B = 0;
  //use 1:1 prescaler and set CTC mode
  TCCR1B |= (1 << WGM12)|(1 << CS10);
  //reset timer
  TCNT1 = 0;
  //initialize OCR1A
  OCR1A = 220;
  //modulate IR LED at each frequency for 1 ms.
  while (1)
    for (int i = 220; i >205; i--)
      OCR1A = i;
You could use a 555 timer...that's what I did.

However, you will need to try different types of IR LEDs. I took one from a TV remote and it worked but one from a store did not. Good Luck.
lemonie6 years ago

Like frollard says: you need to know how the IR deice works before you can jam it.
How much experience do you have with code?
See these:
http://zedomax.com/blog/2010/07/12/ir-hack-how-to-make-a-diy-infrared-ir-jammer/ (for TV, unpleasant page layout)
http://tronixstuff.wordpress.com/2010/09/04/kit-review-alan-parekhs-infra-red-jammer/ (same thing, nicer page)

bigbodysmallbrain (author)  lemonie6 years ago
i saw those but i don't like pic microcontolers and i have 5 atmega 168 chips and 32 atmega 328p chips and programer
i also have 6 arduinos and dont want to spend any more money

I didn't mean to buy them, but to look at how they are built / work.

bigbodysmallbrain (author)  lemonie6 years ago
yes i have looked at them and wanted to buy them but i don't want to spend the money so i would just like the code for an avr chip i have tousends of ir leds and just want one before thanksgiving when i have to got to my extened family's house
Write your own code, based on the ideas in those examples?
orksecurity6 years ago
Note that a jammer will work by putting out a noise signal. Occasionally, that noise will be picked up as an IR command, and will cause unintended effects.

Why not just cover the IR sensor when you don't want others mucking with it?
frollard6 years ago
Different IR protocols run with different modulations - you just need to listen for a flash and flash at some iterative multiple of that frequency brighter than the original with random data.