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

Wed Mar 01, 2017 10:53 am
Wed Mar 01, 2017 10:57 am
The limitation as I recall is on the analog frontend. I don’t thing the input approach is the best for this…
Wed Mar 01, 2017 11:02 am
is that ok (in dlo-138 : display) line 174:
// ————————
void clearNDrawSignals() {
// ————————static boolean wavesOld[4] = {false,}; <<< ???????
static int16_t yCursorsOld[4];
Wed Mar 01, 2017 11:07 am
Wed Mar 01, 2017 11:46 am
is that ok (in dlo-138 : display) line 174:
// ————————
void clearNDrawSignals() {
// ————————static boolean wavesOld[4] = {false,}; <<< ???????
static int16_t yCursorsOld[4];
Wed Mar 01, 2017 1:36 pm
Wed Mar 01, 2017 4:16 pm
is that ok (in dlo-138 : display) line 174:
// ————————
void clearNDrawSignals() {
// ————————static boolean wavesOld[4] = {false,}; <<< ???????
static int16_t yCursorsOld[4];
Wed Mar 01, 2017 4:37 pm
Wed Mar 01, 2017 5:55 pm
Thu Mar 02, 2017 6:04 pm
But I haveto reduce the storage from 2048 to 1024 steps (because of AD9581/Touch?), I think the trigger is not perfect, perhaps I have to change the levels.
And by long timeBases ( >= 10mS) is a problem with the encoder / switches. On “10$ O-scope” I can do the parameter-changes inside the interrupt-routine inclusive update the small areas on the display.
on Youtube:
Thu Mar 02, 2017 7:13 pm
Fri Mar 03, 2017 7:19 am
I Changed the on the top of the display the wave-field (A1,A2,D1,D2) more to the right and moved the window-field for the storage of the waves to the left.
Also I split the wave field in four separate fields. Now I can activate / deactivate each channel separate. And I changed the colour of the trigger-edge to orange for falling ( It was difficult to differentiate between them at least for my eyes …)
Now I need the button of the encoder only to start/activate the touch-function.

Fri Mar 03, 2017 8:47 am
on the left are the hidden touch-sensorfields for cursor 1…4 for the input signals,
x < 70
y > 60 and y <100: L_vPos1
y > 100 and < 130: L_vPos2
y> 130 and < 160: L_vPos3
y> 160 and < 190: L_vPos4
on the right is the field for the triggerlevel.
X> 280 and < 319
Y>100 and < 200: L_triggerLevel
and the source:
Fri Mar 03, 2017 9:12 am
As for the trigger: Do you have the external circuit assembled? Or did you change the trigger method?
Because the original schematic has an external op-amp that receives a PWM to set the value and compares it with the input signal and sends the output to a pin that is used to start?/set? the trigger.
There are a bit of artifacts indeed… but might get solved ![]()
I might get a chance to try it out this weekend cause it seems that it will be rainy all weekend long…
Fri Mar 03, 2017 9:40 am
Fri Mar 03, 2017 11:12 am
yes there is VGEN (on PA10 in my SW)for 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, but it’s open.
and TRIGGER_IN ( PA11 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).
I have to study the HW / schematic !!
Fri Mar 03, 2017 2:28 pm
PB8 is TL_PWM, generates the voltage level for the comparator.
PA8 it TRIGGER, receives the logic signal from the comparator.
The chip is labeled U2D. And the other input of the comparator is ADCIN PA0.
Hope it makes it easier for you ![]()
Fri Mar 03, 2017 4:33 pm
DSO 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
AN_CH1 PA0 PB0
AN_CH2 PA4 PA0 ( problem with spi1 CS=PA4 ???)
TRIGGER_IN PA8 PA11
TRIGGER_LEVEL PA8 PB8
VSENSSEL1 PA2 PA2
VSENSSEL2 PA1 PA1
CPLSEL PA3 PA3
VGEN PB9 PA10
TL_PWM PB8 ????
VGEN I can’t see in the schematic
I haven’t found TL_PWM in the original-software DLO-138 (global.h)
Fri Mar 03, 2017 6:03 pm
DSO 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
AN_CH1 PA0 PB0
AN_CH2 PA4 PA0 ( problem with spi1 CS=PA4 ???)
TRIGGER_IN PA8 PA11
TRIGGER_LEVEL PA8 PB8
VSENSSEL1 PA2 PA2
VSENSSEL2 PA1 PA1
CPLSEL PA3 PA3
VGEN PB9 PA10
TL_PWM PB8 ????
VGEN I can’t see in the schematic
I haven’t found TL_PWM in the original-software DLO-138 (global.h)
Fri Mar 03, 2017 6:06 pm