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

Add calibration #534

Open
ohmtech-rdi opened this issue Jun 3, 2023 · 0 comments
Open

Add calibration #534

ohmtech-rdi opened this issue Jun 3, 2023 · 0 comments
Assignees
Labels
feature Feature

Comments

@ohmtech-rdi
Copy link
Owner

At least in the case of pot + trim * cv, when a CV is not connected, zero is not exactly zero and changing the trim value will have an impact on the final value, which sometimes can be easily heard (for example for a frequency parameter).

Add calibration tooling to solve that.

Typically:

module Foo {
   control freq CvIn {
      ...
      calibration 0V
   }

   control pitch CvIn {
      ...
      calibration 1V, 3V
   }
}
$ ebb calibrate
Unplug freq, press enter to continue
Measured value: 23mV
Set pitch to 1V, press enter to continue
Measured value: 985mV
Set pitch to 3V, press enter to continue
Measured value: 3010mV
Done.

erbb calibrate would use openocd semihosting.

The calibration would be written on QSPI, with for magic key a hash of the C++ side structure declaration.

@ohmtech-rdi ohmtech-rdi added the feature Feature label Jun 3, 2023
@ohmtech-rdi ohmtech-rdi self-assigned this Jun 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature
Projects
None yet
Development

No branches or pull requests

1 participant