From 31cbbdd1e6eb5f9c74221b04ab5128ab14f82c3e Mon Sep 17 00:00:00 2001 From: Matthew Kennedy Date: Mon, 28 Sep 2020 02:15:28 -0700 Subject: [PATCH] add pump driver model --- simulation/PumpDriverModel.asc | 218 +++++++++++++++++++++++++++++++++ 1 file changed, 218 insertions(+) create mode 100644 simulation/PumpDriverModel.asc diff --git a/simulation/PumpDriverModel.asc b/simulation/PumpDriverModel.asc new file mode 100644 index 0000000..06286f3 --- /dev/null +++ b/simulation/PumpDriverModel.asc @@ -0,0 +1,218 @@ +Version 4 +SHEET 1 1588 912 +WIRE -640 -192 -848 -192 +WIRE -368 -192 -400 -192 +WIRE -400 -176 -400 -192 +WIRE -400 -176 -576 -176 +WIRE -368 -176 -368 -192 +WIRE -256 -176 -368 -176 +WIRE -640 -160 -848 -160 +WIRE 96 -128 48 -128 +WIRE 208 -128 160 -128 +WIRE -848 -64 -848 -160 +WIRE 48 -32 48 -128 +WIRE 48 -32 16 -32 +WIRE 80 -32 48 -32 +WIRE 160 -32 144 -32 +WIRE 208 -32 208 -128 +WIRE 208 -32 160 -32 +WIRE 352 -32 208 -32 +WIRE -256 80 -256 -176 +WIRE -192 80 -256 80 +WIRE -80 80 -192 80 +WIRE 16 80 16 -32 +WIRE 16 80 0 80 +WIRE 16 112 16 80 +WIRE 96 112 16 112 +WIRE 352 128 352 -32 +WIRE 352 128 160 128 +WIRE 96 144 16 144 +WIRE 352 144 352 128 +WIRE 16 176 16 144 +WIRE 16 176 0 176 +WIRE 352 256 352 224 +WIRE 544 256 352 256 +WIRE 16 272 16 176 +WIRE 112 272 16 272 +WIRE 352 272 352 256 +WIRE 352 272 192 272 +WIRE 992 304 928 304 +WIRE 1152 304 1072 304 +WIRE -912 320 -976 320 +WIRE -400 320 -400 304 +WIRE -400 320 -832 320 +WIRE -368 320 -368 304 +WIRE -256 320 -256 80 +WIRE -256 320 -368 320 +WIRE 544 352 544 256 +WIRE 544 352 480 352 +WIRE 608 352 544 352 +WIRE 608 384 608 352 +WIRE 768 384 608 384 +WIRE 880 384 848 384 +WIRE 480 400 480 352 +WIRE 608 400 608 384 +WIRE 880 416 880 384 +WIRE 928 416 928 304 +WIRE 928 416 880 416 +WIRE 1008 416 928 416 +WIRE 1152 432 1152 304 +WIRE 1152 432 1072 432 +WIRE 1200 432 1152 432 +WIRE 1328 432 1280 432 +WIRE 1408 432 1328 432 +WIRE 912 448 880 448 +WIRE 1008 448 912 448 +WIRE 608 496 608 480 +WIRE 608 496 592 496 +WIRE 768 496 608 496 +WIRE 880 496 880 448 +WIRE 880 496 848 496 +WIRE 912 512 912 448 +WIRE 480 528 480 480 +WIRE 544 528 480 528 +WIRE 608 528 608 496 +WIRE 608 528 544 528 +WIRE 1328 528 1328 496 +WIRE 544 576 544 528 +WIRE 544 704 544 656 +FLAG 128 160 0 +FLAG -720 704 0 +FLAG -864 704 0 +FLAG -864 624 vcc +FLAG 128 96 vcc +FLAG -720 624 vm +FLAG 544 704 vm +FLAG -80 176 vm +FLAG -976 320 vm +FLAG 1040 464 0 +FLAG 912 592 vm +FLAG 1408 432 sense_out +FLAG 544 256 rtrim +FLAG 544 528 ip +FLAG 1040 400 vcc +FLAG -192 80 input +FLAG -848 16 vm +FLAG -928 -192 0 +FLAG -608 -208 0 +FLAG -608 -144 vcc +FLAG 1328 528 0 +SYMBOL Opamps\\AD822 128 64 R0 +SYMATTR InstName U1 +SYMBOL res 16 64 R90 +WINDOW 0 0 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +SYMATTR InstName R1 +SYMATTR Value 68k +SYMBOL res 16 160 R90 +WINDOW 0 0 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +SYMATTR InstName R2 +SYMATTR Value 68k +SYMBOL res 176 -48 R90 +WINDOW 0 0 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +SYMATTR InstName R3 +SYMATTR Value 10k +SYMBOL res 208 256 R90 +WINDOW 0 0 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +SYMATTR InstName R4 +SYMATTR Value 10k +SYMBOL res 368 240 R180 +WINDOW 0 36 76 Left 2 +WINDOW 3 36 40 Left 2 +SYMATTR InstName R5 +SYMATTR Value 47 +SYMBOL voltage -720 608 R0 +WINDOW 0 -32 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +WINDOW 123 0 0 Left 0 +WINDOW 39 0 0 Left 0 +SYMATTR InstName V1 +SYMATTR Value 1.65 +SYMBOL voltage -816 320 R90 +WINDOW 0 -16 56 Left 2 +WINDOW 3 96 -151 VRight 2 +WINDOW 39 0 0 Left 0 +SYMATTR InstName V2 +SYMATTR Value "" +SYMATTR Value2 AC 1 +SYMBOL voltage -864 608 R0 +WINDOW 123 0 0 Left 0 +WINDOW 39 0 0 Left 0 +SYMATTR InstName V3 +SYMATTR Value 3.3 +SYMBOL res 592 384 R0 +SYMATTR InstName R8 +SYMATTR Value 61.9 +SYMBOL res 528 560 R0 +SYMATTR InstName R9 +SYMATTR Value 10 +SYMBOL cap 160 -144 R90 +WINDOW 0 0 32 VBottom 2 +WINDOW 3 32 32 VTop 2 +SYMATTR InstName C1 +SYMATTR Value 33n +SYMBOL Opamps\\AD822 1040 368 R0 +WINDOW 0 25 42 Left 2 +WINDOW 3 26 86 Left 2 +SYMATTR InstName U2 +SYMBOL res 864 368 R90 +WINDOW 0 0 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +SYMATTR InstName R10 +SYMATTR Value 10k +SYMBOL res 864 480 R90 +WINDOW 0 0 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +SYMATTR InstName R11 +SYMATTR Value 10k +SYMBOL res 896 496 R0 +SYMATTR InstName R12 +SYMATTR Value 100k +SYMBOL res 1088 288 R90 +WINDOW 0 0 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +SYMATTR InstName R13 +SYMATTR Value 100k +SYMBOL res 464 384 R0 +SYMATTR InstName R7 +SYMATTR Value 95 +SYMBOL Comparators\\LT1720 -608 -112 M180 +SYMATTR InstName U3 +SYMBOL voltage -848 -80 R0 +WINDOW 3 24 44 Left 2 +WINDOW 123 0 0 Left 0 +WINDOW 39 0 0 Left 0 +SYMATTR InstName V4 +SYMATTR Value PULSE(-0.3 0.3 5m 30n 30n 5m 10m) +SYMBOL voltage -832 -192 R90 +WINDOW 0 -32 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +WINDOW 123 0 0 Left 0 +WINDOW 39 0 0 Left 0 +SYMATTR InstName V5 +SYMATTR Value PULSE(0 3.3 0 5u 0 100n 5u) +SYMBOL res 1296 416 R90 +WINDOW 0 0 56 VBottom 2 +WINDOW 3 32 56 VTop 2 +SYMATTR InstName R6 +SYMATTR Value 3.3k +SYMBOL cap 1312 432 R0 +SYMATTR InstName C4 +SYMATTR Value 100n +TEXT -712 364 Left 2 !;.ac dec 400 10 1e7 +TEXT -824 -272 Left 2 ;PWM modulator - transient analysis +TEXT -960 232 Left 2 ;AC analysis +TEXT -642 -12 Left 2 !.tran 50m +TEXT -856 552 Left 2 ;Power Supply +TEXT 1320 256 Left 2 ;Pump Current Sense +TEXT 160 -176 Left 2 ;Pump Current Source +TEXT 512 184 Left 2 ;Sensor +RECTANGLE Normal -304 -320 -1104 96 2 +RECTANGLE Normal -304 416 -1072 176 2 +RECTANGLE Normal -608 528 -960 752 2 +RECTANGLE Normal 416 336 -144 -208 2 +RECTANGLE Normal 1584 704 720 208 2 +RECTANGLE Normal 688 784 432 144 2