Hi! Big announcement today! I succesfully used Raspberry Pi to control my electro-shock device. π
You need:
- electro shock device, with pads, cages, probes, plugs or anything else you need π
- 433 MHz transmitter. Other transmitters may work.
- Raspberry Pi computer (any). Clones that have WiringPi library may work.
- SD card with Raspbian (or your favourite OS)
- (optional, in case it doesn't work) RTL-SDR stick and software
How to:
1) Connect everything, yourself included, but use your foot for the first time! π Connect transmitter to GND, 3.3V and pin 11 (WiringPi GPIO 0).
2) Install WiringPi library. See OS documentation.
3) Make a directory and put the attached file in it. Remove .txt extension. It's a C program.
4) Compile it.
5) Test it.
where <code> can be one of these:
6) Create your dream/nightmare script and use this program to send commands to your electro-shock device.
Disclaimer! I'm NOT responsible for your injury or death!
- This program has bugs! I'm sure of it. It's my first program written in C.
- I didn't test it properly!
- This program only sends commands ONCE. The original remote sends the code twice for each press of the button.
- If the scheduler interrupts its execution (because Raspbian is not a real-time OS; user mode programs are preemptible), the transmitted code will be malformed and won't be received. The margin for error is less than 0.01 miliseconds!
- Other transmitters in 433MHz band (all vehicle keys, all alarms, most toys, etc.) will interfere and cause the receiver to miss the code. At 3.3V the range of the transmitter is very short and power is weak. Even a distant remote transmitter may interfere with this one.
E-stim warnings:
- Don't place the pads on your chest. Your heart may stop!
- Don't place the pads on both arms. The current will pass from one arm to the other through your chest/heart!
- Don't place them on your head or neck! You may suddenly lose consciousness or become paralysed and you won't be able to remove the pads or stop the device!
I'm NOT responsible for your injury or death!
You need:
- electro shock device, with pads, cages, probes, plugs or anything else you need π
- 433 MHz transmitter. Other transmitters may work.
- Raspberry Pi computer (any). Clones that have WiringPi library may work.
- SD card with Raspbian (or your favourite OS)
- (optional, in case it doesn't work) RTL-SDR stick and software
How to:
1) Connect everything, yourself included, but use your foot for the first time! π Connect transmitter to GND, 3.3V and pin 11 (WiringPi GPIO 0).
2) Install WiringPi library. See OS documentation.
3) Make a directory and put the attached file in it. Remove .txt extension. It's a C program.
4) Compile it.
Code:
gcc -Wall 433estim-v1.c -lwiringPi
5) Test it.
Code:
sudo ./433estim-v1 <code>
where <code> can be one of these:
Code:
Auto: 1011011111011011010101011
Minus: 1011011110101101101010111
Plus: 1011011011010110110110111
Numb: 1011011011101101101101011
Mode: 1011011101010110110101111
Off: 1011011010110110110111011
6) Create your dream/nightmare script and use this program to send commands to your electro-shock device.
Disclaimer! I'm NOT responsible for your injury or death!
- This program has bugs! I'm sure of it. It's my first program written in C.
- I didn't test it properly!
- This program only sends commands ONCE. The original remote sends the code twice for each press of the button.
- If the scheduler interrupts its execution (because Raspbian is not a real-time OS; user mode programs are preemptible), the transmitted code will be malformed and won't be received. The margin for error is less than 0.01 miliseconds!
- Other transmitters in 433MHz band (all vehicle keys, all alarms, most toys, etc.) will interfere and cause the receiver to miss the code. At 3.3V the range of the transmitter is very short and power is weak. Even a distant remote transmitter may interfere with this one.
E-stim warnings:
- Don't place the pads on your chest. Your heart may stop!
- Don't place the pads on both arms. The current will pass from one arm to the other through your chest/heart!
- Don't place them on your head or neck! You may suddenly lose consciousness or become paralysed and you won't be able to remove the pads or stop the device!
I'm NOT responsible for your injury or death!
(This post was last modified: 30 Oct 2019, 20:53 by Like Ra.)