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

Fri Jan 06, 2017 4:41 pm

I have connect the last ? free pins of the Maple MiniMaple MiniОтладочные и вычислительные платы…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…Underclocking STM32F103 to 48MHz with a AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope DDS board.
And with a small modification (function 7: set frequency AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope ) I can set the frequency of the AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope
and display it on O-Scope:
P1020613.JPG
P1020613.JPG (31.06 KiB) Viewed 1326 times

Fri Jan 06, 2017 4:58 pm

mausi_mick wrote:I have connect the last ? free pins of the Maple MiniMaple MiniОтладочные и вычислительные платы…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…Underclocking STM32F103 to 48MHz with a AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope DDS board.
And with a small modification (function 7: set frequency AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope ) I can set the frequency of the AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope
and display it on O-Scope:

Fri Jan 06, 2017 5:22 pm

It’s only a test with some fix frequency (0,1,2,….20kHz, 0: DDS stopped), perhaps it’s possible to change frequency via a second encoder.
(33.92 KiB) Downloaded 213 times

Fri Jan 06, 2017 8:40 pm

Great, mausi_mick! That is so logical and eventually useful addition! Need to get some such module for myself, I guess.

Fri Jan 06, 2017 11:15 pm

mausi_mick wrote:I have connect the last ? free pins of the Maple MiniMaple MiniОтладочные и вычислительные платы…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…Underclocking STM32F103 to 48MHz with a AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope DDS board.
And with a small modification (function 7: set frequency AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope ) I can set the frequency of the AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope
and display it on O-Scope:

P1020613.JPG

Fri Jan 06, 2017 11:19 pm

Pig-Gen-O-Scope …

Edit:
mausi_mick and anyone else who used such generator modules (from “usual sources”, I suppose), a question – are they allright? I ask because chips are most likely chinese copies, am I right? Usually common sense goes like this: digital ICs copies are okay, but analog IC devices better buy form official sources. So, do these chinese generator chips work okay? Thanks.

Sat Jan 07, 2017 12:49 am

ThunderOwl wrote:
So, do these chinese generator chips work okay? Thanks.

Sat Jan 07, 2017 2:35 am

I have changed a little bit more and integrate touch-function for type in frequency.
It’s from the example in URTouch-Lib. If you rotate with the encoder to function 7 (DDS-Frequency) and select parameters, the display changed to touch mask. You can type in the frequency and touch the “ENTER” button,
the osci shows the Sinus – Function with this frequency:
P1020614.JPG
P1020614.JPG (55.74 KiB) Viewed 1270 times

Sat Jan 07, 2017 3:06 am

Hi ThunderOwl,

I think the modules are ok for hobby, I have one with 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 on an Arduino NanoArduino NanoОтладочные и вычислительные платы…, 2015 4:19 pm ST NUCLEO-F303K8, NUCLEO-F042K6 and NUCLEO-F031K6, small form factor ( Arduino Nano ) and low price. RogerClark Sun Nov 22, 2015 8:26 pm I don’t think anyone has on…Anyone playing with these babies? with frequency counter (10 Hz … 4MHz).
On the picture its on the bottom of the display. On the right you can see the step width (changing with the red and green buttons) for the rotary encoder.

P1020618.JPG
P1020618.JPG (54.41 KiB) Viewed 1265 times

Sat Jan 07, 2017 7:50 am

Great new advance, mausi_mick! Thanks for your work!! I just got some idea what needs to be added – some beeper. If that doesn’t do any slowing down of main purpose, measuring and displaying. With beeper, we can clearly know did we push the number on screen, did we rotate encoder, did we click button. And with slightly different sounds for all that – it is very useful, ergonomical. What others think?

Sat Jan 07, 2017 10:52 am

Good idea ThunderOwl, and I think not difficult to realize.

But I think perhaps we need far reaching goals like

– second channel
– speech command …

I have tested it a little in the early eighties on Sinclair ZX80ZX80Модули, приборы и готовые устройства…annel – speech command … I have tested it a little in the early eighties on Sinclair ZX80 , but no real success. Only for numbers, but I had problems to differentiate words with s…$10 O-Scope revisited , but no real success.
Only for numbers, but I had problems to differentiate words with similar phoneme like 2 and 3( in german language “zwei” and “drei”).
But it was a slow processor with 1 kB Ram, and micro- Input over the socket from music cassette (as “floppy” compensation).

Sat Jan 07, 2017 12:58 pm

now I have modified “function” 7: activate AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope DDS:

Position p=1: no Signal (default)
Position p=2,3,…255 f(AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope ) = (p-1) x 1 kHz
Position p=0: switch to touch-screen, return with “ENTER”, f = input digits in Hz

if you want to switch off the signal, it’s only possible via the touch-panel.

here the code:

(40.81 KiB) Downloaded 47 times

Sat Jan 07, 2017 2:52 pm

mausi_mick, what exactly is control signal(s) interaction with DDS module? My point is, I want to look datasheets, could I use some other chip based module, like AD9833AD9833Аналоговые, логические и силовые компоненты… point is, I want to look datasheets, could I use some other chip based module, like AD9833 , AD9850, etc. Thank You! mausi_mick Sat Jan 07, 2017 3:09 pm I think with the AD9850 i…$10 O-Scope revisited , 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 , etc. Thank You!

Sat Jan 07, 2017 3:09 pm

I think with 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 it’s similar like the AD9851AD9851Аналоговые, логические и силовые компоненты…integrate Touch-functionality (URTOUCH-Lib) and test it with frequency input for DDS AD9851 : the first picture shows the Touch Panel for set frequency, the second the selected fr…DLO-138 OScope , the other I don’t know.

Thu Jan 12, 2017 2:45 pm

Happy Chinese New Year! a.k.a., “can not order anything now”. Anyway, a small question, before I try (I know, I should try myself first, but, let me ask first to smart people :) ). Question is: can I reassign non-SPI TFT signals to other 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 ports, without causing global disasters? Namely, I would like to migrate TFT_DC PA0 to PC13, TFT_CS PA1 to PA12. I believe i am able to edit code that much, the question is – should I? Why I want that – to make connections the same with other STM32F103STM32F103Микроконтроллеры и процессоры…19.html . ag123 Sat Apr 28, 2018 5:54 pm come to think of it blue pill / maple mini ( stm32f103 ) is an *ideal* keyboard controller, the scanning can be done with assistance of sh…[SOLVED] generic blue pill clone as USB keyboard +TFT scope project, so I can just swap firmwares for experiments. Also, is TFT_RST in “O-Scope” actually doing anything? In some other projects it is just pulled to +V. Thanks for eventual suggestions!

P.S.: for curious here is a link
https://yadi.sk/d/QJmF7P2byAYma

Thu Jan 12, 2017 3:29 pm

ThunderOwl wrote: Question is: can I reassign non-SPI TFT signals to other 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 ports, without causing global disasters? Namely, I would like to migrate TFT_DC PA0 to PC13, TFT_CS PA1 to PA12.

Thu Jan 12, 2017 3:45 pm

rexnanet wrote:
You found this code!!! I’ve been searching for it :) Thanks! ;)

Thu Jan 12, 2017 6:03 pm

You found the GFXScope code :)

It was in a post from you (I think :) ) where you posted some pictures of it and some more scopes (ThunderJuris) precisely that last link :)
Then I was trying to get the code to get “some ideas” but couldn’t find anything. And then BAM! you post this :)

My antivirus blocks the link cvs.aiq.ru saying it’s dangerous :( I’ll maybe try with it off for a second lol

Thu Jan 12, 2017 6:15 pm

rexnanet wrote:You found the GFXScope code :)

It was in a post from you (I think :) ) where you posted some pictures of it and some more scopes (ThunderJuris) precisely that last link :)
Then I was trying to get the code to get “some ideas” but couldn’t find anything. And then BAM! you post this :)

My antivirus blocks the link cvs.aiq.ru saying it’s dangerous :( I’ll maybe try with it off for a second lol

Fri Jan 13, 2017 3:29 am

I have tested the ILI9341ILI9341Дисплеи, сенсорные панели и светодиоды… 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…[SOLVED] FSMC LCD on STM32F407VET display with different pins on Maple MiniMaple MiniОтладочные и вычислительные платы…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…Underclocking STM32F103 to 48MHz , all combinations are ok:
// Additional  display specific signals (i.e. non SPI) for STM32F103C8T6 (Wire colour)

//#define TFT_DC      PA0      //   (Green)  11 maple mini

//#define TFT_CS      PA1      //   (Orange) 10 maple mini

//#define TFT_RST     PA2      //   (Yellow)  9 maple mini

//#define TFT_DC PB4 // (Green) 18 Maple MiniMaple MiniОтладочные и вычислительные платы…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…Underclocking STM32F103 to 48MHz
//#define TFT_CS PB3 // (Orange) 19 Maple MiniMaple MiniОтладочные и вычислительные платы…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…Underclocking STM32F103 to 48MHz
//#define TFT_RST PA15 // (Yellow) 20 Maple MiniMaple MiniОтладочные и вычислительные платы…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…Underclocking STM32F103 to 48MHz

#define TFT_DC      PA15      //   (Green)  20 maple mini
#define TFT_CS      PA14      //   (Orange) 21 maple mini
#define TFT_RST     PA13      //   (Yellow) 22 maple mini

Post a reply