Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Setting up a ham radio fox transmitter #194

Open
bzsasic opened this issue Apr 11, 2024 · 9 comments
Open

Setting up a ham radio fox transmitter #194

bzsasic opened this issue Apr 11, 2024 · 9 comments

Comments

@bzsasic
Copy link

bzsasic commented Apr 11, 2024

I would like to set up a couple ham radio fox transmitters (used for other hams to radio-locate the hidden transmitter). I am a licensed ham, and I have tested transmit on the 2 meter band, and it works great. My question is, I see that the -r function will loop a wave file, but how can I create a pause between transmissions? Basically, I would like to transmit the wave file, then pause transmission for 2-3 minutes, then transmit the same file again. And I would like to continue doing this until the battery runs out.

is this possible? TIA

@creeper6530
Copy link

If I were you, I'd write a basic Bash script with a loop, in which are the transmission command and sleep commands. I'm sure you can google how to do it.

@markondej
Copy link
Owner

markondej commented Apr 12, 2024

ie. put this in console:

sudo su [type here your password]
while true; do ./fm_transmitter -f 144.0 my_file && sleep 1; done

Notice there is not "-r" as we are looping the transmitter manually

You can also put second line in .sh file, add execution privilages ("chmod +x my_file.sh") and then run it with sudo

@bzsasic
Copy link
Author

bzsasic commented Apr 12, 2024

If I were you, I'd write a basic Bash script with a loop, in which are the transmission command and sleep commands. I'm sure you can google how to do it.

Thank you, I will read up on bash.

@bzsasic
Copy link
Author

bzsasic commented Apr 12, 2024

ie. put this in console:

sudo su [type here your password]
while true; do ./fm_transmitter -f 144.0 my_file && sleep 1; done

Notice there is not "-r" as we are looping the transmitter manually

You can also put second line in .sh file, add execution privilages ("chmod +x my_file.sh") and then run it with sudo

Thank you so much for this!

@bzsasic
Copy link
Author

bzsasic commented Apr 12, 2024

Follow-up question: So I played the provided guitar file on 146.5 MHz, and it sounds an electric guitar (totally distorted). Also tried playing my own wave file, and also distorted. I tried different bandwidth settings (amateur band is 20KHz) from 6KHz to 200KHz, and nothing got it sounding better (acceptable). When I transmit on broadcast FM (ex. 89.4 MHz), it sounds perfect. Tried Pi Zero W, Pi Zero 2 W and Pi 3 A+, all with the same result. Any ideas?

@creeper6530
Copy link

I guess it's because of the substantially higher frequency, though I'm not sure at all.

@bzsasic
Copy link
Author

bzsasic commented Apr 12, 2024

Not sure that's it. The Pi chip is supposed to work up to 230 MHz. I am wondering if there is some kind of low pass/band pass filter in the code that is set for the broadcast FM band (88-108MHz)?

edit: Scratch that. I looked through the code, and it doesn't appear to be filtering of any kind.

@markondej
Copy link
Owner

markondej commented Apr 13, 2024

The problem is in clock resolution, at 146 MHz RPi is not able to modulate sound using whole bandwith linearly. There are 2 or 3 frequencies available in 20 kHz bandwith available. Its not a problem for lower frequencies and 200kHz bw, where the number of useable (for FM sound modulation) frequencies is hi. Instead of sine accoustic waves we got squared-like signal like in 8-bit games.

The only possible solution I can see right now is to modulate accoustic signal in delta-sigma high frequency style so it could be pottentially demodulated on reciver's side. I have tried this but with poor results.

@bzsasic
Copy link
Author

bzsasic commented Apr 13, 2024

Thank you for the response. Can you tell me if there is a better frequency I can use between 144.0 and 148.0?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants