Hacker News

Top stories

Live mirror
30 storiesupdated just nowView source snapshot
  1. Bend 2 and the Vibe-Coding Trap(liampwll.com ↗)
    62comments
  2. OpenJev(openjev.com ↗)
    137comments
  3. ZCode, the GLM coding agent, silently uploads your Git history(tokenstead.ai ↗)
    34comments
  4. Jemalloc 5.4.0(github.com/jemalloc ↗)
    56comments
  5. Subnormal floating-point numbers are expensive on Intel processors(lemire.me ↗)
    7comments
  6. I don't like passkeys(hawksley.dev ↗)
    90comments
  7. Microsoft exec called AI scraping 'the largest theft of labor in human history'(techcrunch.com ↗)
    318comments
  8. The scourge of x86 emulation(fex-emu.com ↗)
    44comments
  9. Cekura (YC F24) Is Hiring(ycombinator.com ↗)
    discuss
  10. Replacing Pull Requests with Delta(zed.dev ↗)
    26comments
  11. Warren Buffett Steps Down as Berkshire Chairman, Names Son to Replace Him(nytimes.com ↗)
    56comments
  12. Bonsai 2 27B: Near-Lossless Compression in a 9x Smaller Footprint(prismml.com ↗)
    154comments
  13. Astra for Law(openai.com ↗)
    627comments
  14. The Shadows Lurking in the Equations – Underwater Islands(gods.art ↗)
    discuss
  15. Bend – A language that blocks AI mistakes via proof, on CPU and GPU(bend-lang.com ↗)
    248comments
  16. Qwen 3.8 Omni Flash(qwen.ai ↗)
    96comments
  17. Hister: A private search engine for the pages you visit and the files you keep(github.com/asciimoo ↗)
    173comments
  18. Wax motor(wikipedia.org ↗)
    78comments
  19. When the fractional part of a float fixes your shader(crocidb.com ↗)
    10comments
  20. Fujitsu launches made-in-Japan next-generation CPU FUJITSU-MONAKA(global.fujitsu ↗)
    239comments
  21. Pre-Greek: The lost language hidden within Ancient Greek(linguisticdiscovery.com ↗)
    51comments
  22. How to Write with an LLM(sockpuppet.org ↗)
    144comments
  23. Dr Julius Neubronner's Miniature Pigeon Camera(publicdomainreview.org ↗)
    discuss
  24. A heap overflow and SSO misconfiguration to compromise OpenAI internal repos(hacktron.ai ↗)
    165comments
  25. Shapelearn Qwen 3.8 27B (13.1 GB VRAM)(byteshape.com ↗)
    20comments
  26. Ask A Monk – A digital wilderness for thoughts with no immediate answer(askamonk.online ↗)
    28comments
  27. Telstra outage: The night a network decided the year was 2006(netnod.se ↗)
    30comments
  28. Flet 1.0 – Build cross-platform apps in Python(flet.dev ↗)
    72comments
  29. Diplodocus, Long Thought Exclusively American, Turns Up in Spain(sci.news ↗)
    48comments
  30. Speeding up gearhash on ARM64(sam.dev ↗)
    discuss

Turn a Raspberry Pi into an FM transmitter

246 pointsby 12y agomakezine.com
64 comments
12y agoHN ↗

you could use this to broadcast RDS, and then tell the other cars on the road that there is a blockade ahead, it would be like that Bruce Almighty scene, well maybe not...

12y agoHN ↗

It has enough range to cover your home, DIY drive-in movie, a high school ball game, or even a bike parade (depending on the stragglers).

Interesting idea... but wouldn't you need to increase the broadcast range for that to work effectively?

12y agoHN ↗

Maybe every car with the system could work as a re-transmitter?

12y agoHN ↗

You also need a very, very good antenna for that sort of stunt.

QRP is tough. I'm a licensed HAM radio operator and my Tx has a 5 W final stage, so I fit right into the QRP limits. It's tough. You're at the mercy of the ionosphere all the time.

100 W amplifiers are cheap. :)

12y agoHN ↗

I use a WSPR transmitter that outputs around 200mW on 20m and am easily heard all over North Americdn and Europe. I've also had two South Pacific reports.

This was into a poorly tuned dipole at 35ft.

12y agoHN ↗

You also need a very, very good antenna for that sort of stunt.

For 10mW, sure, but I've done Michigan to France on 5W with a plain old 40m loop 15-20 feet off the ground. In hindsight, I should have tried it on 3W if only to get 1000mi/W on a cloud warmer.

12y agoHN ↗

There are some really good legitimate uses for this, but I'm concerned that it's going to turn into another Defense Distributed situation =-(

12y agoHN ↗

I'm not sure exactly how they compare, other than the fact that both have a potential for some form of misuse.

Exactly what concerns do you have?

12y agoHN ↗

As an amateur radio operator, I think this is fascinating, because they claim it can transmit on the 2m VHF band (144-148MHz) that's popular among hams.

But I have some concerns about its signal characteristics, since you're essentially abusing digital hardware (GPIO) to produce a modulated output it wasn't designed to produce. Someone with a spectrum analyzer should check to see if it produces any nasty harmonics, or similar noise, that could interfere with other stations.

12y agoHN ↗

If you need a datapoint on how noisy those signals are: some people have combined a 144.6Mhz Raspberry Pi output with a narrow passive bandpass filter to generate a relatively clean and powerful 433MHz signal (the third harmonic, which is quite strong in a square wave): http://www.skagmo.com/page.php?p=projects/22_pihat

12y agoHN ↗

Yes, assuming there's strong harmonics (I'd be real surprised if there weren't), you should definitely put a bandpass filter between the Raspberry Pi and the antenna like these guys did.

Thanks for the link! That's a clever way of using harmonics to your advantage.

12y agoHN ↗

Recently I did a similar project in which a malicious hardware device leaks a victim's data (Password, credit card #, etc.) through a similar technique.

We used an FPGA though, so with a 100 Mhz fundamental frequency we had harmonics well into the 1.5 Ghz. We called it CPU-SDR. Video here:

https://sites.google.com/a/groundworkstech.com/index/blog/rs...

Bonus: Using mutiple PCB traces, you have a basic Yagi-like directional antenna. Feeding different traces you can modify the RF radiation pattern it in real-time.

12y agoHN ↗

It's more like a Yagi, as currently I feed only one of the "antennas" and the modulation is very limited.

But messing with the phases should be possible.

12y agoHN ↗

Fellow HAM here.

I don't doubt that the spectrum coming out of that thing is pretty horrific. There are no filters, and who knows what the wave form is (rectangular?).

12y agoHN ↗

Hang a bandpass LC filter on the output then feed to a dipole?

Disclaimer: not an active HAM, used to clean seagull crap off 500KHz distress aerials on small ships in the last century.

12y agoHN ↗

I don't think a rectangular wave can propagate through the ether :)

Output from the digital pin is very rectangular. But you have many sinusoidal‎ harmonics ready to be fired into the air if you plug a small antenna on it.

12y agoHN ↗

I don't think a rectangular wave can propagate through the ether ...

Of course it can. A square wave is just a series of discrete sine components, each of which will happily propagate through the air. If this were not true, WiFi wouldn't work -- it also relies on multiple, coordinated frequencies and complex modulation.

12y agoHN ↗

Right, in ideal hardware. The problem is that in order to transmit an ideal square wave, you need infinite bandwidth.

The problem being that any real circuit has a finite band it operates on. It will filter the components of the wave that are outside of its bandwidth, leading to 'ringing' artifacts (Gibbs phenomenon).

12y agoHN ↗

Right, in ideal hardware. The problem is that in order to transmit an ideal square wave, you need infinite bandwidth.

On the contrary. An ideal square wave's higher harmonics decline rather quickly:

http://en.wikipedia.org/wiki/Square_wave#Examining_the_squar...

In other words, there's enough energy to cause problems at 2, 6, 10 ... times f, but at rapidly declining levels.

It will filter the components of the wave that are outside of its bandwidth, leading to 'ringing' artifacts ...

Ringing artifacts are present in a system whose bandwidth rolls off abruptly. It's less significant in a system with a gradual drop-off in response, like a piece of wire acting as a broadband antenna.

12y agoHN ↗

A square wave is just a series of discrete sine components

A true square wave would require an infinite series of discrete sine components, wouldn't it?

12y agoHN ↗

I don't think a rectangular wave can propagate through the ether :)

According to a guy named Fourier, a rectangular wave is really just a bunch of sine waves working together.

12y agoHN ↗

Totally of topic, but I think it might be interesting and new for some of the HN crowd: both Lagrange and Laplace, not the least of mathematicians, didn't believe that idea when Fourier presented it to the Paris institute. http://www-groups.dcs.st-and.ac.uk/~history/Biographies/Four...:

"[...] a committee consisting of Lagrange, Laplace, Monge and Lacroix was set up to report on the work. Now this memoir is very highly regarded but at the time it caused controversy.

There were two reasons for the committee to feel unhappy with the work. The first objection, made by Lagrange and Laplace in 1808, was to Fourier's expansions of functions as trigonometrical series, what we now call Fourier series. Further clarification by Fourier still failed to convince them. As is pointed out in [4]:-

All these are written with such exemplary clarity - from a logical as opposed to calligraphic point of view - that their inability to persuade Laplace and Lagrange ... provides a good index of the originality of Fourier's views."

12y agoHN ↗

Doubt it's got much range. I'd be surprised if it goes 50ft. Most of the power is going to be lost unless you have a decent antenna on the end and something to decouple it from the host circuit. Bandpass wouldn't go amiss though.

12y agoHN ↗

I was able to pick up an indoor transmission from my car up to about 1000 feet away. However after losing the signal the car radio had to be within 400 feet before it locked on again.

12y agoHN ↗

I used an RTLSDR to look at the spectrum. If you're plugged into the wall, you get ripple. Also the harmonics are pretty loud too. The WSPR example above shows the filtering they put in. In theory at low power like someone else said it isn't ideal, but wouldn't upset too many people so long as you didn't amplify before filtering.

12y agoHN ↗

After starting the broadcast: "Keep in mind that it'll take about 15 seconds to warm up"

What does that mean? What needs to warm up?

12y agoHN ↗

Boot up. It runs a full Linux stack, and the raspi CPU is not astonishingly fast.

12y agoHN ↗

I just rebooted my rapberripi running archlinux, It took ~2 seconds from the time I rebooted it to me being able to ssh into it.

The pi started to respond to ICMP packets in 19 seconds

http://pastebin.com/JQmCmHXH

12y agoHN ↗

Hmm, maybe a Raspberry PI could be easier and more reliable replacement to virtual machines?

(I love Vagrant/Virtualbox but sometimes, after putting the laptop to sleep, it stops working and I have to reboot).

12y agoHN ↗

They're not that fast. A single thread build of my python/c project (pillow) takes ~ 15 seconds on a vm, ~ 30 on an ancient core duo laptop, and ... still waiting on the raspberry. edit: 5:15. So 25 times slower.

12y agoHN ↗

Make has covered it before: http://makezine.com/2012/12/10/raspberry-pi-as-an-fm-transmi...

Note that the news here is only the Make project on it, as this has been known and working for well over a year. The current PiFM software uses DMA from the userspace to play without clicks and without taking the whole CPU. The later versions also appear to support stereo, so I can't make much sense of this sentence in Make's tutorial (step 5):

Each file is then re-encoded into a mono format the PiFM radio can handle.

If their pre-configured image is really doing this, it is doing it wrong, I think. Worth noting that the PiFM script is capable of reading from stdout, and not just play WAV files, so the possibilities go well beyond playing music off a SD card.

By the way, here is the original page in a Wiki (of which Make shows a screenshot, but I found no link): http://www.icrobotics.co.uk/wiki/index.php/Turning_the_Raspb...

edits: add information

12y agoHN ↗

Would it be possible to modify this to work at 125khz to use passive RFID?

12y agoHN ↗

It will transmit radio noise on many other frequencies. I played with this stuff when i was a kid to jam neighbor's TV's (they only used antennaes). Worked like a charm.

It's very hard and expensive to transmit signal on a single frequency. And very easy to pollute everything.

12y agoHN ↗

It's very hard and expensive to transmit signal on a single frequency. And very easy to pollute everything.

FM transmitters for MP3 players are cheap and work well (within a very short range, but that's their use-case), see for example http://www.amazon.com/FM-Transmitters-MP3-Player-Accessories...

So surely it can't be that hard or expensive - unless it changes when you try to broadcast to more than a few feet away?

12y agoHN ↗

If you can only broadcast two feet, who will care that you are flooding the spectrum?

So I don't think you can assume they are particularly clean transmissions.

12y agoHN ↗

If they meet FCC regulations then yes you can assume that. If they don't meet FCC regulations then they're illegal. I don't know how much policing goes on for that though.

12y agoHN ↗

I thought FCC regs involved a distance component? Like, they don't measure EMI right on the surface of the device.

12y agoHN ↗

I wish they had put the $420 price of the basic model on the front page.

12y agoHN ↗

yeah. FPGA device prices are still up there unfortunately

12y agoHN ↗

Yes, it's not exactly in the raspi price range. That range is covered by the TV-tuner SDR receivers and other USB-stick receivers.

On the other hand, for what it does, that x40 is actually quite cheap.

12y agoHN ↗

I really want to learn more about this stuff! Is there a good book that introduces the basics? More technical introductions are good too.

12y agoHN ↗

Just blew my motherboard by updating the bios via one of dell's software updates and corrupted my bios. The board doesn't have a dual bios configuration so its corrupted so I can't pull the battery or reset the CMOS.

All of my research showed that most people just pony up and replace the mobo for $200. Unwilling to give up I kept researching and found that you can turn your Raspberry Pi into a flashrom to restore your bios. http://flashrom.org/RaspberryPi

Waiting on female to female GPIO connectors to come in mail before I can hook my raspi up to the SPI sockets on my mobo and reflash the bios. Got my fingers crossed, if this works it will be a great win!

12y agoHN ↗

It should work. If you have serious trouble with that then there are also devices like the Bus Pirate[1] that can do the same thing (Though I have yet to do it myself).

It's really neat how easy this kind of thing has become recently with all of the hobby electronics guys driving the market and opening up doors that 10-15 years ago looked bleak at the time (though that could just be my memory coloring it).

I have used similar stuff to fix up routers (though haven't had to interface with the flashrom directly) and install openwrt.

12y agoHN ↗

With BIOSes being serial flash these days, it's really easy to read/write them since all you need is something that can do programmed GPIO on a few lines at the right voltage. An Arduino, a parallel port on another PC, etc.

A lot of PC repair shops in China will reflash BIOSes really cheaply too; they usually use a clothespin-like clip to attach to the chip so they can do it quickly without having to solder anything.

12y agoHN ↗

This is awesome! Now what kind of bandwidth can we get out of this?

12y agoHN ↗

Hmm add a line-in, transform the signal, pipe it over to the transmitter and BOOM; silent disco!

12y agoHN ↗

Does anyone have the ISO or a torrent of it?

12y agoHN ↗

Why not just make one out of a single transistor and some resistors? #overkill

12y agoHN ↗

Great ! I just managed to transmit the FM signals, I used my micro USB cable stuck in 7th Pin

12y agoHN ↗

Is it possible to both receive and transmit FM simultaneously?

Could this be used to create a simple, low bandwidth wireless connection between 2 pis?