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

Glitchy output on RaspPi 3 and 1 without -c 1 #29

Closed
natevw opened this issue Aug 10, 2016 · 7 comments
Closed

Glitchy output on RaspPi 3 and 1 without -c 1 #29

natevw opened this issue Aug 10, 2016 · 7 comments

Comments

@natevw
Copy link

natevw commented Aug 10, 2016

When I do sudo ./rpitx -m VFO -f 1000 is it right to expect basically a square wave at 1000 kHz?

Instead, I get really sporadic pulses, as shown in this video.

Is this some sort of Pulse-Density Modulation trick or similar, or is something wrong? Mostly just trying to wrap my head around this. I am able to hear the FM sample via a broadcast receiver but when I lower the frequencies to what my 100MHz scope is supposed to be able to pick up, I don't see what I would expect.

@natevw
Copy link
Author

natevw commented Aug 11, 2016

After trying just the disable_pvt=1 by itself, I tried adding all the settings recommended in #24 (comment). Still pretty much the same behavior, maybe a tiny bit better but could be my imagination.

Interestingly, after changing the settings when I run vcgencmd get_config disable_pvt it says "disable_pvt is unknown"! The other settings from #24 discussion are shown, e.g. it shows me that "force_turbo=1" and the freq settings as expected. But not disable_pvt.

I found raspberrypi/firmware@ac0c0bf which commit message says this option might be removed?

@natevw
Copy link
Author

natevw commented Aug 11, 2016

The VFO mode seems to produce a nice square wave for frequencies between about 2.5 kHz and 500 kHz. Somewhere above there, the glitches start getting worse and worse. (Below 2.5 kHz seems broken, ends up with glitchy signals way higher in frequency, like 560 kHz when requesting 1 kHz.)

I wouldn't rule it completely out, but I don't think this is just a triggering/scale artifact on my oscilloscope. I can leave the horizontal scale the same between 500 kHz and 800 kHz. At 500 kHz it's not "rock solid" but it's pretty good. At 800 kHz the glitching is very apparent.

I'll share a video via Twitter again and update this when it's posted.

@natevw natevw changed the title Glitchy output on RaspPi 3 Glitchy output on RaspPi 3 and 1 Aug 11, 2016
@natevw
Copy link
Author

natevw commented Aug 11, 2016

I tried my card in a Raspberry Pi 1 — same things! (I did do make clean in src and rebuild just in case, but didn't help either.)

So I ran git bisect.

screen shot 2016-08-10 at 11 04 00 pm

After f342332 was applied, I start seeing the "glitches" at e.g. 27125 kHz VFO output, and FM transmit at 103300 gets very very distorted. If I checkout a274a8f immediately before the "Add GPCLK output" commit, then the output FM example at 103300 it is actually fairly clean in the local spectrum — a couple images on each side (and probably harmonics of course) but nothing like the mess it makes after the commit bisect identified as bad!

UPDATE: after commenting out all the /boot/config.txt lines I added, still seems like pretty good output reverting back to a274a8f.

@natevw
Copy link
Author

natevw commented Aug 12, 2016

As suggested via Twitter, I tried sending the signal to GPIO 04 (pin 7) by adding the -c 1 option on the latest master currently ca94b38. This actually looks really good, even compared to a274a8f!

screen shot 2016-08-11 at 9 58 00 pm

It's certainly not perfectly clean on the RTL-SDR "spectrogram" but looks the best I've seen it yet, from 5 kHz on up, when viewed on the oscilloscope. I'm not sure exactly what this option does (okay — I still am quite fuzzy on how the original PE1NNZ prototype even works :-) but it seems to be the right one right now!

@natevw natevw changed the title Glitchy output on RaspPi 3 and 1 Glitchy output on RaspPi 3 and 1 without -c 1 Aug 12, 2016
@tgeorgiop
Copy link

Hello. I tried sudo ./rpitx -m VFO -f 1000 and I take nice square waves without glitches

ds1z_quickprint3

@F5OEO
Copy link
Owner

F5OEO commented Aug 27, 2016

@freebil raspberry model , Linux version ?

@tgeorgiop
Copy link

@F5OEO Raspberry pi 3 with the latest raspbian jessie lite.

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

No branches or pull requests

3 participants