Spark Logic

$10 O-Scope revisited

AD9851 SSOP-28 (RS-28) Pinout
AD9850 SSOP-28 (RS-28) Pinout
AD9833 MSOP-10 Pinout
ILI9341 MSP3223 · 14-contact header Pinout
STM32F103C8T6 LQFP48 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

Fri Jan 06, 2017 4:41 pm

I have connect the last ? free pins of the 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 with a AD9851AD9851Analog, logic and power components…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…View in hardware catalog DDS board.
And with a small modification (function 7: set frequency AD9851AD9851Analog, logic and power components…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…View in hardware catalog ) I can set the frequency of the AD9851AD9851Analog, logic and power components…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…View in hardware catalog
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 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 with a AD9851AD9851Analog, logic and power components…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…View in hardware catalog DDS board.
And with a small modification (function 7: set frequency AD9851AD9851Analog, logic and power components…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…View in hardware catalog ) I can set the frequency of the AD9851AD9851Analog, logic and power components…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…View in hardware catalog
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 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 with a AD9851AD9851Analog, logic and power components…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…View in hardware catalog DDS board.
And with a small modification (function 7: set frequency AD9851AD9851Analog, logic and power components…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…View in hardware catalog ) I can set the frequency of the AD9851AD9851Analog, logic and power components…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…View in hardware catalog
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 AD9850AD9850Analog, logic and power components…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…View in hardware catalog on an Arduino NanoArduino NanoDevelopment and computing boards…, 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…View in hardware catalog 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 ZX80ZX80Modules, instruments and finished devices…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…View in hardware catalog , 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 AD9851AD9851Analog, logic and power components…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…View in hardware catalog DDS:
Position p=1: no Signal (default)
Position p=2,3,…255  f(AD9851) = (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 AD9833AD9833Analog, logic and power components… 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…View in hardware catalog , AD9850AD9850Analog, logic and power components…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…View in hardware catalog , etc. Thank You!

Sat Jan 07, 2017 3:09 pm

I think with the AD9850AD9850Analog, logic and power components…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…View in hardware catalog it’s similar like the AD9851AD9851Analog, logic and power components…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…View in hardware catalog , 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 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 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 STM32F103STM32F103Microcontrollers and processors…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…View in hardware catalog +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 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 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 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 with different pins on 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 , 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 mini
//#define TFT_CS      PB3      //   (Orange) 19 maple mini
//#define TFT_RST     PA15     //   (Yellow) 20 maple mini
#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

Optional · up to 10 MiB