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

Thu Mar 23, 2017 3:16 pm

rexnanet,

I know it, it must be easier, but I tried to copy the reducer 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 only with little changes:
Separate switch for AC/DC and C for max 230-50V AC, in the first stage bigger distances between the components and in the divider 2 resistance for one ( because of the electric strength :lol: ) .

A video with the preamp in action is here:

https://www.youtube.com/watch?v=sLfzLB7 … e=youtu.be

Thu Mar 23, 2017 5:18 pm

Well done!

I’ve seen the video before the post :) It’s running great. except near the end :) what happened?

Fri Mar 24, 2017 11:03 am

I was coming in to “SINGLE”-mode (small touch screen with thick fingers :lol: ) and then it goes automatically to “HOLD” (red in the left upper corner). And nearly all is frozen. I have to change from single to auto and by pressing the switch on the encoder its starts again.

Now the shielding of the preamp is better:

DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI_Display_shielded_preamp.JPG
DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI_Display_shielded_preamp.JPG (57.71 KiB) Viewed 1424 times

Fri Mar 24, 2017 11:14 am

Looks very good!

The noise levels seem ok. Are you using a breadboard or have you made a board for it?
The need for shielding might indicate some ground problems or too much attenuation+gain…

Now you could make some measures to see if the voltage levels match the real signal :)

IMO you could also make the videos a bit longer :) it’s nice to see it in action

Fri Mar 24, 2017 12:09 pm

I made small breadboard for it ( knife cut ! :lol: ).
DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI_Display_Preamp.JPG
DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI_Display_Preamp.JPG (46.18 KiB) Viewed 1418 times

Fri Mar 24, 2017 2:25 pm

HELP :!: :!: :!: :!: I try to realize this oscilloscope. I use the 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 -O-Scope-byRex code. Fails to load code into the 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 .. I get the following error message, which I can not solve. :?: Perhaps you can provide links to the correct libraries, or upload into a single archive. ;)
Thanks

https://drive.google.com/open?id=0B6Eh8 … JKUjVUb1Zr

Fri Mar 24, 2017 2:45 pm

dargas wrote:HELP :!: :!: :!: :!: I try to realize this oscilloscope. I use the 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 -O-Scope-byRex code. Fails to load code into the 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 .. I get the following error message, which I can not solve. :?: Perhaps you can provide links to the correct libraries, or upload into a single archive. ;)
Thanks

https://drive.google.com/open?id=0B6Eh8 … JKUjVUb1Zr

Fri Mar 24, 2017 2:53 pm

mausi_mick wrote:I made small breadboard for it ( knife cut ! :lol: ).
DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI_Display_Preamp.JPG
I have made a new video (with better Sinus over divider (10k/3.3k) and changing gain of 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 between 1 … 8).
https://www.youtube.com/watch?v=GRtzcdL … load_owner

Fri Mar 24, 2017 4:15 pm

yes, on the right is the stabilization with a LM7806LM7806Аналоговые, логические и силовые компоненты…er mausi_mick Fri Mar 24, 2017 4:15 pm yes, on the right is the stabilization with a LM7806 (and 2 Diodes to reduce to about 5V) and the MAX660. There are 3 connections to the pre…$10 O-Scope revisited (and 2 Diodes to reduce to about 5V) and
the 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 .
There are 3 connections to the preamp for -5V, 0V and +5V.

On the left is a input-stage similar 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 with an TLC072TLC072Аналоговые, логические и силовые компоненты… the preamp for -5V, 0V and +5V. On the left is a input-stage similar DSO150 with an TLC072 and on the right a MCP6S91 and an amplifier / levelshifter from -5V …+5V to 0V…+3.3V Th…$10 O-Scope revisited and on the right a 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
and an amplifier / levelshifter from -5V …+5V to 0V…+3.3V

Mon Mar 27, 2017 3:17 am

I have now activated channel2 with the second 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 …
On the screen ( bottom right) is now a second touch-field to activate the amplifier.
The signals are from external generators.

The video is on Youtube:

https://youtu.be/8uKkUnRKve0

Mon Mar 27, 2017 6:21 am

mausi_mick, check my pictures gallery, it is simply 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 BluePill with MCP6S21MCP6S21Аналоговые, логические и силовые компоненты…pists) could adapt from that device: input stage with cheap programmable gain OpApm ( MCP6S21 ). Other opamp (any Rail-to-Rail) in that schematics is for moving displayed graphic…$10 O-Scope revisited in a box ;-)

Mon Mar 27, 2017 8:35 am

ThunderOwl,

what will You make with the HC05/HC06 ?

Mon Mar 27, 2017 9:59 am

mausi_mick wrote:
what will You make with the HC05/HC06 ?

Mon Mar 27, 2017 11:06 am

mausi_mick wrote:
what will You make with the HC05/HC06 ?

Mon Mar 27, 2017 5:55 pm

ThunderBowl, very nice pictures !

Do You transfer the scope-data via bluetooth to android to display it there ?
It’s quick enough ?

something other, you asked for 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 /51 connected with SPI. I have tested it , but not with success. It was possible to generate a frequency and I can see it on the screen, but if I try to change the frequency their is chaos . Sometimes appears a very high frequency and if I try to set to 100 Hz, he gives a very low frequency back. I tested some diffent software (from Arduino), but I think it’s difficult to transfer the frequency order.

Perhaps other have more success, but I stopped it.
Now I try to integrate the two amplifiers in the scope:

DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI_Display_Preamp_2.JPG
DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI_Display_Preamp_2.JPG (57.99 KiB) Viewed 1835 times

Thu Mar 30, 2017 5:42 pm

ThunderOwl,

I had problems with SPI for ADS9851, but now I need only three Pins , I put Pin AD_RST to ground.
Now I have installed the two preamps:

DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI-Display_front_plate.JPG
DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI-Display_front_plate.JPG (33.96 KiB) Viewed 1782 times

Sun Apr 02, 2017 3:20 pm

I have now built in a sinus to squarewave-former with 50% duty cycle.
The former is realized with a smitt-trigger and a divider trough two ( HC7474). Therefore the input-frequency is multiplied by two to
eliminate the divider.
DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI-Display_SinusSquarewave.JPG
DLO138DLO138Модули, приборы и готовые устройства…ere just for history. M-16 LPT, OLD also archeologic item, kinda. … scope.html M-17 “ DLO-138 ” – Alternative open source firmware for well known DSO-138 ! This is from our forum…DIY Oscilloscopes – List and Discussions -SPI-Display_SinusSquarewave.JPG (42.74 KiB) Viewed 1677 times

Wed Apr 05, 2017 3:30 am

ThunderOwl,

now the DLO-138 SPI TFT is nearly ready ( I have to integrate trigger_level for correct triggering).

But I have success with the DDS 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 /1 with SPI.

Now I need only one extra line for FQ_UD (corresponds to CS ), DATA -> SPI-MOSi, AD_CLK -> SPI-CLK, AD_RST-> Ground.
Here some pictures from the test:

DLO138sSPI_Display_test_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 _51_SPI.JPG
DLO138sSPI_Display_test_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 _51_SPI.JPG (50.7 KiB) Viewed 1981 times

Post a reply