DLO-138 OScope

What are you developing?
mausi_mick
Posts: 148
Joined: Fri Aug 12, 2016 1:40 pm

Re: DLO-138 OScope

Post by mausi_mick » Thu Mar 02, 2017 6:04 pm

I have changed the Code for the SPI Display:
Now You can change betweeen functions/labels and the steps/parameters with the rotary encoder. The button of the encoder is only for changing between functions and steps.

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:

https://www.youtube.com/watch?v=aNsIR4r6Sw8

User avatar
BennehBoy
Posts: 420
Joined: Thu Jan 05, 2017 8:21 pm
Location: Yorkshire
Contact:

Re: DLO-138 OScope

Post by BennehBoy » Thu Mar 02, 2017 7:13 pm

I quite fancy building one of these, I can think of a lot of uses I'd get out of it.
-------------------------------------
https://github.com/BennehBoy

mausi_mick
Posts: 148
Joined: Fri Aug 12, 2016 1:40 pm

Re: DLO-138 OScope

Post by mausi_mick » Fri Mar 03, 2017 7:19 am

also with the label/function-selection is not very intuitive, therefore I tested touchscreen for the fields timebase, trigger, waves, wimndows etc.
Only with the cursors on the left and right side I have problems.

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.
DLO138-SPI_Change_Labels_Touch.JPG
DLO138-SPI_Change_Labels_Touch.JPG (56.58 KiB) Viewed 322 times

mausi_mick
Posts: 148
Joined: Fri Aug 12, 2016 1:40 pm

Re: DLO-138 OScope

Post by mausi_mick » Fri Mar 03, 2017 8:47 am

now I have solved :D the problem with the cursor activating by touch:

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:
DLO-138-04.7z
(15.49 KiB) Downloaded 49 times

User avatar
rexnanet
Posts: 205
Joined: Wed Mar 16, 2016 10:34 am

Re: DLO-138 OScope

Post by rexnanet » Fri Mar 03, 2017 9:12 am

Great work! :)

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...

mausi_mick
Posts: 148
Joined: Fri Aug 12, 2016 1:40 pm

Re: DLO-138 OScope

Post by mausi_mick » Fri Mar 03, 2017 9:40 am


mausi_mick
Posts: 148
Joined: Fri Aug 12, 2016 1:40 pm

Re: DLO-138 OScope

Post by mausi_mick » Fri Mar 03, 2017 11:12 am

Thanks Rexnanet,

yes there is VGEN (on PA10 in my SW)for maple-mini, but it's open.
and TRIGGER_IN ( PA11 maple_mini).

I have to study the HW / schematic !!

User avatar
rexnanet
Posts: 205
Joined: Wed Mar 16, 2016 10:34 am

Re: DLO-138 OScope

Post by rexnanet » Fri Mar 03, 2017 2:28 pm

You're welcome :)

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 :)

mausi_mick
Posts: 148
Joined: Fri Aug 12, 2016 1:40 pm

Re: DLO-138 OScope

Post by mausi_mick » Fri Mar 03, 2017 4:33 pm

there are some pins connected to hardware:

DSO MAPLE
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)

willfly1
Posts: 17
Joined: Wed Jan 04, 2017 5:13 pm
Location: GTA, Canada

Re: DLO-138 OScope

Post by willfly1 » Fri Mar 03, 2017 6:03 pm

mausi_mick wrote:there are some pins connected to hardware:

DSO MAPLE
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)
Great work. The TL_PWM is called TRIGGER_LEVEL in global.h
VGEN is a 20 Khz pulse train used to generate negative voltage for OpAmp and connects to base of Q2 transistor.

Post Reply