Go to file
Kuba 7a93625781
Update README.md
2023-11-11 19:41:47 +01:00
Not_working_with_v2 add stuff 2023-09-02 15:16:45 +02:00
csdr@69bfc62890 add stuff 2023-09-02 15:16:45 +02:00
doc chripy 2023-10-30 19:32:36 +01:00
src ugh 2023-11-07 13:33:05 +00:00
.gitignore Add .gitignore file 2023-09-04 15:05:34 +02:00
84308.mp3 im a fool 2023-09-24 21:02:56 +02:00
BBC.jpg add stuff 2023-09-02 15:16:45 +02:00
LICENCE add stuff 2023-09-02 15:16:45 +02:00
README.md Update README.md 2023-11-11 19:41:47 +01:00
audio change 2023-11-02 19:05:08 +01:00
easytest.sh add stuff 2023-09-02 15:16:45 +02:00
fifohost.py change 2023-11-02 19:05:08 +01:00
fm2ssb.sh add stuff 2023-09-02 15:16:45 +02:00
foxhunt okay 2023-09-24 10:20:08 +02:00
ft8menu.sh add stuff 2023-09-02 15:16:45 +02:00
install.sh add stuff 2023-09-02 15:16:45 +02:00
picture.U okay 2023-09-24 10:20:08 +02:00
picture.V okay 2023-09-24 10:20:08 +02:00
picture.Y okay 2023-09-24 10:20:08 +02:00
picture.rgb add stuff 2023-09-02 15:16:45 +02:00
rtlmenu.sh add stuff 2023-09-02 15:16:45 +02:00
sampleaudio.wav add stuff 2023-09-02 15:16:45 +02:00
silent_1-second.wav ability to set power while transmitting and fix af 2023-09-20 20:53:51 +02:00
snap2spectrum.sh add stuff 2023-09-02 15:16:45 +02:00
snapsstv.sh add stuff 2023-09-02 15:16:45 +02:00
song.wav add test song (test it practlically), add -ta -tp 2023-09-24 21:02:22 +02:00
stereo_44100.wav add a test file and some stuff to pifmrds 2023-09-05 17:50:12 +02:00
sv1afnfilter.sh add stuff 2023-09-02 15:16:45 +02:00
testam.sh add stuff 2023-09-02 15:16:45 +02:00
testchirp.sh add stuff 2023-09-02 15:16:45 +02:00
testfmrds.sh add stuff 2023-09-02 15:16:45 +02:00
testfoxhunt.sh add stuff 2023-09-02 15:16:45 +02:00
testfreedv.sh add stuff 2023-09-02 15:16:45 +02:00
testfsq.sh add stuff 2023-09-02 15:16:45 +02:00
testnfm.sh add stuff 2023-09-02 15:16:45 +02:00
testopera.sh add stuff 2023-09-02 15:16:45 +02:00
testpocsag.sh add stuff 2023-09-02 15:16:45 +02:00
testrtty.sh add stuff 2023-09-02 15:16:45 +02:00
testspectrum.sh add stuff 2023-09-02 15:16:45 +02:00
testssb.sh add stuff 2023-09-02 15:16:45 +02:00
testsstv.sh add stuff 2023-09-02 15:16:45 +02:00
testvfo.sh add stuff 2023-09-02 15:16:45 +02:00
transponder.sh add stuff 2023-09-02 15:16:45 +02:00

README.md

rpitx banner

About rpitx2

rpitx2 is a general radio frequency transmitter for Raspberry Pi which doesn't require any other hardware unless filter to avoid intererence. It can handle frequencies from 5 KHz up to 1500 MHz.

Rpitx2 is a software made for educational on RF system. It has not been tested for compliance with regulations governing transmission of radio signals. You are responsible for using your Raspberry Pi legally.

RPITX2 IS BASED ON RPITX

A forum is available : https://groups.io/g/rpitx

_Created by Evariste Courjaud F5OEO. See Licence for using it.

Installation

Assuming a Raspbian Lite installation (stretch) : https://www.raspberrypi.org/downloads/raspbian/

Be sure to have git package installed :

sudo apt-get update
sudo apt-get install git

You can now clone the repository. A script (install.sh) is there for easy installation. You could inspect it and make steps manualy in case of any doubt. You can note that /boot/config.txt should be prompt to be modified during the installation. If it is not accepted, rpitx2 will be unstable.

git clone https://github.com/KubaPro010/rpitx2
cd rpitx2
./install.sh

Make a reboot in order to use rpitx2 in a stable state. That's it !

sudo reboot

Hardware

bpf

note: you don't need it, i've been transmitting since summer 2023 without it, and no one knocked at my door, but your country laws can be stricter
Raspberry Model Status
Pizero OK
PizeroW OK
PiA+ OK
PiB Partial
PiB+ OK
P2B OK
Pi3B OK
Pi3B+ OK
Pi3A+ OK
Pi4 Partial (system may crash completly)

Plug a wire on GPIO 4, means Pin 7 of the GPIO header (header P1). This acts as the antenna. The optimal length of the wire depends the frequency you want to transmit on, but it works with a few centimeters for local testing. (Use https://www.southwestantennas.com/calculator/antenna-wavelength to calculate the lenght, make sure to use the 1/4 wave setting, as for 1/2 wave you'd need a impedance transformator, and these are not cheap [also yes, i learned it the hard way after having to cut my antenna])

How to use it

easymenu

Easytest

easytest is the easiest way to start and see some demonstration. All transmission are made on free ISM band (434MHZ). To launch it, go to rpitx folder and launch easytest.sh :

cd rpitx
./easytest.sh

Choose your choice with arrows and enter to start it.Don't forget, some test are made in loop, you have to press CTRL^C to exit and back to menu.

Easy way to monitor what you are doing is by using a SDR software and a SDR receiver like a rtl-sdr one and set the frequency to 434MHZ.

Carrier

Carrier A simple carrier generated at 434MHZ.

Chirp

Chirp A carrier which move around 434MHZ.

Spectrum

Spectrum A picture is displayed on the waterfall on your SDR. Note that you should make some tweaks in order to obtain contrast and correct size depending on your reception and SDR software you use.

RfMyFace

Rfmyface Spectrum painting of your face using the raspicam for fun !

FM with RDS

FMRDS Broadcast FM with RDS. You should receive it with your SDR. This is the modulation that you should hear on your classical FM Radio receiver, but at this time, the frequency is too high.

Single Side Band modulation (SSB)

SSB This is the classical Hamradio analog voice modulation. Use your SDR in USB mode.

Slow Scan Television (SSTV)

SSTV This is a picture transmission mode using audio modulation (USB mode). You need an extra software to decode and display it (qsstv,msstv...). This demo uses the Martin1 mode of sstv.

Pocsag (pager mode)

pocsag This is a mode used by pagers. You need an extra software to decode. Set your SDR in NFM mode.

Freedv (digital voice)

freedv This is state of the art opensource digital modulation. You need Freedv for demodulation.

Opera (Beacon)

opera This a beacon mode which sound like Morse. You need opera in mode 0.5 to decode.

Rpitx and low cost RTL-SDR dongle

rtlmenu

rtlmenu allows to use rtl-sdr receiver dongle and rpitx2 together. This combine receiver and transmission for experimenting. To launch it, go to rpitx folder and launch rtlmenu.sh :

./rtlmenu.sh

You have first to set receiver frequency and gain of rtl-sdr. Warning about gain, you should ensure that you have enough gain to receive the signal but not to strong which could saturate it and will not be usefull by rpitx2.

Choose your choice with arrows and enter to start it.Don't forget, some test are made in loop, you have to press CTRL^C to exit and back to menu.

Record and play

replay

A typical application, is to replay a signal. Picture above shows a replay of a signal from a RF remote switch. So first, record few seconds of signal, CTRL^C for stop recording. Then replay it with play.

Transponder

fmtransponder We can also live transmitting a received band frequency. Here the input frequency is a FM broadcast station which is retransmit on 434MHZ.

Relay with transmodulation

We assume that input frequency is tuned on FM station. It is demodulated and modulate to SSB on 434MHZ. SSB is not HiFi, so prefere to choose a talk radio, music sounds like bit weird !

Range

It has been mostly untested, but i've tested it on 95 mhz, with a 79 cm antenna, the signal depending on the directionality, transmitter elavation, it can reach about 300 meters

Transmitter Power

By default the Raspberry Pi outputs 4 mA on a gpio pin, but here it gets overriden to max, which is about 16 mA, some apps have a setting to change the power, here is a sheet of the power levels and their correspondent radiated power: (NOTE: RADIATED POWER, NOT ERP, TO HAVE THE EXACT TX POWER OF A TRANSMITTER, THE ANTENNA EFFIECENCY AND GAIN WOULD NEED TO BE COUNTED IN THE CALCULATION)

0 = 6.6 mW
1 = 13.2 mW
2 = 19.8 mW
3 = 26.4 mW
4 = 33.0 mW
5 = 39.6 mW
6 = 46.2 mW
7 = 52.8 mW

To continue

rpitx2 is a generic RF transmitter. There is a lot of modulation to do with it and also documentation to make all that easy to contribute. This will be the next step ! Feel free to inspect scripts, change parameters (frequencies, audio input, pictures...).

Credits

All rights of the original authors reserved. I try to include all licences and authors in sourcecode. Need to write all references in this section.