Skip to content

Instantly share code, notes, and snippets.

@ericfont
Last active July 4, 2024 06:46
Show Gist options
  • Save ericfont/71ba5989c2b449040c756ccfa5bc5464 to your computer and use it in GitHub Desktop.
Save ericfont/71ba5989c2b449040c756ccfa5bc5464 to your computer and use it in GitHub Desktop.
harvest from piezo and limit output voltage using zeners
$ 65 0.0000049999999999999996 23.47059216675035 68 5 50 5e-11
v 416 416 416 336 0 1 100 10 0 0 0.5
r 416 336 416 288 0 10000
w 416 288 512 288 0
w 416 416 512 416 0
c 512 416 512 288 0 1e-8 0.9406580458566396 0
w 560 288 608 288 0
d 608 288 608 240 2 1N5711
d 640 288 640 240 2 1N5711
d 608 336 608 288 2 1N5711
d 640 336 640 288 2 1N5711
w 608 336 624 336 0
w 624 336 640 336 0
w 608 240 624 240 0
w 624 240 640 240 0
w 624 240 624 224 0
w 624 224 704 224 0
w 624 336 624 352 0
w 624 352 704 352 0
c 704 352 704 224 0 0.00009999999999999999 -1.8671291150995994 0
w 704 224 784 224 0
r 784 224 784 288 0 1000
w 784 352 704 352 0
w 640 288 656 288 0
w 656 288 656 416 0
w 656 416 560 416 0
g 832 352 832 368 0 0
p 832 224 832 352 1 0 0
w 832 224 784 224 0
w 784 352 832 352 0
403 272 144 528 272 0 4_64_0_4355_5_0.0001953125_-1_2_4_3
w 560 288 512 288 0
w 560 416 512 416 0
34 zener-4.75 1 1.7143528192810002e-7 0 1.8612620642555566 4.75 1
z 560 352 560 288 2 zener-4.75
z 560 352 560 416 2 zener-4.75
403 640 64 768 128 0 6_64_0_4355_2.5_0.00078125_-1_2_6_3
162 784 288 784 352 2 default-led 1 0 0 0.01
o 26 8 0 12546 2.277263015982204 0.0001 0 5 24 0 24 3 5 0 5 3
o 0 8 0 4354 10 0.1 0 1
38 0 F1 0 0 10 -1 Max\sVoltage
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 4, 2024

@ericfont
Copy link
Author

ericfont commented Jul 4, 2024

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