alt.hn

3/1/2026 at 12:26:43 AM

Raspberry Pi Pico as AM Radio Transmitter

https://www.pesfandiar.com/blog/2026/02/28/pico-am-radio-transmitter

by pesfandiar

3/4/2026 at 7:12:57 PM

I want to point out that what keeps this 'OK' is that the little wire is so 'electrically short' compared to the actual wavelength at 1000khz (a real quarter wave antenna at that freq is like 75 meters)... and thus this limits the power of this 'transmitter' to probably nanowatts.

If the PIO pin could drive a fair amount of current at 3.3v into a long enough wire at that frequency you'd start to get into milliwatts, and AM radio is NOT a band that even amateur license operators can broadcast over a a certain power on. FCC part 15 dictates no more than a 3 meter antenna for personal devices at AM frequencies which is what does the power limiting essentially.

The harmonics fall off quick enough on such a setup that it wouldn't really be a problem - but the only way to really KNOW that is to have a real solid understanding of how this 'radio' you've just made is working, meaning how that square carrier wave is really being driven off the PIO pin, and thus you need the requisite EE knowledge and/or ham radio test equipment and experience.

I've seen more and more of these 'ChatGPT coded up a radio transmitter' posts and it kinda rubs me the wrong way. I'd like to see more calculations and disclaimers for people showing some responsibility with radio, and if it drives people to studying and taking an amateur radio license test that would be for the better...

by mk_stjames

3/4/2026 at 8:25:41 PM

At least you are supposed to be allowed to transmit on AM (and FM) bands at very low power, at least under FCC rules. That's how they can sell those adapters for car radios. Some other ones you definitely are not supposed to use as far as I know, like the old analog TV signals - I've seen a couple of those sorts of projects recently. On the other hand, you can go and buy an illegal TV transmitter on Amazon right now.

Also a reasonably even bet that you already own a low-quality wall power supply that will produce more interference than anything you're going to be doing with a Pico and a 4" jumper wire (I've found a couple of offending devices in my house), but I'm certainly in no position to tell you if you should or shouldn't do something.

by alnwlsn

3/4/2026 at 7:41:24 PM

Mea culpa.

Without the proper knowledge or measurement equipment, I observed that the audio would fade out after a 30 cm distance. Combined with running it for mere seconds to test and record a demo, I assumed to be in the clear with the spirit of the regulations. Appreciate the reminder to be responsible with RF.

by pesfandiar

3/5/2026 at 12:46:17 AM

If you're interested in this I definitely recommend you look into amateur radio licensing. I took mine a few years ago simply out of interest, and I learned so much from the advanced course.

VHF and UFH are so deeply embedded in technology we almost forget it's there. It's fun to sweep for other peoples environmental sensors in your neighbourhood, even more fun to track and listen to satellites as they pass overhead.

by ra

3/4/2026 at 8:34:44 PM

I don’t know what the regulations are in your country (looks like you are maybe in Canada?), but in many countries it is straightforward to get an amateur radio license, and then you can have all sorts of fun (under the rules).

by cadr

3/4/2026 at 9:24:57 PM

Transmitting on AM broadcast frequencies is generally prohibited unless it meets an extremely low-power exemption , even if you have amateur license(I have a Japanese amateur radio license). A practical way to reduce risk is to put a large resistor before the antenna so the radiated power stays within that exemption. You could start with 100 MΩ; if the receiver cannot pick it up, try 10 MΩ, and so on.

by tl2do

3/5/2026 at 3:43:55 AM

A slightly less practical but more fun way is to do it on a ship in international waters. (Bringing a whole new meaning to "pirate radio"...)

by userbinator

3/5/2026 at 4:25:14 PM

There's still one example of a working offshore radio ship, the Ross Revenge in southern England which you can go and visit. She's one of the former Radio Caroline ships, the studios are still fired up every month for a weekend of broadcasting and they run tours. Radio Caroline themselves are still alive and kicking as a legal station broadcasting 24/7 online and on 648 AM; ironically the latter transmission comes from a former BBC World Service site. She wasn't really a 'pirate radio' ship as she was a Panamanian-flagged vessel in international waters so not subject to the Wireless Telegraphy Act in theory, but British citizens specifically would have committed an offence working on her in her free radio days. What really did Radio Caroline in as an offshore broadcaster was the Anglo-Dutch action against the clandestine organisation which supplied the ship, that and the move from a 3-mile to a 12-mile limit which forced her into more exposed waters.

Other than the RNI ship she was probably the best-equipped radio ship that ever put to sea, and certainly the strongest. She was a long-range trawler built for Arctic conditions, and the engineering which went into the radio station was really impressive; Peter Chicago her engineer by all rights should be up there with the greats in hacker lore. Most radio ships were clapped-out old vessels at the end of their lives, they were essentially slapped with transmitters and sent to sea to die since you can never take a radio ship back into port once it's broadcast. The Ross Revenge on the other hand was a very strong ship who was left purposeless midway through her life due to the Cod Wars. The generating and transmitting facilities were really sophisticated for radio pirates, there were plenty of redundancies and the ship could radiate multiple medium and short wave services.

The broadcast studios and accommodation are still active but most of the machinery spaces and the hull itself aren't in good condition. They've raised half a million pounds for repairs, but that's not actually all that much in the maritime conservation game. Hopefully it will be enough to stabilise the immediate problems with the hull and open a door to lottery funding though. If you're in the area I'd go and see her while you've definitely got the chance!

by BoxOfRain

3/4/2026 at 7:04:11 PM

Please use an appropriate filter for the band that you are transmitting, otherwise you will pollute all the near frequencies with spurious.

by lormayna

3/5/2026 at 2:19:44 AM

I don't mean to pick on the author... but there are some common LLM-isms in here which are really starting to annoy me:

    return (int64_t)(now_us - deadline_us) >= 0;
...is a very silly way of saying:

    return now_us >= deadline_us;
The function is named incorrectly, "deadline passed" would be:

    return now_us > deadline_us;
...although the calling function is correctly called "wait until", making it more confusing if you had to care about the difference.

The weirdly pedantic use of stdint.h types with unnecessary casting is another LLM-ism I see more and more. Passing int8_t to a function by value is really weird... and the second half of this conditional:

    if (midi_note < 0 || midi_note > 127) {
...can never be true, INT8_MAX is 127.

None of this is a huge problem on it's own. But the cognitive cost of a million odd little things like this adds up really quickly across a large codebase when you're trying to debug something.

by jcalvinowens

3/4/2026 at 9:14:10 PM

Given GPIO frequency limits, reproducing a beautiful sine wave for a 1000 kHz carrier is a real challenge. He should borrow an oscilloscope and measure the output waveform.

by tl2do

3/5/2026 at 10:06:52 AM

An oscilloscope is the wrong tool for that. You can tell the difference between kind-of-square and kind-of-sine wave using one, but hardly more. At least DSO often have a FFT option and on the new ones with 12bit ADC that might actually be more than just a gimmick.

You'd want to use a spectrum analyzer to verify that other frequencies are present only at very low levels. TinySA might be the cheapest option or an used Digilent Analog Discovery.

by guenthert

3/4/2026 at 6:04:55 PM

I don't get why PWM wouldn't work? Would the harmonics make the tuner ignore the signal?

Because the speaker is still slow, so if it got to it, there should be audio, but maybe the circuit filters out the PWM signal outright?

by juancn

3/4/2026 at 6:21:19 PM

https://vanhunteradams.com/Pico/AM_Radio/AM.html

by nom

3/4/2026 at 6:37:20 PM

Highly recommend his Pico-based microcontroller course: https://www.youtube.com/playlist?list=PLDqMkB5cbBA4GisLzRSqw...

The PWM-based modulation is interesting, but as an amateur, I couldn't fully understand it or trust that the radio receiver reliably picks up the duty cycle as amplitude.

by pesfandiar

3/4/2026 at 7:44:45 PM

If you PWM a signal, I presume you could add a filter to convert to amplitude changes?

by anfractuosity

3/4/2026 at 5:51:10 PM

This is the first use people cooked up for the MITS Altair computer, which at the time could only output to its blinkenlights without expansion. Before a tiny company called Micro-Soft released BASIC for the thing, some madlad at the Homebrew Computer Club found a way to spin the CPU in loops tight enough that the interference could be picked up as tones on an AM radio, allowing for music to be created. Good to see the old traditions are still alive.

by bitwize

3/4/2026 at 7:36:54 PM

GSMem (2015) 1-5.5m/30m with 3G from the RAM bus

TEMLEST-LoRa (2025) 87.5m with LoRa over display cables

LoPHY (2024) 700m with LoRA

MAGNETO (2021) CPU-generated magnetic fields

"Rowhammer for qubits" describes hypothetically using electron tunneling and magnetically biased bit flips in standard RAM to simulate quantum operators.

I've heard stories of ham radio clubs teaching how to make a coaxial antenna out of coaxial cable (cable TV copper cable)

"Can you hotwire this computer to transmit a tone through the radio?" — Transformers (2007)

by westurner

3/4/2026 at 10:29:49 PM

>I've heard stories of ham radio clubs teaching how to make a coaxial antenna out of coaxial cable (cable TV copper cable)

That's Teleco 101, basically the first lessons from a Teleco trade/vocational degree. And OFC known at any electrician degree.

by anthk

3/3/2026 at 4:27:06 PM

> Raspberry Pi Pico as AM Radio Transmitter

The fact that you are receiving it with an AM radio, doesn't mean that you are transmitting AM.

by hulitu

3/4/2026 at 7:03:48 PM

  "A rose by any other name would smell as sweet"  -- Bill

by tejtm

3/5/2026 at 4:10:38 PM

By the same token, if the AM radio is receiving something other than AM, it isn't an AM radio.

Or we could just use words that are useful for communicating things.

by benj111

3/4/2026 at 7:08:44 PM

On off keying at 1,000khz is AM transmitting though?

by mikeyouse

3/4/2026 at 7:40:28 PM

AM is short for Amplitude Modulation, and by definition needs a carrier wave. This is more like controlled interference, still impressive though.

by crims0n

3/5/2026 at 2:20:15 AM

Emitting a square wave as RF blithers all over the RF spectrum. At least put a bandpass filter on the thing so it stays in-band.

by Animats

3/4/2026 at 10:26:36 PM

If you use GNU+Linux/BSD or anything with an X server, by tweaking the modelines you can broadcast a song over AM by using harmonics from your screen.

Search for Tempest for Eliza.

by anthk

3/4/2026 at 11:35:32 PM

[dead]

by STARGA