### Reprise # Circuits This file provides files ready for import into: http://www.falstad.com/circuit/circuitjs.html Files are numbered based on the Lessons found in the [README.md] file. Each file can be imported in Falstad by using the > File > Import from Text... or in french > Fichier > Importer depuis Texte... ## 01 01.01 Very basic circuit to understand power ``` $ 1 0.000005 10.20027730826997 50 5 43 5e-11 w 112 288 112 64 0 162 112 288 -112 288 2 default-led 1 0 0 0.01 r -112 64 112 64 0 100 v -112 288 -112 64 0 0 40 5 0 0 0.5 38 2 0 50 500 Resistance 38 3 0 0 20 Voltage ``` 01.02 Lab: Current Voltage Intensity ``` $ 1 0.000005 10.20027730826997 50 5 43 5e-11 v -128 128 -224 128 0 0 40 3.915 0 0 0.5 r -224 80 -128 80 0 100 162 -224 304 -128 304 2 default-led 1 0 0 0.01 w -224 272 -128 272 1 w -224 240 -128 240 1 w -128 176 -224 176 2 w -128 208 -224 208 2 w -224 0 -128 0 0 w -224 32 -128 32 0 38 1 0 100 500 Resistance 38 0 0 1.5 12 Voltage ``` 01.03 Lab: Symbols ``` $ 1 0.000005 10.20027730826997 50 5 43 5e-11 v -256 112 -352 112 0 0 40 3.915 0 0 0.5 r -352 64 -256 64 0 100 162 -352 320 -256 320 2 default-led 1 0 0 0.01 w -352 272 -256 272 1 w -352 224 -256 224 1 w -256 160 -352 160 2 w -256 192 -352 192 2 w -352 -16 -256 -16 0 w -352 16 -256 16 0 181 -112 -16 48 -16 0 300 100 120 0.4 0.4 s -112 32 48 32 0 0 false S -112 96 48 96 0 0 false 0 2 174 -112 160 32 160 1 1000 0.5 Resistance 178 -112 224 48 224 6 1 0.2 0 0.05 1000000 0.02 20 0.015 0.005 0 c -112 320 48 320 0 0.00001 0 0.001 38 1 0 100 500 Resistance 38 0 0 1.5 12 Voltage ``` 02.01. Lab: Build your own ``` $ 1 0.000005 10.20027730826997 50 5 43 5e-11 v -256 96 -416 96 0 0 40 5 0 0 0.5 r -416 -48 -256 -48 0 100 162 -416 176 -256 176 2 default-led 1 0 0 0.01 w -416 240 -256 240 0 w -416 272 -256 272 0 s -416 32 -256 32 0 0 false r -416 320 -256 320 0 10000 38 6 0 100 10000 Resistance ``` 03.01. Demo: Serial / Parrallel ``` $ 1 0.000005 10.20027730826997 50 5 43 5e-11 v -560 128 -560 64 0 0 40 5 0 0 0.5 r -368 -80 -272 -80 0 100 162 -256 272 -320 272 2 default-led 1 0 0 0.01 r -368 -48 -176 -48 0 100 w -176 -80 -144 -64 0 w -144 -64 -176 -48 0 w -144 -64 -80 -64 0 w -80 -64 -80 80 1 r -272 -80 -176 -80 0 100 S -432 -64 -368 -64 0 0 false 0 2 r -288 64 -224 64 0 100 r -288 32 -224 32 0 100 w -288 32 -288 48 0 w -288 48 -288 64 0 w -224 32 -224 48 0 w -224 48 -224 64 0 w -288 48 -320 48 0 w -320 112 -288 112 0 w -224 112 -176 112 0 w -176 112 -144 80 0 w -224 48 -176 48 0 w -176 48 -144 80 0 r -288 112 -224 112 0 100 S -416 80 -352 80 0 1 false 0 2 v -496 160 -496 96 0 0 40 5 0 0 0.5 v -496 96 -496 32 0 0 40 5 0 0 0.5 S -528 -64 -528 0 0 0 false 0 2 w -560 64 -560 32 0 w -560 32 -544 0 0 w -512 0 -496 32 0 w -560 128 -560 160 0 w -560 160 -528 192 0 w -528 192 -496 160 0 w -528 192 -528 304 0 w -80 80 -144 80 0 w -320 48 -352 64 0 w -320 112 -352 96 0 w -528 -64 -432 -64 2 w -80 192 -80 304 1 w -80 192 -416 192 0 w -416 80 -416 192 2 w -320 336 -352 320 0 w -320 272 -352 288 0 w -80 304 -144 304 0 S -416 304 -352 304 0 0 false 0 2 w -176 272 -144 304 0 w -176 336 -144 304 0 162 -176 272 -256 272 2 default-led 1 0 0 0.01 162 -176 336 -320 336 2 default-led 1 0 0 0.01 w -416 304 -528 304 2 ``` 03.02 Lab: Adrien's ``` $ 1 0.000005 10.20027730826997 67 5 50 5e-11 r 320 144 448 144 0 300 v 224 80 544 80 0 0 40 5 0 0 0.5 d 544 144 544 240 2 default r 256 240 352 240 0 500 r 112 160 112 80 0 100 d 112 240 112 160 2 default w 112 80 224 80 3 370 224 240 112 240 1 0 0 w 544 80 544 144 3 w 224 128 224 80 0 d 224 192 224 160 2 default w 224 192 224 240 0 w 224 160 224 128 0 w 352 240 432 240 3 w 224 240 256 240 3 w 544 80 480 80 0 w 224 80 304 80 3 w 464 144 544 144 3 w 464 144 448 144 0 w 320 144 224 80 3 370 544 240 432 240 1 0 0 o 6 64 0 4099 0.0000762939453125 0.0015625 0 2 6 3 ``` 03.03 Demo : use a relay ``` $ 1 0.000005 10.20027730826997 50 5 43 5e-11 v -528 224 -528 128 0 0 40 5 0 0 0.5 r -512 -32 -352 -32 0 100 162 -352 -32 -224 -32 2 default-led 1 0 0 0.01 s -464 224 -384 224 0 0 false 178 -416 96 -240 96 6 1 0.2 0.04166666666666552 0.05 1000000 0.02 20 0.015 0.005 1 w -528 128 -416 128 0 w -160 128 -160 224 0 w -320 224 -384 224 0 w -528 224 -464 224 0 v -528 96 -528 -32 0 0 40 5 0 0 0.5 w -528 96 -416 96 0 w -528 -32 -512 -32 0 w -224 -32 -160 -32 0 w -160 -32 -160 112 0 w -160 112 -240 112 0 r -320 224 -160 224 0 100 w -160 128 -240 128 0 ``` 04.01 Lab: use potentiometer ``` $ 1 0.000005 10.20027730826997 50 5 43 5e-11 r -592 -64 -496 -64 0 100 v -592 64 -592 -64 0 0 40 5 0 0 0.5 174 -592 80 -464 32 1 5000 0.9950000000000001 Resistance 162 -496 -64 -432 -64 2 default-led 1 0 0 0.01 w -432 0 -528 0 0 w -592 64 -592 80 1 w -432 -64 -432 0 0 w -528 0 -528 32 0 ``` 40.02 Demo: use an ampliop ``` $ 1 0.000005 0 57 5 50 5e-11 162 432 192 496 192 2 default-led 1 0 0 0.01 v -32 176 -32 48 0 0 40 2.3 0 0 0.5 w 16 208 192 208 2 a 192 192 336 192 9 5 0 1000000 2.35 2.3 100000 w -32 48 80 48 0 w 80 48 80 176 0 w 80 176 192 176 2 w 496 400 32 400 0 w 32 400 -32 400 0 w -32 400 -32 176 0 r 496 272 496 192 0 1000 w 496 272 16 272 0 v 16 272 16 208 0 0 40 2.35 0 0 0.5 w 496 400 496 272 0 w 432 192 336 192 1 g 496 400 496 448 0 0 x -7 120 24 123 4 24 V1 x 45 249 76 252 4 24 V2 38 1 F1 0 0 5 -1 V1 38 12 F1 0 0 5 -1 V2 ``` 04.02 Demo: use a thermistor ``` $ 1 0.000005 10.20027730826997 57 5 50 5e-11 r 80 80 80 144 0 10000 162 400 192 496 192 2 default-led 1 0 0 0.01 350 80 288 80 400 0 10000 3605 -40 150 0.30200000000000005 Temperature v -32 336 -32 48 0 0 40 5 0 0 0.5 w -32 48 32 48 1 w 32 48 32 160 0 174 32 160 32 256 1 10000 0.3713 Resistance w 48 208 192 208 2 a 192 192 336 192 9 5 0 1000000 3.1435 2.949559155218372 100000 w 32 48 80 48 0 w 80 48 80 80 0 w 80 144 80 176 0 w 80 176 80 288 0 w 80 176 192 176 2 w 32 256 32 400 0 w 80 400 32 400 0 w 32 400 -32 400 0 w -32 400 -32 336 0 r 336 192 400 192 0 1000 w 496 192 496 400 0 w 496 400 80 400 0 ``` 05.01 Use a photoresistor ``` $ 1 0.000005 10.20027730826997 57 5 50 5e-11 r 32 80 32 144 0 10000 162 400 192 496 192 2 default-led 1 0 0 0.01 v -32 336 -32 48 0 0 40 5 0 0 0.5 w -32 48 32 48 1 174 80 128 80 224 1 10000 0.3713 Resistance w 32 208 192 208 2 a 192 192 336 192 9 5 0 1000000 4.269208845496133 3.1435 100000 w 32 48 80 48 0 w 32 48 32 80 0 w 32 144 32 208 0 w 32 208 32 288 0 w 96 176 192 176 2 w 80 224 80 400 0 w 80 400 32 400 0 w 32 400 -32 400 0 w -32 400 -32 336 0 r 336 192 400 192 0 1000 w 496 192 496 400 0 w 496 400 80 400 0 374 32 288 32 400 0 0.41590000000000005 Light\sBrightness w 80 128 80 48 0 $ 1 0.000005 10.20027730826997 50 5 43 5e-11 v -256 96 -416 96 0 0 40 5 0 0 0.5 r -416 -48 -256 -48 0 100 162 -416 176 -256 176 2 default-led 1 0 0 0.01 w -416 240 -256 240 0 w -416 272 -256 272 0 s -416 32 -256 32 0 0 false r -416 320 -256 320 0 10000 38 6 0 100 10000 Resistance ``` 05.02 Use a delay for photoresistor ``` $ 1 0.000005 0.00855774612778704 17 5 43 5e-11 r -96 0 -96 64 0 10000 v -160 256 -160 -32 0 0 40 5 0 0 0.5 w -160 -32 -96 -32 1 174 -48 48 -48 144 1 10000 0.12380000000000002 Resistance w -96 128 64 128 2 a 64 112 208 112 9 100 0 1000000 4.505386342727696 4.380999999999999 100000 w -96 -32 -48 -32 0 w -96 -32 -96 0 0 w -96 64 -96 128 0 w -96 128 -96 208 0 w -32 96 64 96 2 w -48 144 -48 320 0 w -48 320 -96 320 0 w -96 320 -160 320 0 w -160 320 -160 256 0 r 208 112 208 176 0 1000 w 208 256 208 320 0 w 208 320 -48 320 0 374 -96 208 -96 320 0 0.08920000000000002 Light\sBrightness w -48 48 -48 -32 0 c 320 112 320 320 0 0.000009999999999999999 -0.000012388634258418417 0.001 162 208 176 208 256 2 default-led 1 0 0 0.01 w 320 112 208 112 0 w 320 320 208 320 0 38 5 F1 0 100 10000 -1 Resistance ``` 05.03 Create a twilight switch Tdecharge=ResistanceDecharge*Capacité*LogNeper(TensionChargé/TensionReference) ``` $ 1 0.000005 382.76258214399064 69 5 43 5e-11 r -624 128 -624 192 0 10000 v -688 384 -688 96 0 0 40 5 0 0 0.5 w -688 96 -624 96 1 174 -576 176 -576 272 1 10000 0.1733 Resistance w -560 256 -464 256 2 w -624 96 -576 96 0 w -624 96 -624 128 0 w -624 192 -624 256 0 w -624 256 -624 336 0 w -560 224 -464 224 2 w -576 272 -576 448 0 w -576 448 -624 448 0 w -624 448 -688 448 0 w -688 448 -688 384 0 r 16 256 80 256 0 1000 w -208 320 -208 448 0 w -208 448 -576 448 0 374 -624 336 -624 448 0 0.41590000000000005 Light\sBrightness w -576 176 -576 96 0 c -320 240 -256 240 0 0.000009999999999999999 1.7690705538749167 0 r -208 240 -208 320 0 1000000 v -160 448 -160 272 0 0 40 2.5 0 0 0.5 d -256 320 -256 240 2 default a -128 256 16 256 9 5 0 1000000 2.5 3.2309430145096325 100000 w -256 240 -208 240 1 w -208 240 -128 240 2 w -160 448 -208 448 0 w 128 272 128 448 1 w 128 448 -160 448 0 w -160 272 -128 272 2 w -560 256 -624 256 0 a -464 240 -320 240 8 5 0 1000000 4.1335 4.269208845496133 100000 r -256 320 -208 320 0 100 t 80 256 128 256 0 1 0.6106214772426666 0.738085610369949 100 default 415 160 192 160 448 0 0.5 1 0.15 0.15 0.02 0.05 1 0 w -688 96 -688 -128 0 w -688 -128 64 -128 0 w 160 448 128 448 0 d 128 240 64 176 2 default w 64 176 64 -128 0 178 160 192 160 16 6 1 0.2 -0.24362679357845676 0.05 1000000 0.02 20 0.015 0.005 1 w 128 240 128 192 0 w 64 -128 128 -128 0 w 128 16 128 -128 0 w 128 -128 144 -128 0 w 144 -128 144 16 0 o 39 512 0 4099 5 0.00009765625 0 2 39 3 ``` 05.04 Use a 555 555 1 GND 2 TRIGGER 3 OUTPUT 4 RESET 5 CONTROL VOLTAGE 6 THRESHOLD 7 DISCHARGE 8 VCC ``` $ 3 0.000005 0.6798259793203881 67 7 50 5e-11 a 288 168 384 168 9 10 0 1000000 0 3.333333333333333 100000 a 288 264 384 264 9 10 0 1000000 6.666666666666666 9.999999797996534 100000 r 240 56 240 104 0 5000 r 240 104 240 152 0 5000 w 240 152 240 280 0 r 240 280 240 328 0 5000 w 240 152 288 152 0 w 240 104 272 104 0 w 272 104 272 280 0 w 272 280 288 280 0 w 464 176 464 192 0 w 384 184 384 192 0 w 384 192 464 240 0 w 464 240 464 256 0 w 384 240 384 248 0 w 384 240 464 192 0 R 240 56 240 16 0 0 40 10 0 0 0.5 R 88 56 88 24 0 0 40 10 0 0 0.5 r 88 56 88 120 0 10000 r -136 120 -136 184 0 10000 w 88 120 216 120 0 w 216 120 216 352 0 w 88 120 88 248 0 c 88 248 88 352 0 3e-7 9.999999797996534 0.001 g 88 352 88 368 0 0 r 384 368 464 368 0 10000 w 464 176 496 176 0 w 464 368 496 368 0 153 384 256 464 256 1 2 0 10 153 384 176 464 176 1 2 0 10 w 496 176 496 368 0 O 560 176 616 176 0 0 w -32 184 288 184 0 w 88 248 288 248 0 t 328 368 296 368 0 1 -9.999999696996536 1.009999969208164e-7 100 default w 216 352 296 352 0 g 296 384 296 408 0 0 w 328 368 384 368 0 x 120 115 197 118 4 16 discharge x 129 178 183 181 4 16 trigger x 120 242 195 245 4 16 threshold w 272 104 272 32 0 x 272 22 354 25 4 16 control b 562 390 200 40 0 w 240 328 240 384 0 w 240 384 296 384 0 I 496 176 560 176 0 0.5 10 w -32 184 -32 128 0 x 696 336 698 339 4 1 hello x 319 425 334 428 4 24 1 x 234 1 249 4 4 24 8 x 279 2 294 5 4 24 5 x 597 155 612 158 4 24 3 x 163 95 178 98 4 24 7 x 159 159 174 162 4 24 2 x 157 221 172 224 4 24 6 o 23 16 0 4099 10 0.00009765625 0 2 23 3 o 31 32 0 4106 10 0.00009765625 1 1 ```