Ghetto 10MHz GPSILTAOALAGKSINS - Page 1
Forum section: electronics / testgear

author: purpose
author_rank: Frequent Contributor
timestamp: December 17, 2020, 03:07:56 pm
content: Afternoon all.I've been playing around with one of those 5 quid, fake Chinese ublox modules and thanks to theHWcave's video on these units, I now know that anything other than whole number divisions of the 48MHz on board oscillator produces jitter.So I thought of dividing to 2MHz (which is rock solid, six zeros when locked) and multiplying X5 with an NB3N502 and then band pass filtering.Would you?Peter

author: Gertjan
author_rank: Frequent Contributor
timestamp: December 17, 2020, 03:52:05 pm
content: NB3N502 data sheet says: "Output Frequency Range:Min. 14MHz, Max 190MHz".....https://www.onsemi.com/pub/Collateral/NB3N502-D.PDF

author: purpose
author_rank: Frequent Contributor
timestamp: December 17, 2020, 04:00:58 pm
content: Thanks Gertjan.... I went straight to the small print.

author: purpose
author_rank: Frequent Contributor
timestamp: January 24, 2021, 08:23:53 pm
content: I present the ggpsdo... No distribution, but I've got nothing to distribute it to yet.Perfect sine wave output.

author: bingo600
author_rank: Super Contributor
timestamp: January 24, 2021, 09:03:58 pm
content: Seems like a fun experiment.But why are you always writingmHz (milli Hertz) , when you mean MHz (Mega Hertz)/Bingo

author: purpose
author_rank: Frequent Contributor
timestamp: January 24, 2021, 09:09:53 pm
content: Don't report me to the police... I beg you.

author: justanothername
author_rank: Regular Contributor
timestamp: January 24, 2021, 09:33:45 pm
content: Quote from: purpose on January 24, 2021, 08:23:53 pmI'd really like to see a close up from above.

author: purpose
author_rank: Frequent Contributor
timestamp: January 24, 2021, 09:45:31 pm
content: Best I can do, I'm afraid.

author: CJay
author_rank: Super Contributor
timestamp: January 24, 2021, 09:51:37 pm
content: Quote from: purpose on December 17, 2020, 03:07:56 pmEven an integer division of the internal clock will result in jitter because the correction isn't a nice clean frequency shift, it drops pulses which is great if all that matters is you have the correct number of pulses per time interval, not so great if you're looking for low jitter and not using it to discipline an external 'clean up' oscillator.

author: iMo
author_rank: Super Contributor
timestamp: January 24, 2021, 09:52:21 pm
content: I always wonder how the below 30ns RMS translates into the output signal quality (without disciplining an OCXO..)..PS: you will get the NEO's output with "a not broken jittery signal" when 48MHz is divided by N, where N=4,5,6,7,8,...The 30nS RMS is a different stuff, however, it comes from above..

author: rfclown
author_rank: Frequent Contributor
timestamp: January 24, 2021, 09:53:38 pm
content: What is the reference on your counter?

author: purpose
author_rank: Frequent Contributor
timestamp: January 24, 2021, 10:00:14 pm
content: I'll have to take your word for that, Clay.The ublox has visible jitter at anything other than whole number divisions, so no visible is fine with me.This is after all an experiment for someone (me) that barely knows the difference between resistors and raspberries.

author: purpose
author_rank: Frequent Contributor
timestamp: January 24, 2021, 10:04:50 pm
content: I'm sure you're right imo, but just seeing a nice 10 meg sine come from a 2 meg square was reward enough for my tiny mind.

author: purpose
author_rank: Frequent Contributor
timestamp: January 24, 2021, 10:05:37 pm
content: rfclown... do I have to open it up?ACT 10.00MHz 9452

author: rfclown
author_rank: Frequent Contributor
timestamp: January 24, 2021, 10:23:27 pm
content: Quote from: purpose on January 24, 2021, 10:05:37 pmNo. The answer is the internal reference. Some counters allow for an external reference.

author: purpose
author_rank: Frequent Contributor
timestamp: January 24, 2021, 10:26:35 pm
content: This one not.

author: CJay
author_rank: Super Contributor
timestamp: January 24, 2021, 11:05:33 pm
content: Quote from: purpose on January 24, 2021, 10:00:14 pmThey aren't terrible, it really depends what you're using the output for, were you seeing jitter on the counter at 10MHz?

author: purpose
author_rank: Frequent Contributor
timestamp: January 24, 2021, 11:42:16 pm
content: With the ublox set at 10MHz, was seeing jitter on the scope and the counter was certainly jumping around.2Mhz was solid on both, so thought I'd isolate the 10Mhz harmonic, but was then seeing instability.Went for the 5X multiplier and band pass. Rock solid on both scope and counter.

author: CJay
author_rank: Super Contributor
timestamp: January 25, 2021, 10:25:30 am
content: Quote from: purpose on January 24, 2021, 11:42:16 pmYeah, that's my experience of them too, even on a known genuine U-Blox, integer divisors are a *lot* better and make them useable in a lot of cases.Worth noting that multiplying it up is a neat trick but does have the disadvantage of multiplying the errors too so the better the signal you put in, the better the signal you get outHaving said all that, I like your project, nicely done

author: purpose
author_rank: Frequent Contributor
timestamp: January 25, 2021, 11:40:55 am
content: Cheers CJay,I won't be winning any awards though.

author: justanothername
author_rank: Regular Contributor
timestamp: January 25, 2021, 12:15:56 pm
content: This actually seems useful enough for me to try to replicate it. I really like the simpleness. Whats the type of the PLL pcb? Can't read it from the picture.

author: purpose
author_rank: Frequent Contributor
timestamp: January 25, 2021, 12:24:40 pm
content: Clock Multiplier Module Frequency Multiplier Module 2-50MHz SMA InterfaceHold on though... The spectrum was much better before I lumped them together, so if you do the same, maybe space them out more and keep the sma stuff.

author: justanothername
author_rank: Regular Contributor
timestamp: January 25, 2021, 01:06:35 pm
content: It looks cleanly done to me. I propably would omit the series resistor from the ublox module to the PLL board, or maybe use the resistor itself as jumper.You may want to try to use different power supplies since most of the USB chargers are mostly switched and noisy. And maybe put everything in a metal case.I don't expect it to be as good as my GPSDO with ovenized crystal, but it is promising, especially if you put everything together onto a cheap single layout this could be made super cheap and may be enough for half of the tasks for an GPSDO.

author: CJay
author_rank: Super Contributor
timestamp: January 25, 2021, 01:21:43 pm
content: Quote from: purpose on January 25, 2021, 11:40:55 amNope, you won't but nor would I, I tend to build things like that to get a job done and then chuck them in a box or tear them down.SMA connectors between boards and some shielding may improve matters but I wonder how good the 2MHz input looks on that spectrum analyser and if it shows the same pattern 'divided by 5'?If you want to explore and experiment more it's worth thinking about what you intend to achieve and how the different approaches work, all the various 'frequency standards' have advantages and disadvantages, some are great short term, some are pretty awful.FWIW, it's not that much more difficult to 'discipline' a cheap OCXO and get a really clean signal.It is however considerably more difficult to discipline it well

author: tszaboo
author_rank: Super Contributor
timestamp: January 25, 2021, 01:26:44 pm
content: Is this a GPSDO?Afaik, those Ublox modules have a TCXO in them, where the 24MHz is not disciplined ( derived/compensated ) with the GPS signal.The 1 PPS signal is, and you need to use that with the usual controller to make it 10MHz.

author: purpose
author_rank: Frequent Contributor
timestamp: January 25, 2021, 01:28:53 pm
content: Justanothername,That resistor is going to the led. I lost the smd part in the carpet!I just separated the pcbs, powering the multiplier with its own supply and things are looking as they were.I'll work on a pcb layout and share if it improves things.

author: purpose
author_rank: Frequent Contributor
timestamp: January 25, 2021, 01:41:23 pm
content: Quote from: CJay on January 25, 2021, 01:21:43 pmCJay,I'm just a cheap tinkering old man. I just love to mess around.I'm going to reinstate all the connectors and start spectrumizing for your delectation... hold my beer.I know the scope likes 2Mhz, but I never shoved the spectrum on it.The scope hated the 5X signal until I loaded it with 50R, but I'll get busy with a forthcoming slide show.Cheers

author: purpose
author_rank: Frequent Contributor
timestamp: January 25, 2021, 01:46:32 pm
content: Quote from: NANDBlog on January 25, 2021, 01:26:44 pmI'm just farting around, Mr. NANDblog and you just made me poop. I may as well throw it in the dog.

author: tszaboo
author_rank: Super Contributor
timestamp: January 25, 2021, 02:06:03 pm
content: Quote from: purpose on January 25, 2021, 01:46:32 pmWhat's with the attitude? I think I was civil when asking the question.

author: purpose
author_rank: Frequent Contributor
timestamp: January 25, 2021, 02:18:31 pm
content: It was an attempt at humour. Obv failed miserably.

author: justanothername
author_rank: Regular Contributor
timestamp: January 25, 2021, 06:55:19 pm
content: Quote from: purpose on January 25, 2021, 01:28:53 pmI guess the PLL can work with 3V3, so a low noise LDO like the TPS79333 may be used. A small pcb layout would be a nice thing to share! If you want to put something in just because you can, then go for a small battery charger to make it a portable device. The MCP733811T is an easy part to put in. VBAT is the input for the regulators then.

author: shakalnokturn
author_rank: Super Contributor
timestamp: January 25, 2021, 07:08:40 pm
content: Quote from: purpose on January 24, 2021, 09:45:31 pmOhhh...!Ali-patch-art-work!

author: purpose
author_rank: Frequent Contributor
timestamp: January 25, 2021, 07:26:49 pm
content: C'est vrai.

author: purpose
author_rank: Frequent Contributor
timestamp: January 25, 2021, 07:41:06 pm
content: justanothername,Battery power was my first thought. Leaving off the ftdi and putting on a programming header for it, was another, but my ftdi has just given up, so might have to get another type in to try.cheers

author: justanothername
author_rank: Regular Contributor
timestamp: January 25, 2021, 07:55:26 pm
content: I'd say put it in, you can always choose not to solder it in. Looking forward to the result.PM me if you need schematic design snippets for the ublox receiver with supercap instead of the battery.

author: purpose
author_rank: Frequent Contributor
timestamp: January 25, 2021, 07:58:51 pm
content: Will do.

author: TheSteve
author_rank: Unknown
timestamp: January 25, 2021, 09:15:07 pm
content: Quote from: NANDBlog on January 25, 2021, 01:26:44 pmLady Heather would not be impressed, we all know she loves to disciplineMaybe this is more of a "GPS Derived Output" device.purpose - btw, not knocking it all, I love DIY projects. It might be "Ghetto" as you call it for now, but overtime you can grow/improve it into very nice device.

author: purpose
author_rank: Frequent Contributor
timestamp: January 26, 2021, 12:38:39 am
content: Very encouraging, Steve. I'll have to get busy.

author: rfclown
author_rank: Frequent Contributor
timestamp: January 26, 2021, 03:08:27 am
content: Quote from: purpose on January 26, 2021, 12:38:39 amot not. I would never discourage you from turning this into some super duper mind bending oscillator, but... I like the fact that this is simple and cheap. I've got a GPSDO, and I'm even waiting on a second one (eBay, China, don't hold my breath). But for most applications of mine, I don't need that combination of long term and short term accuracy. I like the idea of a relatively cheap reference that I know has good absolute long term accuracy. I'd be interested in characterizing what the phase looks like in time. Does it jump occastionally to keep it in line with the 1pps?

author: purpose
author_rank: Frequent Contributor
timestamp: January 26, 2021, 01:16:50 pm
content: Quote from: rfclown on January 26, 2021, 03:08:27 amCan't say I've noticed it, but how long would I have to stare at the scope to discover such behaviour? Cough.It does however have a 20mV, or so amplitude modulation that I'd like to iron out.

author: justanothername
author_rank: Regular Contributor
timestamp: January 26, 2021, 01:21:33 pm
content: Quote from: rfclown on January 26, 2021, 03:08:27 am+1 for simplicity and portability. Make the barrier low for others to reproduce your nice little creation, then they can help you classify it thoroughly.

author: purpose
author_rank: Frequent Contributor
timestamp: January 26, 2021, 01:56:04 pm
content: Simple (and cheap) was the goal, justy.WRT battery...18650, or bigish li-po?On board patch antenna, or sma in?I love these design by committee projects.

author: justanothername
author_rank: Regular Contributor
timestamp: January 26, 2021, 02:05:52 pm
content: Quote from: purpose on January 26, 2021, 01:56:04 pmI'd say just a JST connector, you can connect a li-po or a li-ion, the charger won't care.Quote from: purpose on January 26, 2021, 01:56:04 pmSMA with bias if you ask me. Patch antennas are a little difficult to get good performance out of them, you need a big enough ground plane, had some serious troubles with them.Furthermore, you mostly want to use it inside a room with the antenna outside. I'll send you a schematic screenshot via PM for a proven solution.Quote from: purpose on January 26, 2021, 01:56:04 pm

author: purpose
author_rank: Frequent Contributor
timestamp: January 26, 2021, 02:12:05 pm
content: CJay's slideshow.2MHz out of ublox into 50R. Ignore Rigol's counter. Trust me.Same on the spectrum.2MHz X5 no load.2MHz X5 into 50R10MHz sine post BPF

author: purpose
author_rank: Frequent Contributor
timestamp: January 26, 2021, 02:25:46 pm
content: Mr. Justy,I'd say just a JST connectorSo off board? I thought a li-po under the pcb would have been the trick, but a JST makes sense.I'll send you a schematic screenshot via PM for a proven solutionSend away.

author: geggi1
author_rank: Frequent Contributor
timestamp: January 26, 2021, 08:58:16 pm
content: These UBLOX gps modules have a clock that runs on 48Mhz.The frequency on the puls output must be a even number of 48 to get the cleanest square puls out.Frequencies like (Mhz) 24 , 16, 12 , 8 , 6 , 4 , 3 & 2 are the cleanest frequencies.

author: purpose
author_rank: Frequent Contributor
timestamp: January 27, 2021, 12:35:40 pm
content: CJay,The one thing you asked for (I think), I omitted. So ere ya go.Post 5X multiplier, no band pass.Your hint of filtering pre multiplier has just sunk in.

author: rfclown
author_rank: Frequent Contributor
timestamp: January 29, 2021, 04:59:24 am
content: I tried this... sort of.I used u-center to change the 1pps output of a ublox 7M module to 2MHz. Do you know the commands to do this without u-center? I downloaded the document, but am too lazy to decipher.I have the 10MHz outputs of my two eBay GPSDOs going to a scope. They are solid compared to each other. If I trigger off the 2MHz signal, I see that it is jittering compared to the others. You see the same thing when you look at the GPSDO 1pps output compared to the 10MHz output. The 1pps output has good long term stability, but it has jitter. You can't see it until you compare it to a signal that doesn't. I am using persistence to show the jitter in a picture.

author: rfclown
author_rank: Frequent Contributor
timestamp: January 29, 2021, 05:08:10 am
content: Setup. No persistence.

author: purpose
author_rank: Frequent Contributor
timestamp: January 29, 2021, 12:57:56 pm
content: rfclown,Ah, the old trigger deception. I was hoodwinked.In my defence, I've got nothing between my ears.If you haven't torn it down yet, can you in TP5, set both frequencies to 2MHz and note any difference?Do you know the commands to do this without u-center?I do not.

author: rfclown
author_rank: Frequent Contributor
timestamp: January 29, 2021, 03:28:48 pm
content: Quote from: purpose on January 29, 2021, 12:57:56 pmDo you mean the two different frequency entries in the TP5 window? I didn't know what the difference was between the two. I was just trying things until I saw 2 MHz come out. I think I made the second entry 2 MHz and not the first. I'll try it when I get home from work. it's not "torn down", the rat's nest mess is as I left it.

author: purpose
author_rank: Frequent Contributor
timestamp: January 29, 2021, 06:48:38 pm
content: Ha... my bench is far worse.Do you mean the two different frequency entries in the TP5 window?Tis exactly what I mean.

author: rfclown
author_rank: Frequent Contributor
timestamp: January 29, 2021, 09:37:16 pm
content: Quote from: purpose on January 29, 2021, 06:48:38 pmI doubt it. You're only seeing a few inches of space around the scope.I've never had a neat workbench, home or work. Back in the 1990's someone came around at work taking pictures:http://www.saolson.com/pics/bench/moto.jpg

author: purpose
author_rank: Frequent Contributor
timestamp: January 29, 2021, 10:38:06 pm
content: Neatness is overrated.They say.. tidy space, tidy mind. I like a messy mind.

author: purpose
author_rank: Frequent Contributor
timestamp: January 30, 2021, 12:26:37 am
content: Just put a quick and dirty low pass before the multiplier and cleaned it up a little more.

author: rfclown
author_rank: Frequent Contributor
timestamp: January 30, 2021, 12:45:27 am
content: Quote from: purpose on January 29, 2021, 12:57:56 pmNo difference. Changed all the different settings, and no change.

author: purpose
author_rank: Frequent Contributor
timestamp: January 30, 2021, 12:47:13 am
content: She'll just have to be a bit jittery.Ta

author: rfclown
author_rank: Frequent Contributor
timestamp: January 30, 2021, 04:55:24 am
content: Different views of the 2 MHz signal. I measured with a E4406A which can show IQ (down converted to DC) signal. This will show instantaneous phase versus time.The first view is polar. The signal is not drifting in frequency, but the phase is varying several degrees. If the signal was perfect, the plot would be a dot on the graph. If the signal was drifting in frequency, the data would be constantly rotating around a circle (which it isn't). It's jittering back and forth a small degree. This is the same as the spread seen in the oscilloscope persitence picture of the time waveform.In the polar plot, I is the x axis, and Q is the y axis. The amplitude is SQR(I^2+Q^2). The second view is I and Q versus time. The amplitude is staying constant, but the phase makes a jump about every 2.476msec. Looking at the next view, it shows that occasionally there is a double jump, which I found highly unexpected. The double jumps aren't all the same.A spectral plot show something at 403.909Hz. this is the phase jump frequency. Why this frequency (or time)I didn't look at other output frequencies to see if this changed. I might later.Anyway... That's what my ublox 7M does when programmed for 2 MHz output.I'm using one of my GPSDOs as the reference for the E4406A. If I measure the other GPSDO, it shows a pretty much a dot on the polar axis. It isn't perfect. There's a small about of phase noise. See views of GPSDO 10 MHz waveform (referenced to the other GPSDO). I measured the GPSDO first to see if it was a suitable reference for this test. If I had seen jitter, I would have had to use a different kind of reference (like OCXO) which centainly would have a frequency offset, but I still could have seen the phase jumps. That's the thing with measuring this kind of stuff. You've got to have a reference to base it against. That's why time nuts can go crazy. You're always wondering if your best reference is good (because you don't have a better one to measure against). At least with GPS the long term stability is based on a bunch of expensive government hardware that wasn't bought on eBay.I still find your project interesting, but we should find a different acronyn for it. When people asked if it's a GPSDO... well... it is sort of, but the time constant is like 2.5msec instead of 1000sec. (only 5 orders of magnitude different).RFDO (really fast disciplined oscillator)JDO (jitter disciplined oscillator)ILTAOALAGKSINS (inexpensive long term accuracy oscillator as long as the government keeps cesium in the sky)

author: 2N3055
author_rank: Super Contributor
timestamp: January 30, 2021, 08:24:05 am
content: I would call it GPSCorrectedOscillator - GPSCO

author: MIS42N
author_rank: Frequent Contributor
timestamp: January 30, 2021, 12:02:24 pm
content: Quote from: rfclown on January 30, 2021, 04:55:24 amMy guess a beat between the not quite accurate 48(?)MHz clock in the GPO module, and the accurate GPS signal.Please don't call it Budget GPSDO, I want to use that for my currently almost developed project [seehttps://www.eevblog.com/forum/projects/lars-diy-gpsdo-with-arduino-and-1ns-resolution-tic/msg3334250/#msg3334250]

author: purpose
author_rank: Frequent Contributor
timestamp: January 30, 2021, 01:13:44 pm
content: rfclown,That is what I would call thorough. Thank you very much.There really was no need to travel back to 1969 in the process, but many thanks for dusting off the DeLorean.I shall henceforth rename it the ITBYG (into the bin you go).Now I'm wondering if I should get hold of a T version, for a play.Cheers

author: purpose
author_rank: Frequent Contributor
timestamp: January 30, 2021, 01:22:12 pm
content: Quote from: MIS42N on January 30, 2021, 12:02:24 pmWouldn't dream of it, MIS42N.OK if I call it Marjorie?Ta

author: purpose
author_rank: Frequent Contributor
timestamp: January 31, 2021, 12:34:08 am
content: Well, well, well.I plugged it into something other than a scope, or a spectrum analyser and it works a treat.Pulled my Siglent sig gen into line with the gps (1Hz difference) and I couldn't be happier.

author: MIS42N
author_rank: Frequent Contributor
timestamp: January 31, 2021, 10:37:27 am
content: Quote from: purpose on January 30, 2021, 01:22:12 pmI was thinking pedantically, where is the oscillator being disciplined? It's more a GPS disciplined frequency synthesiser. I'm thinking the u-blox creates the 2MHz output (are you still using 2MHz - talk of 4MHz * 5 / 2 earlier) as a form of PWM using its 48MHz and inserting or deleting an extra bit now and then to make a more accurate 2MHz from a not so accurate 48MHz. Then it goes through a PLL (which I guess is really a disciplined oscillator - the VFO) to make 10MHz.Maybe its a GPSDFSAO - a GPS disciplined frequency synthesiser and oscillator called Marjorie.And you are happy with +-1Hz, job done. I have programmed my SRCOIB (semi random collection of inexpensive bits) to store the control voltage of the OCXO in non volatile memory and use it until there's GPS. If I turn it on without GPS and leave it for 15 minutes, it settles to 10MHz+-0.1Hz (and if it is about the same temperature as the day it was calibrated, +-0.01Hz). I'm still trying for better (why? because it's interesting. I have no use for a GPSDO at all).

author: purpose
author_rank: Frequent Contributor
timestamp: January 31, 2021, 01:15:09 pm
content: MIS42N,Maybe its a GPSDFSAO - a GPS disciplined frequency synthesiser and oscillator called Marjorie.Chuckle.Where is the oscillator being disciplined?From others' analysis, it sounds like an occasional kick from the heavens.Are you still using 2MHz?I am. Into a 2MHz low pass- into 5X multiplier- into 10MHz band pass.And you are happy with +-1Hz?Considering I didn't know you could turn a square wave into a sine wave, let alone multiply it... I'm delighted.Of course your contraption sounds amazing and one day I'd love to check it out.why? because it's interesting. I have no use for a GPSDO at allSame... I just love to tinker.Cheers.

author: purpose
author_rank: Frequent Contributor
timestamp: March 13, 2021, 02:49:23 pm
content: You lot thought you had got rid of me, but no.Having found that crystal filters are a thing and availed myself of a NanoVNA (what a fantastic little tool), I made myself my first crystal filter.-3dB 400Hz bandwidth 10MHz bandpass...Feeding 10MHz from the gps module into the filter gives me this...Not quite there, but almost.Peter

author: rfclown
author_rank: Frequent Contributor
timestamp: March 13, 2021, 10:51:18 pm
content: I just got a NanoVNA S-A-A-2 in the mail today. What a coincidence. I've actually got HP VNAs, but wanted to see what these things are capable of.

author: purpose
author_rank: Frequent Contributor
timestamp: March 13, 2021, 11:17:26 pm
content: Quote from: rfclown on March 13, 2021, 10:51:18 pmI'm sure you're going to love it.