ad9695518a5c067ca0570823a167eb095d152023
[mirrors/Programs.git] / arduino / IR_Jammer.pde
1 /*
2 * Arduino IR-Jammer
3 * <~~Harvie 2oo8
4 *
5 * You can look for couple of old TV remote controlls
6 * to extract some IR LEDs...
7 *
8 * Each TV should have LED of specific "color"
9 * (even you can't see it). So its better to connect
10 * more LEDs with different light frequency (color).
11 * Specialy if jammer is working only from small distance.
12 *
13 */
14
15 #define ledpin 13
16 //Maybe you will have to experiment also with this value
17 int bitlen = 5;
18 int d, i;
19
20 void setup() {
21 pinMode(ledpin, OUTPUT);
22 }
23
24 void loop() {
25 for(d=1000/100;d<=1000/20;d++) { // 1000/frequency in kHz
26 //You maybe have to experiment with ^^^ this ^^^ values
27 //Frequency sweeping: 100->20 kHz works, i saw 60->1 too
28 for(i=0;i<bitlen;i++) {
29 digitalWrite(ledpin, HIGH); delayMicroseconds(d/2);
30 digitalWrite(ledpin, LOW ); delayMicroseconds(d/2);
31 }
32 delayMicroseconds(d*bitlen);
33 }
34 }
35
This page took 0.303577 seconds and 3 git commands to generate.