Turning the Raspberry Pi Into an FM Transmitter
icrobotics.co.uk
icrobotics.co.uk
[1] http://www.mcmanis.com/chuck/robotics/projects/eelb.html (and yes I'm re-doing the web site not in Comic Sans which will eventually all be moved to http://robotics.mcmanis.com but until then ...
The amount of noise and harmonics that come off that sort of transmitter will be horrible. At least chuck a bandpass on the end of it.
Agreed though - anything throwing unwanted noise onto the RF spectrum is a Bad Thing, however low-power it is (see powerline networking).
Anyway, the FM band is still in use, see the furore over iTrip or similar devices that were at a time banned in the UK as the law said you needed a license to broadcast on FM.
The FM band is still in use and even when radio goes digital AFAIK the idea is that the FM band would be available for alternative use once radio stations no longer require it.
Then, when Ofcom come calling, the FM transmission is "someone relaying our internet broadcast, we don't know who it is."
At the very most, we will see a migration of national (and possibly large regional) stations to DAB in the next decade. FM will still remain up and running for local commercial and community radio - and an expansion of this is planned once the spectrum currently used by national broadcasters is released. The current FM and MW spectrum is of little use for new technology like mobile broadband - they are more interested in the current TV spectrum and up into the GHz bands.
All this is currently under discussion, though, and nothing is confirmed. The status quo remains for now!
I've always been interested (just out of interest) to get an understanding of what the whole spectrum looks like, which bits are good (and why), and which bits are currently taken by what and could be used by other things.
Is there any good place I could find such a thing that you know of?
This rather psychedelic PDF is linked from the above page: http://www.roke.co.uk/resources/datasheets/uk-frequency-allo...
It doesn't say which allocations are good or bad - just what each slice of spectrum is used for. People like the mobile operators are only really interested in spectrum above the 800MHz area. This is where the competition for spectrum and billion-pound licence auctions come into play.
Cellular companies are interested in line-of-sight frequencies in the UHF and SHF bands, where range is smaller but robustness of coverage is high. Then, they just blanket their desired area with cellular towers. VHF travels further, at the expense of robustness - it's ideal for broadcasting, but not for two-way data services. If you cleared FM and transplanted the existing 3G service onto, say, 100MHz, you'd find all sorts of interference issues.
87.5-108MHz, for instance, is used for FM broadcasting all over the world (except Japan where it's down in the 70s). The receivers will be available for the foreseeable future - certainly for my lifetime. If the band was vacated and all radio migrated to digital, the pirates would simply use it. It is of such little value - so it may as well be kept, rather than switching to digital for its own sake.
http://www.bbc.co.uk/rd/pubs/spectrum/bbc-the-spectrum-and-i... (see page 5)
1] the carrier frequency doesn't itself determine the bandwidth, it's the frequency range that does. For example, if someone says "a 100 Mhz signal", that doesn't tell you what the bandwidth is. You need to also know that the signal is actually allowed to cover 99.9 Mhz to 100.1 Mhz, so it's bandwidth is 0.2 Mhz (which could transfer ~0.2Mbps (order of magnitude accurate), depending on the encoding system used[2]). But if someone says "a 100 Mhz signal" you can guess that they don't mean the signal is allowed to cover 70 Mhz to 130 Mhz (60 Mhz of bandwidth), because: a) that's a ~2x range in frequency, which make it hard to design appropriate aerials, filters, modulators, etc; b) that isn't how spectrum is actually allocated anywhere I know of. So in practice you can normally deduce the approximate bandwidth by knowing the carrier frequency. Apologies for the long explanation - I've been nitpicked before on this..
2] see: http://en.wikipedia.org/wiki/Nyquist_rate, http://en.wikipedia.org/wiki/Bit_rate
This has no filtering at all.
Unlicensed broadcasts on the FM broadcast band (88 to 108 MHz) are limited to a field strength of 250 µV/m at a distance of 3 meters from the antenna. This is equivalent to 0.01 microwatts.[2] Emissions must be kept within the 88.0 to 108.0 MHz band under Part 15 rules.
Without a spectrum analyser, you have absolutely no idea how much energy is being emitted on other frequencies. A crude unfiltered transmitter of this sort is probably emitting more spurious energy than on the intended frequency. Ignorance is no defence and it is the obligation of the operator to ensure that their transmission is compliant.
Lots of serious, life-or-death stuff depends on radio. The FM broadcast frequencies are directly adjacent to the VHF Airband, either side of 108MHz. The lowest part of the Airband is allocated to VOR and ILS navigation aids. Transmit a couple of watts on 107MHz and you're just going to interfere with broadcast radio; A couple of watts on 109MHz could take down a light aircraft. If you're going to experiment, you have a moral duty to get yourself an amateur license and ensure you have the skills and equipment to be a good neighbour.
Amateur radio operators have dummy loads and SWR meters to make sure that the signal they are putting out isn't stomping on some other critical portion of the RF band. Experimentation is a good thing, but this is the equivalent of someone being disturbingly careless experimenting with chemicals in their home "lab." The chance you could cause a serious problem with contamination for your neighbors is small but definitely non-zero.
That said, you should always use a dummy load when working with a new transmitter project. SA is always a good idea, but I've been in a lot of shacks that didn't have one.
Of course, this guy used a FM radio to check his signal. He should have used a scanner and checked out the multiples of his center freq.
How many "couple of watts" are we talking about? I don't see this being capable of more than single digits.
It is illegal sure, and these people shouldn't be doing it intentionally, but I have a hard time seeing it causing damage measurable in actual dollars.
"A couple of watts on 109MHz could take down a light aircraft."
is without doubt the sort of unnecessary hyperbolic statement that leads directly to the modern security-theatre over reaction. Sure, it might lead to navigation problems which combined with enough other co-incidental bad luck might lead to a crash, but the reductio ad absurdum statement "$30 worth of widely available electronics could crash a Cessna" would surely lead to an entirely justified call from Cessna's legal department if published prominently enough.
Yeah, fucking around with poorly controlled transmitters in the FM broadcast band isn't a great idea. but telling people "you'll crash planes!" is a sure-fire way to have the rest of your message's reliability questioned.
(And, for the record, I'm going to try this out with my RaspberryPi and see if I can get some sort of handle on unexpected emissions using my FunCube software radio to listen above and below the tx frequency...)
I don't think it's all that far-fetched to imagine that an unfiltered transmitter like the one described could generate signals which 'trick' the localizer receiver and guide a low-flying airplane into an obstruction which is technically outside, yet near, the approach path. (The wikipedia page on ILS describes how it works, so I won't repeat it here.) AMing the right carrier with 150 and 90 Hz tones (which really means generating carrier + and - 150 Hz and carrier + and - 90 Hz) would cause the localizer to show the plane centered on the glide path, even if it isn't.
Also I suspect the actual ILS transmitters are a lot more powerful, so unless you have this on the plane it probably wouldn't do anything.
Only if the pilot is a fuckwit.
Private Land Mobile Radio Service http://en.wikipedia.org/wiki/Business_band#Low-band_frequenc...
There are multiple rules for different spectrum.
Anyone can transmit for miles on FM in the 'green dot' / 'blue dot' spectrum. The laws were written for business, but anyone can use them.
Four general filter functions are desirable:
Band-pass filter: select only a desired band of frequencies
Band-stop filter: eliminate an undesired band of frequencies
Low-pass filter: allow only frequencies below a cutoff frequency to pass
High-pass filter: allow only frequencies above a cutoff frequency to pass
http://en.wikipedia.org/wiki/RF_and_microwave_filter#Filter_...In the USA, it will be easy to break laws with this device. However, since the 1980s there has not been field enforcement by uncle Charlie (the FCC). Licensed users must complain a lot to get a response.\
For example, several times in CA police radio repeaters have been cross patched into HAM radio bands. No prosecution.
Now, all that being said, jamming is the worst sin a radio operator can commit. Please be careful if you start transmitting. Not out of fear, but out of being a good operator.
That interfered with EVERYTHING.
25 years later, an EE degree and 5 years working RF comms engineering, I realise what an asshat thing to do that was.
http://www.joebutton.co.uk/blog/baremetal-midi-lv2-raspberry...
When I get time I want to connect up a MIDI keyboard and audio input, so it becomes a synth / guitar stompbox that'll use an open audio plugin format.
1) You could use the given technique to create the MOdulation side of a modem[1]. You would have to solve the receiver and DEModulation side. Not likely to be do-able with a bare Raspberry Pi so you will end up adding a receiver and probably a demodulator (software demodulation is theoretically within the grasp of a Raspberry Pi).
Ref: http://en.wikipedia.org/wiki/Modem
2) Your data rate would be dependent on how well you implement your modem. Assuming you limit yourself to audio range frequency modulation (i.e. 10-3000Hz), you will have a hard time exceeding 300 baud using frequency shift keying (e.g. modulate with two tones, one indicating '0' and the other indicating '1'). If you use phase shift keying, you may achieve 2400 baud, but (a) I really doubt that a Raspberry Pi can do phase shift keying, (b) demodulating PSK is much more difficult that frequency shifting, and (c) in my limited experience, attempting phase shift modulation on top of a FM carrier doesn't work for crap (FM can be viewed as a type of phase shift modulation, so you end up phase shift modulating a phase shift modulator which doesn't demodulate + demodulate reliably into your baseband signal).
Ref: http://en.wikipedia.org/wiki/Modem#Narrow-band.2Fphone-line_...
Higher data rates over phone lines encode multiple bits per baud (signaling unit), making the encoding and decoding tasks go through the roof if done in software. Getting to e.g. 56Kbaud of the end-of-the-road phone modem is impossible - 56Kbaud only worked when the phone company digitized the phone audio, and rather iffy even then.
Ref: http://en.wikipedia.org/wiki/Modem#Using_digital_lines_and_P...
[1] http://diydrones.com/ (for example)
Based on HopeRFs HM-TRP module, they present a serial port, either TTL, or as a virtual COM port over USB using a (defacto-standard) FTDI USB to serial chip. You can use two serial, two USB, or one of each - the radio modem in them is identical, it's just the presentation that differs.
Line-of-site range depends on the data rate, but is in the region of 1 - 2km, but up to 24km is possible with amplification. The data rate is up to 128kb/s.
Lots of technical details can be found on the ardupilot wiki[1].
They were designed as a lower cost, longer range alternative to Xbee [2]. Xbee support ZigBee, multipoint, mesh and other protocols, but not the 433MHz frequency legal in Europe.(900MHz is fine for the US, but the alternative, 2.4GHz, is the same frequency commonly used for spread-spectrum radio-control, so risks interference or reduced range.)
They can be purchased in the US for $75 a pair [2]. Clones can be found can be found from Chinese suppliers for less than $40 a pair [3].
[1] http://code.google.com/p/ardupilot-mega/wiki/3DRadio
[2] http://www.digi.com/xbee/, http://en.wikipedia.org/wiki/XBee
[3] http://store.diydrones.com/category_s/13.htm
[4] Try: http://RCTimer.com, http://AliExpress.com, http://GoodLuckBuy.com and search for 3DR
Would anyone happen to know how I can tune in to my remote's frequency (144.63 MHz, it says, even though the remote operates at 433.49 or something) and listen to the tones it generates?
That's when you KNOW the machine.
You just can't do that with anything these days. Even my HP50G calc is personality-free in that respect.
You can fake it - https://github.com/jamii/mechanical-sympathiser
The first demo on the Altair 8800.
But now I can have a raspberry pi hidden somewhere, translating audio to FM and possibly recognizing my voice commands while at it like "play We Are the Void by Dark Tranquillity"
I like this because they are using the rPi itself as a radio -- that's a pretty neat hack.
I imagine that if a proper ground plane antenna were hooked up to it the pi would transmit much farther.
Are FM transmitters still restricted for civilians in some parts of the world?
[1] http://www.wired.com/underwire/2013/01/mf-decentralized-danc...