Spark Logic

$10 O-Scope revisited

STM32F103C8T6 LQFP48 Pinout
ILI9341 MSP3223 · 14-contact header Pinout

Over the last few days I’ve been playing with Ray’s STM32STM32Microcontrollers and processors…Map magic glue code, ethernet compiles, just WARNING: library LwIP claims to run on [ stm32 ] architecture(s) and may be incompatible with your current board which runs on [STM32]…View in hardware catalog Oscilloscope idea.

Image

Some preliminary results are available here..

https://github.com/pingumacpenguin/STM3 … ontruction

My take on the Scope Sketch is here..

https://github.com/pingumacpenguin/STM32-O-Scope

Its a fun little project and well worth building just for the entertainment value. Currently bandwidth is a little limited, but with a little extra effort it would be possible to make a fully functional 2MHz Scope for next to nothing. Ideal for probing i2c, audio and other low speed signals.

EDIT: We managed to squeeze the maximum speed out of the ADC, read further through the thread for details. The github code includes all of the enhancements made of the course of this thread.

Replies20

Wed Mar 30, 2016 12:49 am

rexnanet wrote:rexnanet wrote:
With an overclocked ADC we must keep the 1.5clk on the sample time to allow a proper sampling of the signal.

Wed Mar 30, 2016 1:19 pm

Could it be that the PIg-O-Scope has gone commercial?
Amazon here.

This kit uses ARM Cortex-M3Cortex-M3Microcontrollers and processors…get this error arm-none-eabi-g++: error: unrecognized command line option '-CC -mcpu= cortex-m3 ' RogerClark Sun May 15, 2016 6:25 am Fixed it @vassilis do a pull from my repo to…View in hardware catalog processor (STM32F103C8STM32F103C8Microcontrollers and processors…017 8:28 am I am trying to get Phono’s library working on a MCP2551 and a blue pill ( STM32F103C8 ), I have it connected to a active CANBUS, and I have successfully received and s…View in hardware catalog ), and includes a 2.4-inch color TFT
Pig-O-Scope.jpg
Pig-O-Scope.jpg (153.69 KiB) Viewed 1724 times

Wed Mar 30, 2016 3:57 pm

RogerClark wrote:You could modify the SPI DMA transfer to be non blocking, and to generate an interrupt when the transfer is complete, as this would allow the core of the cpu to go off and do other stuff while the spi transfer was happening.

But I dont suppose there is much that the cpu could do while waiting for the spi transfer to finish?

Wed Mar 30, 2016 4:28 pm

ahull wrote:I’ve seen a few of sellers offering that scope, both assembled and as a kit. It looks like quite a fun toy, but I don’t know if it is open source/open hardware.
<…>

Thu Mar 31, 2016 10:01 am

mrburnette wrote:

Well, it certainly does not come with a case for the < $30 they are asking … so, it certainly is open enclosure :roll:

Ray

Fri Apr 01, 2016 9:26 am

ahull wrote:I’ve seen a few of sellers offering that scope, both assembled and as a kit. It looks like quite a fun toy, but I don’t know if it is open source/open hardware.

Fri Apr 01, 2016 12:45 pm

It’s kind of interesting about that DSO138DSO138Modules, instruments and finished devices…kinda. … scope.html M-17 “DLO-138” – Alternative open source firmware for well known DSO-138 ! This is from our forum here (Thank You, willfly1 !!): It can be used on original DSO…View in hardware catalog . If I remember right the red version is made by the company that originated it. But there is a knock-off version that is black. Of course I didn’t know that until I got one of the black ones. But I will say that it didn’t work after I got it put together and contacted them and they sent me a new one. Of course I think they get this stuff dirt cheap so no skin off their backs. Okay. I found my email.

DSO138DSO138Modules, instruments and finished devices…kinda. … scope.html M-17 “DLO-138” – Alternative open source firmware for well known DSO-138 ! This is from our forum here (Thank You, willfly1 !!): It can be used on original DSO…View in hardware catalog kits from Sainsmart is counterfeit product. Please see http://www.jyetech.com/Products/LcdScope/e138.php. If you have any other questions please feel free to contact us.
Best regards,
JYE Tech Sales

Sat Apr 02, 2016 12:41 am

There are a lot of clones of the DSO138DSO138Modules, instruments and finished devices…kinda. … scope.html M-17 “DLO-138” – Alternative open source firmware for well known DSO-138 ! This is from our forum here (Thank You, willfly1 !!): It can be used on original DSO…View in hardware catalog –cheapest on ebay is around the $17 mark.

Sat Apr 02, 2016 2:09 am

I guess it could also be usable as a general purpose board with LCD display, but I’m not sure its especially good value, at $17

(Considering the cost of the components is probably less than $10.)

Wed Apr 06, 2016 3:49 pm

Still working on getting a stable trigger but it’s improved (maybe a bit of hysteresis because of ADC noise).

Maybe I’ll make a small video of the improvements. I think it’s a bit faster overall.

The Adafruit modified ILI9341ILI9341Displays, touch panels and LEDs… shows on my screen. I have used and programmed a few different types of SPI screens( ili9341 , st7735) using Python very successfully and these parallel screens have many of the…View in hardware catalog library is really fast! 34ms for a fillscreen is really good = 36Mb SPI speed. I thought SPI could only get to 18Mb using “normal” settings. Maybe somewhere there’s a DIV1 setting for the SPI module clock…?

Wed Apr 06, 2016 8:38 pm

processor clock is 72mhz, so DIV2 is 36mhz

High speeds are helped by use of DMA

Thu Apr 07, 2016 1:35 pm

RogerClark wrote:processor clock is 72mhz, so DIV2 is 36mhz

High speeds are helped by use of DMA

Thu Apr 07, 2016 9:03 pm

LOL

I just read the spec..

It looks like we overclock the SPI, to twice its maximum speed.

No one has had any problems with this ;-)

Thu Apr 07, 2016 9:10 pm

RogerClark wrote:
<…>
It looks like we overclock the SPI, to twice its maximum speed. No one has had any problems with this ;-)

Thu Apr 07, 2016 9:20 pm

Hi have several systems I built for my extended family that use Maple MiniMaple MiniDevelopment and computing boards…8MHz petertumler Thu Sep 24, 2015 10:58 am Hi, I’m trying to underclock a STM32F103 ( Maple Mini ) to 48MHz (for energy efficiency reasons). According to the datasheet .. The full…View in hardware catalog and the ILI9341ILI9341Displays, touch panels and LEDs… shows on my screen. I have used and programmed a few different types of SPI screens( ili9341 , st7735) using Python very successfully and these parallel screens have many of the…View in hardware catalog display, that have litterally been running non stop for months ( at least 9 months), without any problems at all.

I dont think there is any need to change the core to reduce the speed even if we are overclocking.

But perhaps I should add a readme in the SPI library just so everyone is aware that we deliberatly overclock

Thu Apr 07, 2016 9:22 pm

RogerClark wrote:
<…>
But perhaps I should add a readme in the SPI library just so everyone is aware that we deliberatly overclock

Thu Apr 07, 2016 9:29 pm

Live’s no fun unless you overclock, sometimes.

Fri Apr 08, 2016 9:11 am

mrburnette wrote:RogerClark wrote:
<…>
But perhaps I should add a readme in the SPI library just so everyone is aware that we deliberatly overclock

Post a reply

Optional · up to 10 MiB