diff --git a/usb-bug-detector.sch b/usb-bug-detector.sch new file mode 100644 index 0000000..0f8dd93 --- /dev/null +++ b/usb-bug-detector.sch @@ -0,0 +1,507 @@ +v 20210407 2 +C 47000 500 1 0 0 title.sym +{ +T 48000 1200 5 10 1 1 0 0 1 +date=$Date$ +T 51300 1200 5 10 1 1 0 0 1 +org=CuVoodoo +T 51300 900 5 10 1 1 0 0 1 +authors=King Kévin +T 50000 1700 5 14 1 1 0 4 1 +title=USB bug detector +T 48000 900 5 10 1 1 0 0 1 +version=$Version$ +T 48000 600 5 10 1 1 0 0 1 +revision=$Revision$ +T 51300 600 5 10 1 1 0 0 1 +licence=CERN-OHL-S +T 47000 2300 5 10 0 0 0 0 1 +device=none +T 47000 2500 5 10 0 0 0 0 1 +footprint=none +} +C 42700 800 1 90 0 capacitor-1.sym +{ +T 42000 1000 5 10 0 0 90 0 1 +device=CAPACITOR +T 42600 1400 5 10 1 1 0 0 1 +refdes=C1 +T 41800 1000 5 10 0 0 90 0 1 +symversion=0.1 +T 42600 1100 5 10 1 1 180 6 1 +value=100nF +T 42700 800 5 10 0 0 0 0 1 +footprint=CAPC1608X92N.lht +} +C 42200 3100 1 0 0 SN74HC02D.sym +{ +T 42200 3100 5 8 0 0 0 0 1 +footprint=SOIC127P600X175-14N.fp +T 42600 6760 5 10 1 1 0 0 1 +refdes=U1 +T 43160 3440 5 10 1 1 0 2 1 +device=SN74HC02D +T 42200 3100 5 10 0 0 0 0 1 +footprint=SOIC127P600X175-14N.lht +} +C 45500 2800 1 0 0 SN74LVC1G02DBV.sym +{ +T 45500 2800 5 8 0 0 0 0 1 +footprint=SOT95P280X145-5N.fp +T 45900 4260 5 10 1 1 0 0 1 +refdes=U3 +T 46460 3140 5 10 1 1 0 2 1 +device=SN74LVC1G02DBV +T 45500 2800 5 10 0 0 0 0 1 +footprint=SOT95P280X145-5N.lht +} +C 40600 1700 1 0 0 VCC.sym +C 40700 800 1 0 0 GND.sym +C 47300 10100 1 0 0 switch-pushbutton-no-1.sym +{ +T 47700 10400 5 10 1 1 0 0 1 +refdes=S1 +T 47700 10700 5 10 0 0 0 0 1 +device=SWITCH_PUSHBUTTON_NO +T 47300 10100 5 10 0 0 0 0 1 +footprint=MECHANICAL_1TS002E.lht +} +C 40100 9000 1 0 0 USB20_RECEPTACLE.sym +{ +T 40100 9000 5 8 0 0 0 0 1 +footprint=CONNECTOR_USB20_RECEPTACLE.fp +T 40300 9160 5 10 1 1 0 3 1 +refdes=J1 +T 40160 11140 5 10 1 1 0 2 1 +device=USB20_RECEPTACLE +T 40100 9000 5 10 0 0 0 0 1 +footprint=CONNECTOR_USB20_RECEPTACLE.lht +} +C 40600 1700 1 270 0 battery-1.sym +{ +T 41500 1400 5 10 0 0 270 0 1 +device=BATTERY +T 41100 1500 5 10 1 1 0 0 1 +refdes=B1 +T 41900 1400 5 10 0 0 270 0 1 +symversion=0.1 +T 41100 1100 5 10 1 1 0 0 1 +value=CR2030 +T 40600 1700 5 10 0 0 0 0 1 +footprint=SQJ-WJ-CR2032-1-W.lht +} +C 45500 5500 1 0 0 SN74LVC1G02DBV.sym +{ +T 45500 5500 5 8 0 0 0 0 1 +footprint=SOT95P280X145-5N.fp +T 45900 6960 5 10 1 1 0 0 1 +refdes=U2 +T 46460 5840 5 10 1 1 0 2 1 +device=SN74LVC1G02DBV +T 45500 5500 5 10 0 0 0 0 1 +footprint=SOT95P280X145-5N.lht +} +C 43000 2900 1 0 0 GND.sym +C 50600 2600 1 0 0 GND.sym +C 50600 5200 1 0 0 GND.sym +C 42900 7100 1 0 0 VCC.sym +C 50500 4600 1 0 0 VCC.sym +C 50500 7200 1 0 0 VCC.sym +C 46200 7300 1 0 0 VCC.sym +C 46200 4600 1 0 0 VCC.sym +C 40900 8600 1 0 0 nc-bottom-1.sym +{ +T 40900 9200 5 10 0 0 0 0 1 +value=NoConnection +T 40900 9600 5 10 0 0 0 0 1 +device=DRC_Directive +T 40900 10000 5 10 0 0 0 0 1 +symversion=1.1 +} +C 40700 8600 1 0 0 nc-bottom-1.sym +{ +T 40700 9200 5 10 0 0 0 0 1 +value=NoConnection +T 40700 9600 5 10 0 0 0 0 1 +device=DRC_Directive +T 40700 10000 5 10 0 0 0 0 1 +symversion=1.1 +} +C 42400 600 1 0 0 GND.sym +C 42300 1700 1 0 0 VCC.sym +C 43600 800 1 90 0 capacitor-1.sym +{ +T 42900 1000 5 10 0 0 90 0 1 +device=CAPACITOR +T 42700 1000 5 10 0 0 90 0 1 +symversion=0.1 +T 43500 1400 5 10 1 1 0 0 1 +refdes=C2 +T 43500 1100 5 10 1 1 180 6 1 +value=100nF +T 43600 800 5 10 0 0 0 0 1 +footprint=CAPC1608X92N.lht +} +C 43300 600 1 0 0 GND.sym +C 43200 1700 1 0 0 VCC.sym +C 44500 800 1 90 0 capacitor-1.sym +{ +T 43800 1000 5 10 0 0 90 0 1 +device=CAPACITOR +T 43600 1000 5 10 0 0 90 0 1 +symversion=0.1 +T 44400 1400 5 10 1 1 0 0 1 +refdes=C3 +T 44400 1100 5 10 1 1 180 6 1 +value=100nF +T 44500 800 5 10 0 0 0 0 1 +footprint=CAPC1608X92N.lht +} +C 44200 600 1 0 0 GND.sym +C 44100 1700 1 0 0 VCC.sym +C 45400 800 1 90 0 capacitor-1.sym +{ +T 44700 1000 5 10 0 0 90 0 1 +device=CAPACITOR +T 44500 1000 5 10 0 0 90 0 1 +symversion=0.1 +T 45300 1400 5 10 1 1 0 0 1 +refdes=C4 +T 45300 1100 5 10 1 1 180 6 1 +value=100nF +T 45400 800 5 10 0 0 0 0 1 +footprint=CAPC1608X92N.lht +} +C 45100 600 1 0 0 GND.sym +C 45000 1700 1 0 0 VCC.sym +C 46300 800 1 90 0 capacitor-1.sym +{ +T 45600 1000 5 10 0 0 90 0 1 +device=CAPACITOR +T 45400 1000 5 10 0 0 90 0 1 +symversion=0.1 +T 46200 1400 5 10 1 1 0 0 1 +refdes=C5 +T 46200 1100 5 10 1 1 180 6 1 +value=100nF +T 46300 800 5 10 0 0 0 0 1 +footprint=CAPC1608X92N.lht +} +C 46000 600 1 0 0 GND.sym +C 45900 1700 1 0 0 VCC.sym +C 43900 4800 1 0 0 nc-right-1.sym +{ +T 44000 5300 5 10 0 0 0 0 1 +value=NoConnection +T 44000 5500 5 10 0 0 0 0 1 +device=DRC_Directive +T 44000 6100 5 10 0 0 0 0 1 +symversion=1.1 +} +C 43900 4400 1 0 0 nc-right-1.sym +{ +T 44000 4900 5 10 0 0 0 0 1 +value=NoConnection +T 44000 5100 5 10 0 0 0 0 1 +device=DRC_Directive +T 44000 5700 5 10 0 0 0 0 1 +symversion=1.1 +} +C 42000 3800 1 270 0 GND.sym +C 42000 4200 1 270 0 GND.sym +C 42000 4600 1 270 0 GND.sym +C 42000 5000 1 270 0 GND.sym +T 41800 3100 9 10 1 0 90 0 3 +do not leave unused +inputs floating, +this draws power +C 42300 10400 1 0 0 nc-right-1.sym +{ +T 42400 10900 5 10 0 0 0 0 1 +value=NoConnection +T 42400 11100 5 10 0 0 0 0 1 +device=DRC_Directive +T 42400 11700 5 10 0 0 0 0 1 +symversion=1.1 +} +C 42300 10200 1 0 0 nc-right-1.sym +{ +T 42400 10700 5 10 0 0 0 0 1 +value=NoConnection +T 42400 10900 5 10 0 0 0 0 1 +device=DRC_Directive +T 42400 11500 5 10 0 0 0 0 1 +symversion=1.1 +} +C 42300 10900 1 0 0 VCC.sym +N 42300 10700 42500 10700 4 +N 42500 10700 42500 10900 4 +N 43900 5700 44200 5700 4 +{ +T 44000 5700 5 10 1 1 0 0 1 +netname=Q +} +N 43900 5300 44200 5300 4 +{ +T 44000 5300 5 10 1 1 0 0 1 +netname=\_Q\_ +} +C 44700 10300 1 0 0 led-1.sym +{ +T 45500 10900 5 10 0 0 0 0 1 +device=LED +T 45500 11100 5 10 0 0 0 0 1 +symversion=0.1 +T 45500 10700 5 10 1 1 0 0 1 +refdes=LED1 +T 44700 10300 5 10 0 1 0 0 1 +footprint=LEDC1608X90N.lht +} +C 43800 10400 1 0 0 resistor-1.sym +{ +T 44100 10800 5 10 0 0 0 0 1 +device=RESISTOR +T 44000 10700 5 10 1 1 0 0 1 +refdes=R1 +T 44400 10700 5 10 1 1 0 0 1 +value=1k +T 43800 10400 5 10 0 0 0 0 1 +footprint=RESC1608X55N.lht +} +C 45500 10300 1 0 0 GND.sym +C 44700 9500 1 0 0 led-1.sym +{ +T 45500 10100 5 10 0 0 0 0 1 +device=LED +T 45500 10300 5 10 0 0 0 0 1 +symversion=0.1 +T 45500 9900 5 10 1 1 0 0 1 +refdes=LED2 +T 44700 9500 5 10 0 1 0 0 1 +footprint=LEDC1608X90N.lht +} +C 43800 9600 1 0 0 resistor-1.sym +{ +T 44100 10000 5 10 0 0 0 0 1 +device=RESISTOR +T 44000 9900 5 10 1 1 0 0 1 +refdes=R2 +T 44400 9900 5 10 1 1 0 0 1 +value=1k +T 43800 9600 5 10 0 0 0 0 1 +footprint=RESC1608X55N.lht +} +C 45500 9500 1 0 0 GND.sym +T 43200 11100 9 10 1 0 0 0 1 +lights up when plug has a capacitor +T 43300 9000 9 10 1 0 0 0 2 +on when detector is ready to be used +(optional, = LED1 off) +N 43500 10500 43800 10500 4 +{ +T 43600 10500 5 10 1 1 0 0 1 +netname=Q +} +N 49500 3900 49800 3900 4 +{ +T 49600 3900 5 10 1 1 0 0 1 +netname=Q +} +N 45200 3900 45500 3900 4 +{ +T 45300 3900 5 10 1 1 0 0 1 +netname=Q +} +N 43500 9700 43800 9700 4 +{ +T 43600 9700 5 10 1 1 0 0 1 +netname=\_Q\_ +} +N 49500 6500 49800 6500 4 +{ +T 49600 6500 5 10 1 1 0 0 1 +netname=\_Q\_ +} +N 45200 6600 45500 6600 4 +{ +T 45300 6600 5 10 1 1 0 0 1 +netname=\_Q\_ +} +N 41900 6500 42200 6500 4 +{ +T 42000 6500 5 10 1 1 0 0 1 +netname=\_Q\_ +} +N 41900 5700 42200 5700 4 +{ +T 42000 5700 5 10 1 1 0 0 1 +netname=Q +} +C 46300 5300 1 0 0 GND.sym +C 46300 2600 1 0 0 GND.sym +N 51500 6300 51800 6300 4 +{ +T 51600 6300 5 10 1 1 0 0 1 +netname=Q +} +N 47200 6400 47500 6400 4 +{ +T 47300 6400 5 10 1 1 0 0 1 +netname=Q +} +N 51500 3700 51800 3700 4 +{ +T 51600 3700 5 10 1 1 0 0 1 +netname=\_Q\_ +} +N 47200 3700 47500 3700 4 +{ +T 47300 3700 5 10 1 1 0 0 1 +netname=\_Q\_ +} +T 42100 2300 9 10 1 0 0 0 1 +bypass capacitors +C 48200 10100 1 270 0 resistor-1.sym +{ +T 48600 9800 5 10 0 0 270 0 1 +device=RESISTOR +T 48500 9700 5 10 1 1 0 0 1 +refdes=R3 +T 48500 9400 5 10 1 1 0 0 1 +value=1k +T 48200 10100 5 10 0 0 0 0 1 +footprint=RESC1608X55N.lht +} +N 49800 6100 49500 6100 4 +{ +T 49700 6100 5 10 1 1 0 6 1 +netname=S +} +N 45500 6200 45200 6200 4 +{ +T 45400 6200 5 10 1 1 0 6 1 +netname=S +} +N 49800 3500 49500 3500 4 +{ +T 49700 3500 5 10 1 1 0 6 1 +netname=R +} +N 45500 3500 45200 3500 4 +{ +T 45400 3500 5 10 1 1 0 6 1 +netname=R +} +N 42600 10100 42300 10100 4 +{ +T 42500 10100 5 10 1 1 0 6 1 +netname=S +} +N 48600 10100 48300 10100 4 +{ +T 48500 10100 5 10 1 1 0 6 1 +netname=R +} +C 46900 10300 1 0 0 VCC.sym +N 47300 10100 47100 10100 4 +N 47100 10100 47100 10300 4 +C 48200 9000 1 0 0 GND.sym +T 46900 10900 9 10 1 0 0 0 2 +press to reset detector +(switches LED2 on) +N 51900 10100 52300 10100 4 +{ +T 52200 10100 5 10 1 1 0 6 1 +netname=S +} +C 49400 10300 1 0 0 VCC.sym +N 49800 10100 49600 10100 4 +N 49600 10100 49600 10300 4 +T 49400 10900 9 10 1 0 0 0 2 +press to simular plug with capacitor +(switches LED1 on, optional) +C 49800 10100 1 0 0 switch-pushbutton-no-1.sym +{ +T 50200 10400 5 10 1 1 0 0 1 +refdes=S2 +T 50200 10700 5 10 0 0 0 0 1 +device=SWITCH_PUSHBUTTON_NO +T 49800 10100 5 10 0 0 0 0 1 +footprint=MECHANICAL_1TS002E.lht +} +C 51900 10300 1 180 0 capacitor-1.sym +{ +T 51700 9600 5 10 0 0 180 0 1 +device=CAPACITOR +T 51700 9400 5 10 0 0 180 0 1 +symversion=0.1 +T 51100 10200 5 10 1 1 0 0 1 +refdes=C6 +T 52100 10500 5 10 1 1 180 0 1 +value=100nF +T 51900 10300 5 10 0 0 0 0 1 +footprint=CAPC1608X92N.lht +} +N 51000 10100 50800 10100 4 +C 50800 10100 1 270 0 resistor-1.sym +{ +T 51200 9800 5 10 0 0 270 0 1 +device=RESISTOR +T 51100 9700 5 10 1 1 0 0 1 +refdes=R5 +T 51100 9400 5 10 1 1 0 0 1 +value=1k +T 50800 10100 5 10 0 0 0 0 1 +footprint=RESC1608X55N.lht +} +C 50800 9000 1 0 0 GND.sym +C 42400 10100 1 270 0 resistor-1.sym +{ +T 42800 9800 5 10 0 0 270 0 1 +device=RESISTOR +T 42700 9700 5 10 1 1 0 0 1 +refdes=R4 +T 42700 9400 5 10 1 1 0 0 1 +value=1k +T 42400 10100 5 10 0 0 0 0 1 +footprint=RESC1608X55N.lht +} +C 42400 9000 1 0 0 GND.sym +T 44700 8100 9 10 1 0 0 0 1 +SR latch using NOR gates (in various alternative packages) +T 42800 7700 9 10 1 0 0 0 1 +SOIC-14 +T 45900 7800 9 10 1 0 0 0 1 +SOT23-5 +T 50300 7800 9 10 1 0 0 0 1 +SOT-353 +N 42200 5300 41900 5300 4 +{ +T 42100 5300 5 10 1 1 0 6 1 +netname=S +} +N 42200 6100 41900 6100 4 +{ +T 42100 6100 5 10 1 1 0 6 1 +netname=R +} +C 49800 5400 1 0 0 SN74LVC1G02DCK.sym +{ +T 49800 5400 5 8 0 0 0 0 1 +footprint=SOT65P210X110-5N.lht +T 50200 6860 5 10 1 1 0 0 1 +refdes=U4 +T 50760 5740 5 10 1 1 0 2 1 +device=SN74LVC1G02DCK +} +C 49800 2800 1 0 0 SN74LVC1G02DCK.sym +{ +T 49800 2800 5 8 0 0 0 0 1 +footprint=SOT65P210X110-5N.lht +T 50200 4260 5 10 1 1 0 0 1 +refdes=U5 +T 50760 3140 5 10 1 1 0 2 1 +device=SN74LVC1G02DCK +} +T 40600 2300 9 10 1 0 0 0 1 +power