DLO-138 OScope
DLO-138 is alternate firmware for DSO-138 and adds second analog channel, two logic channels, more sample depth and serial port data output.
Code: https://github.com/ardyesp/DLO-138

- pic3.png (153.54 KiB) Viewed 8814 times
DLO-138 is alternate firmware for DSO-138 and adds second analog channel, two logic channels, more sample depth and serial port data output.
Code: https://github.com/ardyesp/DLO-138

Sat Nov 04, 2017 5:13 pm

Tue Nov 07, 2017 7:02 pm

Sat Nov 11, 2017 2:16 am
It is nearly ok, butI have eliminate the DAC beacause I have to change it from 3.3V to 5V like the other devices (PGA’s) on SPI-2.
And I have to make something with the trigger …
A new video: https://youtu.be/3KJTmGfGuTA
Sat Nov 11, 2017 8:35 am
Sat Nov 11, 2017 11:08 am
Thanks !
Wed Nov 15, 2017 2:50 pm
The supply m( USB or 7,5V-12V DC) is on the left side. BTN4 and Reset-Button are on the right above the two encoders.

Mon Nov 20, 2017 4:17 pm
Wed Dec 13, 2017 3:21 pm
[mausi_mick – Mon Nov 20, 2017 4:17 pm] –
Now I have tested an quadencoder on an Namiki motor, the phase difference is 90°![]()
https://www.youtube.com/watch?v=GXj4ve7 … e=youtu.be
Nive work
I’ve got some DSO150DSO150Modules, instruments and finished devices… 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: (…View in hardware catalog to try them out. It works great but only one channel is not very nice
I’m thinking about making a similar approach but using the F303 and getting to 10MSPS/channel.
I’m going to try changing the F103 for the F303 on a bluepill to test it (like ThunderOwl did).
Maybe it could be possible to use this code with that chip…
Thu Feb 08, 2018 3:05 pm
Thu Mar 08, 2018 2:45 am
here the code,
I used Arduino IDE 1.8.4
Thu Mar 08, 2018 6:49 pm
Fri Mar 09, 2018 3:47 am
The pcb is hand – made with a small carpet knife.
Sun Mar 25, 2018 4:02 am
Wed Mar 28, 2018 12:51 pm
I realized the two pre-amplifiers with 2 MCP6S91MCP6S91Analog, logic and power components…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…View in hardware catalog PGA’s similar like this schematic:
https://jasmedia2011.files.wordpress.co … 472321.png
The used pins of the MapleMapleDevelopment and computing boards…expensive short of buying in bulk. many resort to usb-serial converters. today comes leaflabs maple , stm32duino it is ‘disruptive’ in a similar light, user customizable usb is no…View in hardware catalog -mini you can see in “global.h” of the last zip-file DLO-138-MaMi_05.
I used 2 spi,
the first for the display 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 ,
the second spi for the PGA’s / MCP6S91MCP6S91Analog, logic and power components…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…View in hardware catalog and the DAC’s MCP4822MCP4822Analog, logic and power components…he SPI graphic functioned, but I can’t activate other SPI devices like MCP6S91/92 or MCP4822 (DAC). I reduced the speed to 9MHz and back to 36MHz, but with no success. I tested it…View in hardware catalog .
Not solved is the triggering.
Sun Apr 08, 2018 11:37 am
thank you for this beautiful sharing, a perfect device, even if i can not do it because it is too complex for an amateur like me, maybe in the future … great respect for you and thank you again for sharing, cordially
Thu Apr 12, 2018 7:19 pm
[mausi_mick – Wed Mar 28, 2018 12:51 pm] –
Not solved is the triggering.
A really cheap way of doing triggering is to use the ADC’s analog watchdog.
For a rising trigger set the low threshold (LTR) to zero and the high threshold (HTR) to the value you want to trigger on (for a falling trigger, set HTR to 4095 and LTR to the trigger value). You can check the AWD flag in the ADC status register (which your code already loads when checking if a conversion is complete) to see if a trigger has occurred. You can even get it to generate an interrupt if you decide to change to capturing samples using DMA in the future.
Keep in mind you’ll have to scale the trigger level you program the AWD registers with to match your OPAMP gain.
It might be worth worth considering moving to a DMA in any case. It actually makes things easier and you’ll be able to avoid the need to write assembler code. Let me know if you want to know how I go about it for my F3 based oscilloscope project.
Mon Apr 16, 2018 5:32 pm
Are you using this code on a F303?
Do you have arduino ide working on the F303?
I was trying to get a base code working with 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 HAL but it’s still in it’s early days. I have managed to get 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 working but still haven’t digged into the ADC stuff. On arduino would be a lot easier…
Tue Apr 17, 2018 12:31 pm
[rexnanet – Mon Apr 16, 2018 5:32 pm] –
Hi dave j,Are you using this code on a F303?
No, I’m developing something from scratch.
Do you have arduino ide working on the F303?
No. I’m using Qt Creator as a development environment and targetting the 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 LL libraries (rather than the HAL ones which reportedly are a bit buggy). Qt Creator is a better C/C++ IDE than Eclipse and you can get it to deploy code to the device and remotely debug too.
I was trying to get a base code working with 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 HAL but it’s still in it’s early days. I have managed to get 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 working but still haven’t digged into the ADC stuff.
STM32Cube has some good example code that helped me figure out how to do things. Some MCUs have more/better examples than others – don’t just look at those for the MCU you’re targeting.
On arduino would be a lot easier…
Sadly, I think with libraries it’s a case of simple enough for beginners to understand or flexible enough to do complex things. At least with arduino you can ignore its libraries and use others/code direct to the hardware.Let me know if you want me to describe the approach I’m taking to capturing and triggering.
Wed May 16, 2018 5:28 pm
[rexnanet – Mon Apr 16, 2018 5:32 pm] –
Are you using this code on a F303?
Do you have arduino ide working on the F303?
I was trying to get a base code working with 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 HAL but it’s still in it’s early days. I have managed to get 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 working but still haven’t digged into the ADC stuff. On arduino would be a lot easier…
I want to make an F303-based oscilloscope, too. I am thinking: two channels, 10M samples/sec (by DMA and interleaving). So far I have an F303 board (by replacing the F103 on a “blue” pill with an F303) and a working stm32generic Arduino core fork.
I am wondering if I should start from scratch or with the DLO-138 source code.
Another possibility would be to buy a DSO-138, transplant an F303 to it (hopefully without breaking anything), and then work on the software.
Any thoughts?
Thu May 17, 2018 1:28 pm
I’m thinking on using the DLO-138 as a starting point and if it’s not viable then try to use 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 -HAL or something. But using DLO-138 would give a nice head start and having a “working” arduino core makes it even more simple ![]()
I’ve also swapped the F103 for an F303 on a Blue PillBlue PillDevelopment and computing boards…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…View in hardware catalog . Swapping it on a DSO-138 or even on a DSO-150, as I’ve thought, it’s no good because of the single analog channel.
I’m thinking about making myself a pcb to get everything together.