Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

calibrate voltage / wrong voltage #7

Open
konwin opened this issue Dec 13, 2022 · 4 comments
Open

calibrate voltage / wrong voltage #7

konwin opened this issue Dec 13, 2022 · 4 comments

Comments

@konwin
Copy link

konwin commented Dec 13, 2022

Hello,
I successfully flashed my old original DSO150 with STM32F103CB.
The only thing I observed is that the measured voltage is around 25% to low. The test signal is shown as 2.5V and an AA battery I checked with my multimeter at 1.18V is shown at 0.9V.
Is this adjustable? Or have I done the calibration wrong (connect probe clamp to the ground clamp and leave connected while pressing ok and switching to AC/DC as stated)?
PXL_20221213_232847394~2

@mean00
Copy link
Owner

mean00 commented Dec 14, 2022

Hi
The problem is depending on your hw revision, the internal gain/ resistors are different, so it will always be wrong on some hw.
The "basic calibration" only calibrates the zero, i.e. dc offset. So if you see zero when you ground the signal, you did it correctly.

On my todolist i have the "advanced" calibration to calibrate YOUR device properly.
I did that in the past, it works fine, but the code is missing at the moment.

Short term, i can suggest either :
1- If you can, change capture/dso_adc_gain.cpp. it contains the gain for the different stages.
2- I can blindly change it, but i dont know your hw, might be better , might be worse.

BTW, the main goal of the "advanced" calibration was to be much more accurate.
In the past, when it's done, the value are not bad at all.

@mean00
Copy link
Owner

mean00 commented Dec 14, 2022

@mean00
Copy link
Owner

mean00 commented Jun 18, 2023

I'm manually splitting the voltage range issue into Issue #9
#9

Repository owner deleted a comment from marianomd Jun 18, 2023
Repository owner deleted a comment from marianomd Jun 18, 2023
Repository owner deleted a comment from marianomd Jun 18, 2023
Repository owner deleted a comment from marianomd Jun 18, 2023
Repository owner deleted a comment from marianomd Jun 18, 2023
Repository owner deleted a comment from marianomd Jun 18, 2023
Repository owner deleted a comment from marianomd Jun 18, 2023
Repository owner deleted a comment from marianomd Jun 18, 2023
Repository owner deleted a comment from marianomd Jun 18, 2023
@mean00
Copy link
Owner

mean00 commented Jun 18, 2023

@konwin
There is now in master a 5v calibration method to lower the error due to internal Vref variation
It is assumed to be 1.2 but i've measured it up to be up to 10% wrong
One calibrated, the absolute error goes down A LOT.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants