Closed gkasprow closed 5 years ago
Nice! When can you ship us one to play with?
Looks great.
@hartytp let me make sure all critical parts work. So far power supplies work. POE works I want to check if CPU can be programmed and if AFE works, then I will send it to you.
STM32 works in DFU mode
:+1:
JTAG works as well. I managed to compile and burn simple init programe using Atollic IDE
I found one issue with ADC AFE, fixed it and now it works fine. I will send to @hartytp the boards tomorrow.
Ethernet PHY also works.
Whoo! Nice, thanks Greg.
Out of curiosity, does it come with a panel? I didn't get panels for my Thermostat boards yet...
yes, they are preparing panels. For Thermostat there is panel option or stand-alone enclosure option. Which one do you want?
What's the standalone option? For now I'd probably take the panel and then put it in a standard euocard mini-rack using off-the-shelf FPs to break out the IDC to D-types.
The board fits handy aluminum Hammond enclosure.
Nice! Can you add that PN to the Wiki please (don't think I have write access).
Let's finish the conversation off by email though.
@gkasprow before we commit to using this PoE module in too many designs, we should look into the noise properly and check it's actually up to our spec (and, e.g. that we don't need more screening/filtering/CMCs/etc)
This PoE module has already LC filter at its output. But it may cause noise injection between input and output. We may need to add CMC at the input and some cap between input GND and output GND to bypass the noise source. How can I recreate the measurement in my lab?
@jordens can you post the code you used to take that data? If not I'll hack something up.
I don't have it anymore. It was a quick and early test to check data integrity and network stack fundamentals. Just buffer and packetize the iir cycle number and all the four channels (2*(1+4) bytes at 500 kHz are just 40 Mb/s).
Do you have the binary I could burn in FLASH and try?
@jordens am I right in thinking that you also saw noise on the DAC output due to the PoE? Was that visible with the DAC in its power-on default state? If so, that's probably the easiest way for @gkasprow to debug this.
@gkasprow I've loaded @jordens firmware from https://github.com/quartiq/stabilizer
I hacked the firmware to set dac0 to 0V (0xffff >> 1) and dac1 to max (0xffff). Looking at both channels on a scope.
With a 12V supply (no PoE) I see
Same but with a PoE switch instead of the 12V supply
@gkasprow there is some ~150kHz noise on both DAC channels:
So, looks like SMPS noise on the reference. Any suggestions as to the culprit @gkasprow , or should I dig around with a scope probe?
Did you try to see what you measure on the crocodile GND clip when it is attached to the Sampler GND? In this way, you can observe the noise induced in the scope ground loop.
Did you try to see what you measure on the crocodile GND clip when it is attached to the Sampler GND? In this way, you can observe the noise induced in the scope ground loop.
(a) I'm using a SMA from Stabilizer to the scope rather than crocs (b) if it were a ground issue then the noise wouldn't scale with the DAC output voltage
There definitely is some noise due to the PoE converter. Prob not really surprising, but resting a finger on the power inductor's case gives me a huge amount of noise on the outputs
Try bypassing the output CMC. I vaguely remember that that made a difference.
@jordens it's not obvious to me how that would explain the issue, given that the noise scales with the DAC output. Since I have no load current, I'd expect the CMC pickup to be linear.
And (obviously) keep the board underside away from things like an antistatic mat.
See also #17 for my report of the dcdc noise. I had them different frequencies but similar amplitude.
And (obviously) keep the board underside away from things like an antistatic mat.
And try not to spill too much tea on it while taking measurements etc
@gkasprow I wasn't able to find an obvious source of this noise. It's also a little tricky since there are quite a few noise sources on the PCB so whenever I probe any node the pickup is so high I can't see the signal I'm looking for.
Do you think you can have a look at this? Stick the DAC output onto a scope via an SMA. So long as it doesn't power on to 0V you should be able to see this.
I measure 1.8LSB RMS for both G=1 and G=10 (same as stabilizer), so no evidence of anything untoward there. Good!
~@gkasprow do you think the DAC output filter is slightly unstable? Otherwise I'm surprised to see so much noise on the DAC and not on the ADC.~ Doesn't explain the roughly linear scaling of the noise with the DAC output voltage
Sure, I will have a look at this. I don't have any stabilizer right now. I will do it at home, which is ~20km from Warsaw center where I don't have interferences which make any low noise measurements at WUT difficult.
Thanks!
AFAICT Stabilizer is the biggest noise source (plenty of SMPSs etc) so no need to worry too much about that...
@gkasprow I've hacked @jordens' firmware to dump samples at max rate over ethernet. Let me know if you want it and I'll give it to you, otherwise I'll tidy before posting (I also have some vague plans to combine this with PRNG noise added to the DACs for FFT-based transfer function measurements).
Anyway, here is the data I see with:
I see 1.4 LSB RMS noise with a basically white spectrum. I don't see any evidence of any particular noise spurs...Good!
There are some spurs at around a few kHz, which may be aliassed down from higher frequencies and a small spur around 190kHz.
Same but PGIA gain 1, not much change...
So, all in all, this looks really good apart from the noise on the DACs. Good job @gkasprow Thanks also to @jordens for the lovely firmware.
Same but with some filtering and log log axes. I suspect the few kHz spurs are an aliased version of the spurs @jordens saw here https://github.com/quartiq/stabilizer/issues/9
At a PGIA gain of ten, I expect a LSB of 30uV, not the 300uV shown in https://github.com/sinara-hw/Stabilizer/issues/9#issuecomment-499465401 . Could you double check that?
@jordens yes, sorry, I forgot to rescale the voltage plots after changing the PGIA gain.
The 1.8LSB RMS number is correct for both gains, but the voltage conversions in the plots I posted are only correct for G=1...
@gkasprow the code I used for these tests is here: https://github.com/OxfordIonTrapGroup/stabilizer/tree/adc_log
When you connect to port 1234 it will stream raw samples at you.
@gkasprow let me know if you want me to send you a stabilizer card to look at the DAC noise issue...
Technosystem has one piece that they can lend me.
:+1:
Step response looks good. 600ns rise/ fall
Given that much of the design is well tested from other designs like Sampler I’m now happy that all works well apart from the dac noise issue. Once that’s solved let’s push out a new release.
The Stabilizer board arrived!