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

Fri Mar 03, 2017 6:38 pm
Sat Mar 04, 2017 7:34 am
Good work, thx.
Could you share the MINIMUM code for continuous Serial Output only, without displays, encoders, switchers, EEPROMEEPROMGeneric components and modules without part numbers…ly bought one of these: … fbb0123c5e It’s really small (50x40mm) but includes an i2c eeprom , and sdcard slot, and all MCU pins broken out. I have still not used it, but plan to u…View in hardware catalog and so on.
Only RAW array – Time, ADC1, ADC2 for PC-based analyzing.
It`s hard for me cleaning many unused functions and variables from the code.
Regards,
MagSem
Mon Mar 06, 2017 12:02 pm
So is the handling more comfortable.
By the way I have changed some colors , e.g. for the storage blue (like a watertank)
, and for analog-Channel 1 to purple (it looks more like an old scope
).

Mon Mar 06, 2017 1:44 pm
But I think that maybe you could move the channel labels to the side instead of the “slider”. Sliding up and down is not that intuitive.
But it’s cleaner look.
I didn’t have the chance to try it out this weekend…
I’ll try to change the pinout meanwhile to try to speed up the testing part…
Mon Mar 06, 2017 3:58 pm
but I think the sliders must be on the side for moving up and down with the encoder, but activate by touch.
As next I have to make the preamp’s for testing the offset-config.
My last code for touch is here:
Mon Mar 06, 2017 4:04 pm
Mon Mar 06, 2017 5:05 pm
Mon Mar 06, 2017 5:09 pm
Mon Mar 06, 2017 5:32 pm
Mon Mar 06, 2017 5:52 pm
Otherwise, I think you can do this:
_SPI->beginTransaction(SPISettings(9000000, MSBFIRST, SPI_MODE0)); //before MCP access 9Mhz to be safe
…
_SPI->beginTransaction(SPISettings(36000000, MSBFIRST, SPI_MODE0)); //after MCP access 36Mhz for the display. (if _SPI = SPI1)
Mon Mar 06, 2017 6:04 pm
Tue Mar 07, 2017 2:36 am
thanks for your example for changing frequency.
I hope that I need only one pin for each MCP, only for CS(n),
I take the same SCK (PA5), MOSI(PA7) Pins like the SPI-TFT (spi1).
There is a nice project:
http://www.rotwang.co.uk/projects/energy_monitor.html
with two spi-devices (ADC-MCP3002MCP3002Analog, logic and power components…A7) Pins like the SPI-TFT (spi1). There is a nice project: with two spi-devices (ADC- MCP3002 and PGA MCP6S91) with Arduino-Code. But I think at first I try this: … illoscope/ mau…View in hardware catalog and PGA 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 ) with Arduino-Code.
But I think at first I try this:
Tue Mar 07, 2017 8:11 am
But with Vin (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 on USB) its nearly exact.
Wed Mar 08, 2017 3:35 am
Therefore I modified it to MCP6S92MCP6S92Analog, logic and power components…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?…View in hardware catalog .h / cpp
I made on the left corner of the display for testing a small touch-area for activating the PGA 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 .
A video from the first test is here ( only for switching between 16 and 32, because I have problems with the offset):
the modified lib is here:
Thu Mar 09, 2017 9:37 am
Therefore I modified it to MCP6S92MCP6S92Analog, logic and power components…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?…View in hardware catalog .h / cpp
I made on the left corner of the display for testing a small touch-area for activating the PGA 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 .
A video from the first test is here ( only for switching between 16 and 32, because I have problems with the offset):
the modified lib is here:
MCP6S92MCP6S92Analog, logic and power components…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?…View in hardware catalog .h
MCP6S92MCP6S92Analog, logic and power components…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?…View in hardware catalog .cpp
Fri Mar 10, 2017 5:41 am
I have now no problems with the 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 , the gain switching with SPI is ok. I have only to make something with the trigger and offset (like DSO138DSO138Modules, instruments and finished devices…kinda. … scope.html M-17 “DLO-138” – Alternative open source firmware for well known DSO-138 ! This is from our forum here (Thank You, willfly1 !!): It can be used on original DSO…View in hardware catalog ).
But I said in the Blog touch is more intuitive for changing labels, but to activate TOUCH with a real button is a little bit antique.
Therefore I tried it with SPI , but no success.
Back to URTOUCH I activated the touch with an ISR on TOUCH_IRQ-Pin and don’t need the loop:
while (touch.available() …
Now I can use the touch-function without pressing the button (the button on the encoder is now free )
That’s quick and real intuitive ! ![]()
Fri Mar 10, 2017 6:08 am
I think with the 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 you can make only a 1 channel o-scope, because you need 4 pins for gain selection.
I think it’s better with the 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 /92 (1 Pin) or a combination from 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 ( only inputstage with HC4053 (1Pin))
and 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 /92.
The input of the 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 is a little bit better and easier to realize as the of the DSO138DSO138Modules, instruments and finished devices…kinda. … scope.html M-17 “DLO-138” – Alternative open source firmware for well known DSO-138 ! This is from our forum here (Thank You, willfly1 !!): It can be used on original DSO…View in hardware catalog and you can build in an overvoltage-protection with 2 diodes or two antiparallel white/blue leds (not tested, but very small leakage currents, but perhaps problems with capacity).
Fri Mar 10, 2017 9:03 am
it’s not ever easy to hit the small touch-fields with thick finger’s ! ![]()
Fri Mar 10, 2017 10:05 am
Yep, the small areas are a bit difficult do get using fingers…that is why I started to use the encoder. But it’s not perfect too…
Maybe a 15″ touchscreen could help us
Touch IRQ is a great feature as it doesn’t affect the refresh rate ![]()
The HC input stage approach can lead to a better bandwidth by using better op-amps. But that could be used for the F303 option ![]()
Sat Aug 26, 2017 1:59 am
I have mounted a parallel resistance from about 1.8 kOhm between 3.3V and PA12, so I can program the Pill via USB with Arduino IDE 1.8.4. The memory is set to 128k (in the STMFlashloader). I have also shorted the 100 kOhm resitance on Boot1, so I can use PB2 (perhaps for a 8-bit display).
I take the encoders from madias (multi-encoder with timer1).
I use this pins:
A0 Analog Input 1
B0 Analog Input 2
B10 TFT_DC
A7 TFT_MOSI
(A6 TFT_MISO)
A5 TFT_SCK
A4 TFT_CS
3.3V TFT_RST
B3 Encoder_0
B4 Encoder_0
B12 Encoder_1
B13 Encoder_1
B6 TEST_WAVE
The program runs stable, the encoders (EC11EC11Sensors, encoders and cameras…er_0 B12 Encoder_1 B13 Encoder_1 B6 TEST_WAVE The program runs stable, the encoders ( EC11 , KY-040) have no problems with bouncing. Now I have to build the input amplifiers (with…View in hardware catalog , KY-040KY-040Sensors, encoders and cameras…12 Encoder_1 B13 Encoder_1 B6 TEST_WAVE The program runs stable, the encoders (EC11, KY-040 ) have no problems with bouncing. Now I have to build the input amplifiers (with MC6S22…View in hardware catalog ) have no problems with bouncing.
Now I have to build the input amplifiers (with MC6S22 ?)
Good information (inl. schematic) for preamps is on this page :
damusician.com/dpscope/overview.html
mausi_mick