Skip to content

Instantly share code, notes, and snippets.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20260701-2351.svg
Last active July 2, 2026 04:21
good 20kHz reconstruction with promising PWM DSM
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / 2ndorder-DSM-noise-analysis.asc
Created June 30, 2026 17:19
2ndorder-DSM-noise-analysis.asc
Version 4.1
SHEET 1 968 680
WIRE 736 -176 352 -176
WIRE 736 -112 736 -176
WIRE 736 -112 720 -112
WIRE 752 -112 736 -112
WIRE 736 -96 736 -112
WIRE 352 -32 352 -176
WIRE 352 -32 320 -32
WIRE 576 -16 576 -112
@ericfont
ericfont / circuit-20260630-0152.svg
Created June 30, 2026 05:50
try to move PWM DSM's noise filter pole up as high as possible, even higher than PWM rate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20260629-1134.svg
Created June 29, 2026 15:32
PWM dsm try again, with higher 500kHz sampler
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuitjs
Last active June 29, 2026 05:33
circuitjs arduino example output PWM sine
<cir f="1" ts="5.0000000000000004e-8" ic="124.26481670549957" cb="50" pb="50" vr="5" mts="5e-11">
<ExtVoltage x="336 80 288 80" f="0" wf="1" fr="40" maxv="5" nm="pin 3"/>
<ExtVoltage x="336 192 288 192" f="0" wf="1" fr="40" maxv="5" nm="pin 9"/>
<LED x="336 80 384 80" f="2" mo="default-led" cr="1" cg="0" cb="0" mbc="0.01"/>
<r x="384 80 432 80" f="0" r="1000"/>
<g x="432 80 448 80" f="0"/>
<r x="336 192 384 192" f="0" r="1000"/>
<LED x="480 176 528 176" f="2" mo="default-led" cr="1" cg="0" cb="0" mbc="0.01"/>
<c x="384 240 384 192" f="2" c="1.0000000000000001e-7" iv="0.001" sr="0" vd="-2.120788941832159"/>
<g x="384 240 384 256" f="0"/>
@ericfont
ericfont / circuit-20260628-1746.svg
Created June 28, 2026 21:45
encode derivative using DSM then integrate
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20260628-1646.svg
Created June 28, 2026 20:45
delta modulation simple
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ericfont
ericfont / circuit-20260628-1632.svg
Created June 28, 2026 20:30
plain 20Mhz sampling DSM
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.