Conversation

Baby oscilloscope! šŸ’–
@benhencke brought their tiny SAOScope to the party at Ctrl-H last night! It can do 1 Ms/s at 12 bit. The knobs work including trigger!

2
9
0

@leonerd @oshpark @benhencke Nice option with display and local control. But if you want really cheap scopes, function generators, counters etc. then the #cvut team from another department provides firmware for cheap STM32, PICO and even Arduino (sic, some people are not willing to move forward and colleagues support them too) boards based Software Defined Instruments. For the PC side, see DataPlotter (github , with Nucleo F303RE 5 Ms/s 12 bit, STM32L412KB 2x 5 Ms/s, with Arduino 15 kS/s, with Raspberry PICO 1x 500 KS/s or 2x 250 kS/s) and older zero_elabviewer for even more boards. All firmware is available for download and documented in theses (unfortunately usually in Czech language, but colleagues or me can help).

0
0
0

@oshpark Also credit to @maketvee for the aesthetics! He did the case design, knobs, found the pots, and went with the dual color oled!

1
0
0

@benhencke @oshpark @maketvee This is super cool! I’m finally getting into (low-end F0,G0) STM32 after 20+ years of other MCUs. Any tips on doing STM32 on Linux/MacOS on command-line or is it best to use STM32CubeIDE?

1
0
0

@todbot @oshpark @maketvee Firmware for that is here: https://github.com/simap/SaoScope

My process is to use cubemx, figure out what pins do what, configure most of the basics, configure for LL drivers. Export as a cmake project, then use the STM32 vscode extension to import it.

Even the LL drivers are kinda bloaty, but not too bad. I usually go by the reference manual and datasheet, since that has the most information, then figure out what LL calls to make, or just poke registers as needed.

1
1
0

@todbot @oshpark @maketvee
I've taken to putting the cube pinout in kicad, shrunk down inside the MCU symbol.

It's possible to use the chips without the LL drivers, just the peripheral headers, etc. but having a cube generated project with them is handy because there's a lot of little clocks and enable bits that have to get set that are easy to miss.

1
0
0

@todbot @oshpark @maketvee I don't do much on the cli, but I do run a little script for production flashing chips that can be seen here: https://www.youtube.com/watch?v=mRDbnhS1aow

0
0
0