Spark Logic

$10 O-Scope revisited

Over the last few days I’ve been playing with Ray’s STM32STM32Микроконтроллеры и процессоры…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]…[STM32GENERIC] F429i Discovery 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 01, 2017 1:49 pm

is it possible, to take the same SPI-Bus as the display ?
Or is it to quick ?

Than I need only one Pin for CS_MCP6Sx

Wed Mar 01, 2017 2:09 pm

MCP6S92MCP6S92Аналоговые, логические и силовые компоненты…It would be great to replace the manual gain switches (and gain pins) with menus and MCP6S92 ’s Smile Might have a go on this Smile P.S. BTW is there a video with this setup/code?…DLO-138 OScope handles SPI speeds up to 10Mhz.
The driver already has HW-SPI option but I haven’t tested it yet.
In theory it would be possible as long as the SPI speed is reconfigured every time the MCP is accessed.

Wed Mar 01, 2017 4:25 pm

Different settings for same SPI is served by SPI.beginTransaction().

Wed Mar 08, 2017 10:39 am

Hello again here.
Today I did some fancy thing I was planning for some time. Replaced chip on one of my “BluePill” boards with STM32F303STM32F303Микроконтроллеры и процессоры…this january). v2a…v2f – various hardware solutions for that software. S-03-(RU)-(T) STM32F303 , TFT LCD “Murzik” “FusionScope” see forum user “Fusion” and links in his signature.…DIY Oscilloscopes – List and Discussions microcontroller.
Sure I am not the first one doing that, I know. Many have thoughts that would be nice if chinese manufacturers would make cheap “F303 Pills”, but there are none (AFAIK). So, we can make one, pinouts are the same as F103. Here my pictures:
http://bildites.lv/a/pjuhvaf5#6jv5nwen
One of pics shows this board running tomeko.net “MiniScope v2d” firmware.
I thought, maybe that is something to consider here in our “O-Scope” variations. If someone write code for F303 (better ADCs, etc), with such BluePill conversion we have “drop-in, pin-compatible” hardware.
Technically, I did “blow off” old chip with hot air pistol, and soldered STM32F303CBT6STM32F303CBT6Микроконтроллеры и процессоры…” hardware. Technically, I did “blow off” old chip with hot air pistol, and soldered STM32F303CBT6 in place. Thoughts, anyone? Smile rexnanet Wed Mar 08, 2017 11:29 am I’ve ordere…$10 O-Scope revisited in place.
Thoughts, anyone? :)

Wed Mar 08, 2017 11:29 am

I’ve ordered some F303’s but they got taxed by customs and I gave up on them… Have to wait for a new batch… :)
I was thinking the same… replace the chip on the Blue PillBlue PillОтладочные и вычислительные платы…as become my new favorite board. I am calling it “blue pad” and it is kind of super “ blue pill ”. Pito Thu Jul 27, 2017 8:53 pm [victor_pv – Thu Jul 27, 2017 3:58 pm] – Just for…very small STM32F405 board .
But isn’t the code from GFX better for this purpose? It’s already functional right?

Wed Mar 08, 2017 12:06 pm

rexnanet wrote:
I was thinking the same… replace the chip on the Blue PillBlue PillОтладочные и вычислительные платы…as become my new favorite board. I am calling it “blue pad” and it is kind of super “ blue pill ”. Pito Thu Jul 27, 2017 8:53 pm [victor_pv – Thu Jul 27, 2017 3:58 pm] – Just for…very small STM32F405 board .
But isn’t the code from GFX better for this purpose? It’s already functional right?

Wed Mar 08, 2017 1:52 pm

ThunderOwl wrote:
GFXscope version v2.0 (F303 based) is not free. Well, for me it is, cause I bought “rights” to v3.0 firmware, and v2 comes as a bonus, if needed. But it is impossible to “borrow” to someone (even if I would want to), they are particular chip locked. But, yes – if you have bought v2.0 firmware, then such “BluePill Pro” makes easier to experiment.

Sat Mar 11, 2017 3:34 pm

hi,

to the GD32F103GD32F103Микроконтроллеры и процессоры… think you will need to use a 6 x multipler to give you 96Mhz as the max freq on the GD32F103 is 108Mhz Then if you set the f_cpu in the boards.txt to 96000000L (look at the gd32f…GD32F103RGT6 custom board “Bluepill” exist a schematic:

(52.24 KiB) Downloaded 176 times

Mon Mar 20, 2017 9:23 am

The code was working fine after all :D
The issue was that it was jumping to “normal” trigger and it stopped (it’s a bug because it should run because it had valid trigger but… :) )
If you go to the trigger menu and select “auto” it runs ok.

I’ve tested the 2 MCP6S in series and it’s running ok too. Still have to check if the gain settings are ok but they are working.
Noticed that at max gain the second MCP6S rises the GND level a bit. Maybe there’s an offset issue somewhere… but don’t have a scope to measure it :lol:

Here’s the code if someone wan’t to test it:

(11.81 KiB) Downloaded 158 times

Mon Mar 20, 2017 9:34 am

Thank You, rexnanet, for interesting news! Did I miss MCP connection diagram somewhere, what schematics you use? Or supposedly just figure that out of INO file?
About DDS option(s), I have module with ADS9833 chip (not 9850/51), I think it has SPI control. I wonder if that will work with upcoming code too, hmm. Did not order ADS9851 yet, maybe later…

Mon Mar 20, 2017 10:50 am

Nop, didn’t miss it, no schematic but… Its a bit self explained in the .ino file.

MCP6S92MCP6S92Аналоговые, логические и силовые компоненты…It would be great to replace the manual gain switches (and gain pins) with menus and MCP6S92 ’s Smile Might have a go on this Smile P.S. BTW is there a video with this setup/code?…DLO-138 OScope _A1_CS PA9
MCP6S92MCP6S92Аналоговые, логические и силовые компоненты…It would be great to replace the manual gain switches (and gain pins) with menus and MCP6S92 ’s Smile Might have a go on this Smile P.S. BTW is there a video with this setup/code?…DLO-138 OScope _A1_DIN PB10
MCP6S92MCP6S92Аналоговые, логические и силовые компоненты…It would be great to replace the manual gain switches (and gain pins) with menus and MCP6S92 ’s Smile Might have a go on this Smile P.S. BTW is there a video with this setup/code?…DLO-138 OScope _A1_CLK PB11

MCP6S92MCP6S92Аналоговые, логические и силовые компоненты…It would be great to replace the manual gain switches (and gain pins) with menus and MCP6S92 ’s Smile Might have a go on this Smile P.S. BTW is there a video with this setup/code?…DLO-138 OScope _A2_CS PA10
MCP6S92MCP6S92Аналоговые, логические и силовые компоненты…It would be great to replace the manual gain switches (and gain pins) with menus and MCP6S92 ’s Smile Might have a go on this Smile P.S. BTW is there a video with this setup/code?…DLO-138 OScope _A2_DIN PB10
MCP6S92MCP6S92Аналоговые, логические и силовые компоненты…It would be great to replace the manual gain switches (and gain pins) with menus and MCP6S92 ’s Smile Might have a go on this Smile P.S. BTW is there a video with this setup/code?…DLO-138 OScope _A2_CLK PB11

Others are +3.3V, GND and Vin and Vout…

Meanwhile, I’ll try to draw something.

Thu Mar 23, 2017 3:26 am

Hi rexnanet,

thanks for the code.

at present I am testing the amplifier hardware, a mixture from DSO150DSO150Модули, приборы и готовые устройства… Mon Feb 27, 2017 5:07 pm Question to willfly1: what about adopting Your software do DSO-150 ? I understand, it is much like DSO-138, but with digital switches (74HC4051)? Here: (…DLO-138 OScope reducer and an amplifier with MCP6S91MCP6S91Аналоговые, логические и силовые компоненты…0 or MAX??? to generate the -5V, so I can spare VGEN-Pin . But perhaps also with the MCP6S91 / 92. I have to test it separate with the SPI, if I can change the clock-divider tempo…DLO-138 OScope .
I have some problems with noise , therefore I have to shield it. For the negative supply-voltage I take a MAX660MAX660Аналоговые, логические и силовые компоненты…with noise , therefore I have to shield it. For the negative supply-voltage I take a MAX660 , its’ better than ICL7660 ( smaller R-on and higher switch frequency (about 80kHz)). F…$10 O-Scope revisited , its’ better than ICL7660ICL7660Аналоговые, логические и силовые компоненты…ave to shield it. For the negative supply-voltage I take a MAX660 , its’ better than ICL7660 ( smaller R-on and higher switch frequency (about 80kHz)). For the AD9850 exists a SPI…$10 O-Scope revisited ( smaller R-on and higher switch frequency (about 80kHz)).

For the AD9850AD9850Аналоговые, логические и силовые компоненты…l be difficult to make 16.55Mhz from this board, I recommend you by something like a AD9850 board to generate your 16.55Mhz signals Flycatcher Fri Jul 28, 2017 3:15 pm Hi Roger! T…GD32F103RGT6 custom board exists a SPI-Lib for Arduino UnoArduino UnoОтладочные и вычислительные платы…ime debugging. konczakp Mon Jul 18, 2016 12:18 pm OK, so I took working example from Arduino UNO . I’ve cut off everything from library that I don’t need and from rest I have crea…8-bit|16-bit parallell ILI9341 , but I think we have it to modify …

Thu Mar 23, 2017 12:07 pm

Hi mausi_mick,

Why are you using negative supply rails?
MCP6S is only positive supply if I recall. I’m going to add VCC/2 on an input amplifier so that it can accept negative voltage and be already in the ADC voltage range.
Might have a few drawbacks but it’s simpler in other aspects.

Post a reply