u/hapemask

Image 1 — DIY Raspberry Pi Oscilloscope
Image 2 — DIY Raspberry Pi Oscilloscope
Image 3 — DIY Raspberry Pi Oscilloscope
Image 4 — DIY Raspberry Pi Oscilloscope
Image 5 — DIY Raspberry Pi Oscilloscope
Image 6 — DIY Raspberry Pi Oscilloscope
Image 7 — DIY Raspberry Pi Oscilloscope
Image 8 — DIY Raspberry Pi Oscilloscope

DIY Raspberry Pi Oscilloscope

As a follow-up to the toy oscilloscope I designed here, I designed and built something that more closely resembles a real oscilloscope! I included some shots of the build process, all done at home by hand with a hot air station and a preheater.

It has 2 channels, each running an ADC3908 off of a shared clock at anywhere from 1MS/s to 62.5MS/s. I wanted to use the 125MS/s version of the part but since I'm still using the Pi for all of the data acquisition and processing, this is about as fast as you can possibly go.

The front-end was supposed to have ~30MHz of analog bandwidth but since I had to remove the filter caps after assembly, I think theoretically it has whatever the bandwidth is at the ADC inputs. All of the analog components before the ADC have higher bandwidth.

It supports input full-scale ranges from +/-33mV to +/-180V, though I'm hesitant to plug something I made into mains power. It should be isolated as all power comes from the Pi, either through a wall plug or USB powerbank, but I'm still wary. I'll probably try it one day though.

It wound up costing way more than I would have hoped, and I probably chose some components that were more expensive than necessary. For example: the two linear regulators I used for the analog supply rails are pricy because of their very low noise, but my actual noise levels aren't great in the end. I think the total BOM cost was ~$150 if you include the PCB and you can get a way faster real scope for that price. It was still a great learning project though.

u/hapemask — 3 days ago

Switching Converter Simulation Issues

I'm trying to plan out the design for a homemade power supply, and have been simulating blocks of the design to confirm that they work.

I successfully ran a simulation of the positive block (which uses an LT8640S). I even added real values for ESR and ESL: ESR from SimSurfing and ESL from typical values for the given package (SimSurfing says a 1210-package cap has 100pH of ESL which is way lower than the values people quote for an SMD part of that size). When I add real parasitics, the output ripple is of course higher, but within reason. 10-20mVpp in most cases.

When I simulate the negative block though, the results seem unreasonably bad. I'm looking at the MAX17577 to provide the negative output channel, and I created a similar LTspice simulation for it like I did for the positive channel. Everything works fine when I don't include ESL for any of the input/output caps, but as soon as the output caps have any ESL the output starts ringing with huge swings. I attached a simulation example image, along with the schematic I used. The switching frequency should be close to 1.5MHz.

I'm still on my EE learning journey, but these results don't make sense. Before running this sim with ~70uF of output capacitance, I followed the datasheet guidelines for output capacitor selection, which results in a much lower output capacitance, and got even worse results. Am I doing something obviously wrong here?

https://preview.redd.it/iw17b6c1zc1h1.png?width=1494&format=png&auto=webp&s=f0f150635d69620be4a3a986dec63aabf03dc253

https://preview.redd.it/b11ci715zc1h1.png?width=1490&format=png&auto=webp&s=dd1642b8d0b651174ae4497c6941bf89f63f8361

https://preview.redd.it/ddom3b2vub1h1.png?width=1504&format=png&auto=webp&s=de589db74aa3a82729c3000c8c18dcd9e395037c

https://preview.redd.it/dtmbpuhxub1h1.png?width=2224&format=png&auto=webp&s=39805b357521102a6993953cddb1f6a003363bb1

reddit.com
u/hapemask — 8 days ago