News for hackers. Stuff that matters.
Re:Turn Raspberry Pi’s GPIO into an FM Transmitter by kragen on Saturday November 12, 2022 @08:51PM (#33579146)
A broad band of spectral components generated by the Raspberry Pi's clock generator because it has a lot of phase noise? Or do you just mean that in general that many circuits that generate clock signals can have phase noise but that you don't have any idea about this one in particular?

He doesn't seem to be using a mixer, so I don't think you'll get any spurs caused by mixing products in this case.

I'm no expert obviously but I'd think the phase noise of a PLL driven from a quartz crystal would be negligible.

Re:Turn Raspberry Pi’s GPIO into an FM Transmitter by pifm_guy on Saturday November 12, 2022 @11:04PM (#33579921)
In the case of PiFM, the clock generator is being operated out of spec by a wide margin - it is rated for operation up to 25 MHz, but the code operates it at 100Mhz.

That makes it do some weired things - and I suspect one of those is that when adjusting the clock frequency (by changing the divisors), sometimes it stops oscillating for many microseconds.

Not sure what impact that has in the frequency domain, but I can't imagine it's good...

Re:Turn Raspberry Pi’s GPIO into an FM Transmitter by kragen on Sunday November 13, 2022 @02:57AM (#33580979)
Did you try hooking it up to a spectrum analyzer or a fast scope with FFT?
Re:Turn Raspberry Pi’s GPIO into an FM Transmitter by Johnythree on Saturday November 12, 2022 @11:24PM (#33580026)
A PLL is one of the worst for phase noise. It will have a divider chain which will produce jitter and harmonics of the ref osc, and must absolutely rely on careful tuning of the AFC loop to null out these spurs. And as the filter will be digital rather than analog, there is no chance of optimizing it.

But that is before we get to the modulation. That again will be digital (rather than analog) so by definition will be chock full of jitter, especially if the FM is generated by stepping the clock frequency in finite steps. Not only will this generate large amounts of jitter, but it will generate spurs of the PWM clock over a wide range of frequencies.

Re:Turn Raspberry Pi’s GPIO into an FM Transmitter by kragen on Saturday November 12, 2022 @11:33PM (#33580090)
I see, thanks!