Skip to content

Instantly share code, notes, and snippets.

@ericfont
Created July 2, 2025 05:34
Show Gist options
  • Save ericfont/7609ba0b7a2e0f4b5b56b4bf95e68d8a to your computer and use it in GitHub Desktop.
Save ericfont/7609ba0b7a2e0f4b5b56b4bf95e68d8a to your computer and use it in GitHub Desktop.
Double voltage (non-inverting) and subtract 1V the next cycle if exceed 1V this cycle...seems to work
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
Copy link
Author

ericfont commented Jul 2, 2025

sim

@ericfont
Copy link
Author

ericfont commented Jul 2, 2025

Alternative that avoids having to have a negative reference voltage. Works by storing reference voltage + opamp offset on a second input capacitor to the opamp:

circuit-20250702-1803

sim

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment