diff --git a/StepperTester-rescue.dcm b/StepperTester-rescue.dcm new file mode 100755 index 0000000..5dd71cb --- /dev/null +++ b/StepperTester-rescue.dcm @@ -0,0 +1,3 @@ +EESchema-DOCLIB Version 2.0 +# +#End Doc Library diff --git a/StepperTester-rescue.lib b/StepperTester-rescue.lib new file mode 100755 index 0000000..86eaff4 --- /dev/null +++ b/StepperTester-rescue.lib @@ -0,0 +1,51 @@ +EESchema-LIBRARY Version 2.4 +#encoding utf-8 +# +# ATmega328-AU-MCU_Microchip_ATmega +# +DEF ATmega328-AU-MCU_Microchip_ATmega U 0 20 Y Y 1 F N +F0 "U" -500 1450 50 H V L BNN +F1 "ATmega328-AU-MCU_Microchip_ATmega" 100 -1450 50 H V L TNN +F2 "Package_QFP:TQFP-32_7x7mm_P0.8mm" 0 0 50 H I C CIN +F3 "" 0 0 50 H I C CNN +$FPLIST + TQFP*7x7mm*P0.8mm* +$ENDFPLIST +DRAW +S -500 -1400 500 1400 0 1 10 f +X PD3 1 600 -800 100 L 50 50 1 1 B +X PD6 10 600 -1100 100 L 50 50 1 1 B +X PD7 11 600 -1200 100 L 50 50 1 1 B +X PB0 12 600 1200 100 L 50 50 1 1 B +X PB1 13 600 1100 100 L 50 50 1 1 B +X PB2 14 600 1000 100 L 50 50 1 1 B +X PB3 15 600 900 100 L 50 50 1 1 B +X PB4 16 600 800 100 L 50 50 1 1 B +X PB5 17 600 700 100 L 50 50 1 1 B +X AVCC 18 100 1500 100 D 50 50 1 1 W +X ADC6 19 -600 1000 100 R 50 50 1 1 I +X PD4 2 600 -900 100 L 50 50 1 1 B +X AREF 20 -600 1200 100 R 50 50 1 1 I +X GND 21 0 -1500 100 U 50 50 1 1 P N +X ADC7 22 -600 900 100 R 50 50 1 1 I +X PC0 23 600 300 100 L 50 50 1 1 B +X PC1 24 600 200 100 L 50 50 1 1 B +X PC2 25 600 100 100 L 50 50 1 1 B +X PC3 26 600 0 100 L 50 50 1 1 B +X PC4 27 600 -100 100 L 50 50 1 1 B +X PC5 28 600 -200 100 L 50 50 1 1 B +X ~RESET~/PC6 29 600 -300 100 L 50 50 1 1 B +X GND 3 0 -1500 100 U 50 50 1 1 W +X PD0 30 600 -500 100 L 50 50 1 1 B +X PD1 31 600 -600 100 L 50 50 1 1 B +X PD2 32 600 -700 100 L 50 50 1 1 B +X VCC 4 0 1500 100 D 50 50 1 1 W +X GND 5 0 -1500 100 U 50 50 1 1 P N +X VCC 6 0 1500 100 D 50 50 1 1 P N +X XTAL1/PB6 7 600 600 100 L 50 50 1 1 B +X XTAL2/PB7 8 600 500 100 L 50 50 1 1 B +X PD5 9 600 -1000 100 L 50 50 1 1 B +ENDDRAW +ENDDEF +# +#End Library diff --git a/StepperTester.net b/StepperTester.net new file mode 100755 index 0000000..53f7cb7 --- /dev/null +++ b/StepperTester.net @@ -0,0 +1,388 @@ +(export (version D) + (design + (source E:\tmp\StepperTester\StepperTester.sch) + (date "1/2/2019 1:00:33 PM") + (tool "Eeschema (5.0.1)-3") + (sheet (number 1) (name /) (tstamps /) + (title_block + (title StepperTester) + (company "Scott Alfter") + (rev 0.1) + (date 2018-12-24) + (source StepperTester.sch) + (comment (number 1) (value "")) + (comment (number 2) (value "")) + (comment (number 3) (value "")) + (comment (number 4) (value ""))))) + (components + (comp (ref U2) + (value POLOLU) + (footprint pololu:pololu) + (libsource (lib pololu) (part POLOLU) (description "")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C21EDD9)) + (comp (ref U1) + (value ATmega328-AU) + (footprint Package_QFP:TQFP-32_7x7mm_P0.8mm) + (datasheet http://ww1.microchip.com/downloads/en/DeviceDoc/ATmega328_P%20AVR%20MCU%20with%20picoPower%20Technology%20Data%20Sheet%2040001984A.pdf) + (libsource (lib StepperTester-rescue) (part ATmega328-AU-MCU_Microchip_ATmega) (description "")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C21F3B5)) + (comp (ref J2) + (value Conn_01x04) + (datasheet ~) + (libsource (lib Connector_Generic) (part Conn_01x04) (description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C21F58C)) + (comp (ref U3) + (value RC1602A) + (footprint Display:RC1602A) + (datasheet http://www.raystar-optronics.com/down.php?ProID=18) + (libsource (lib Display_Character) (part RC1602A) (description "LCD 16x2 Alphanumeric gray backlight, 3 or 5 V VDD")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C2A0A64)) + (comp (ref R1) + (value 10k) + (datasheet ~) + (libsource (lib Device) (part R_POT_US) (description "Potentiometer, US symbol")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C2A3CAA)) + (comp (ref R2) + (value 220) + (datasheet ~) + (libsource (lib Device) (part R_US) (description "Resistor, US symbol")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C2A42CD)) + (comp (ref SW2) + (value SW_Push) + (footprint switches:SW_6x6_MULTI) + (libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C2A6F68)) + (comp (ref SW3) + (value SW_Push) + (footprint switches:SW_6x6_MULTI) + (libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C2A7064)) + (comp (ref SW4) + (value SW_Push) + (footprint switches:SW_6x6_MULTI) + (libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C2A7098)) + (comp (ref SW5) + (value SW_Push) + (footprint switches:SW_6x6_MULTI) + (libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C2A70EA)) + (comp (ref SW1) + (value SW_Push) + (footprint switches:SW_6x6_MULTI) + (libsource (lib Switch) (part SW_Push) (description "Push button switch, generic, two pins")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C2A7122)) + (comp (ref J1) + (value AVR-ISP-6) + (datasheet " ~") + (libsource (lib Connector) (part AVR-ISP-6) (description "Atmel 6-pin ISP connector")) + (sheetpath (names /) (tstamps /)) + (tstamp 5C2AAE5B))) + (libparts + (libpart (lib Connector) (part AVR-ISP-6) + (description "Atmel 6-pin ISP connector") + (docs " ~") + (footprints + (fp IDC?Header*2x03*) + (fp Pin?Header*2x03*)) + (fields + (field (name Reference) J) + (field (name Value) AVR-ISP-6)) + (pins + (pin (num 1) (name MISO) (type passive)) + (pin (num 2) (name VCC) (type power_in)) + (pin (num 3) (name SCK) (type passive)) + (pin (num 4) (name MOSI) (type passive)) + (pin (num 5) (name ~RST) (type passive)) + (pin (num 6) (name GND) (type power_in)))) + (libpart (lib Connector_Generic) (part Conn_01x04) + (description "Generic connector, single row, 01x04, script generated (kicad-library-utils/schlib/autogen/connector/)") + (docs ~) + (footprints + (fp Connector*:*_1x??_*)) + (fields + (field (name Reference) J) + (field (name Value) Conn_01x04)) + (pins + (pin (num 1) (name Pin_1) (type passive)) + (pin (num 2) (name Pin_2) (type passive)) + (pin (num 3) (name Pin_3) (type passive)) + (pin (num 4) (name Pin_4) (type passive)))) + (libpart (lib Device) (part R_POT_US) + (description "Potentiometer, US symbol") + (docs ~) + (footprints + (fp Potentiometer*)) + (fields + (field (name Reference) RV) + (field (name Value) R_POT_US)) + (pins + (pin (num 1) (name 1) (type passive)) + (pin (num 2) (name 2) (type passive)) + (pin (num 3) (name 3) (type passive)))) + (libpart (lib Device) (part R_US) + (description "Resistor, US symbol") + (docs ~) + (footprints + (fp R_*)) + (fields + (field (name Reference) R) + (field (name Value) R_US)) + (pins + (pin (num 1) (name ~) (type passive)) + (pin (num 2) (name ~) (type passive)))) + (libpart (lib Display_Character) (part RC1602A) + (description "LCD 16x2 Alphanumeric gray backlight, 3 or 5 V VDD") + (docs http://www.raystar-optronics.com/down.php?ProID=18) + (footprints + (fp *RC1602A*)) + (fields + (field (name Reference) U) + (field (name Value) RC1602A) + (field (name Footprint) Display:RC1602A)) + (pins + (pin (num 1) (name VSS) (type power_in)) + (pin (num 2) (name VDD) (type power_in)) + (pin (num 3) (name VO) (type power_in)) + (pin (num 4) (name RS) (type input)) + (pin (num 5) (name R/W) (type input)) + (pin (num 6) (name E) (type input)) + (pin (num 7) (name DB0) (type BiDi)) + (pin (num 8) (name DB1) (type BiDi)) + (pin (num 9) (name DB2) (type BiDi)) + (pin (num 10) (name DB3) (type BiDi)) + (pin (num 11) (name DB4) (type BiDi)) + (pin (num 12) (name DB5) (type BiDi)) + (pin (num 13) (name DB6) (type BiDi)) + (pin (num 14) (name DB7) (type BiDi)) + (pin (num 15) (name A/VEE) (type power_in)) + (pin (num 16) (name K) (type power_in)))) + (libpart (lib StepperTester-rescue) (part ATmega328-AU-MCU_Microchip_ATmega) + (footprints + (fp TQFP*7x7mm*P0.8mm*)) + (fields + (field (name Reference) U) + (field (name Value) ATmega328-AU-MCU_Microchip_ATmega) + (field (name Footprint) Package_QFP:TQFP-32_7x7mm_P0.8mm)) + (pins + (pin (num 1) (name PD3) (type BiDi)) + (pin (num 2) (name PD4) (type BiDi)) + (pin (num 3) (name GND) (type power_in)) + (pin (num 4) (name VCC) (type power_in)) + (pin (num 5) (name GND) (type passive)) + (pin (num 6) (name VCC) (type passive)) + (pin (num 7) (name XTAL1/PB6) (type BiDi)) + (pin (num 8) (name XTAL2/PB7) (type BiDi)) + (pin (num 9) (name PD5) (type BiDi)) + (pin (num 10) (name PD6) (type BiDi)) + (pin (num 11) (name PD7) (type BiDi)) + (pin (num 12) (name PB0) (type BiDi)) + (pin (num 13) (name PB1) (type BiDi)) + (pin (num 14) (name PB2) (type BiDi)) + (pin (num 15) (name PB3) (type BiDi)) + (pin (num 16) (name PB4) (type BiDi)) + (pin (num 17) (name PB5) (type BiDi)) + (pin (num 18) (name AVCC) (type power_in)) + (pin (num 19) (name ADC6) (type input)) + (pin (num 20) (name AREF) (type input)) + (pin (num 21) (name GND) (type passive)) + (pin (num 22) (name ADC7) (type input)) + (pin (num 23) (name PC0) (type BiDi)) + (pin (num 24) (name PC1) (type BiDi)) + (pin (num 25) (name PC2) (type BiDi)) + (pin (num 26) (name PC3) (type BiDi)) + (pin (num 27) (name PC4) (type BiDi)) + (pin (num 28) (name PC5) (type BiDi)) + (pin (num 29) (name ~RESET~/PC6) (type BiDi)) + (pin (num 30) (name PD0) (type BiDi)) + (pin (num 31) (name PD1) (type BiDi)) + (pin (num 32) (name PD2) (type BiDi)))) + (libpart (lib Switch) (part SW_Push) + (description "Push button switch, generic, two pins") + (fields + (field (name Reference) SW) + (field (name Value) SW_Push)) + (pins + (pin (num 1) (name 1) (type passive)) + (pin (num 2) (name 2) (type passive)))) + (libpart (lib pololu) (part POLOLU) + (fields + (field (name Reference) U) + (field (name Value) POLOLU)) + (pins + (pin (num 1) (name ~ENABLE) (type input)) + (pin (num 2) (name MS1/SDI) (type input)) + (pin (num 3) (name MS2/SCK) (type input)) + (pin (num 4) (name MS3/CS) (type input)) + (pin (num 5) (name SDO/~RESET) (type input)) + (pin (num 6) (name ~SLEEP) (type input)) + (pin (num 7) (name STEP) (type input)) + (pin (num 8) (name DIR) (type input)) + (pin (num 9) (name GNDLOG) (type input)) + (pin (num 10) (name VDD) (type power_in)) + (pin (num 11) (name MOT-1B) (type output)) + (pin (num 12) (name MOT-1A) (type output)) + (pin (num 13) (name MOT-2A) (type output)) + (pin (num 14) (name MOT-2B) (type output)) + (pin (num 15) (name GNDMOT) (type input)) + (pin (num 16) (name VMOT) (type power_in)) + (pin (num 17) (name DIAG0) (type output)) + (pin (num 18) (name DIAG1) (type output))))) + (libraries + (library (logical Connector) + (uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Connector.lib")) + (library (logical Connector_Generic) + (uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Connector_Generic.lib")) + (library (logical Device) + (uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Device.lib")) + (library (logical Display_Character) + (uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Display_Character.lib")) + (library (logical StepperTester-rescue) + (uri E:\tmp\StepperTester/StepperTester-rescue.lib)) + (library (logical Switch) + (uri "C:\\Program Files\\KiCad\\share\\kicad\\library/Switch.lib")) + (library (logical pololu) + (uri E:\tmp\StepperTester/kicad-libs/pololu.lib))) + (nets + (net (code 1) (name +12V) + (node (ref U2) (pin 16))) + (net (code 2) (name GND) + (node (ref SW1) (pin 2)) + (node (ref SW5) (pin 2)) + (node (ref SW4) (pin 2)) + (node (ref R1) (pin 1)) + (node (ref J1) (pin 6)) + (node (ref U3) (pin 1)) + (node (ref U1) (pin 3)) + (node (ref U2) (pin 15)) + (node (ref U2) (pin 9)) + (node (ref U3) (pin 16)) + (node (ref U3) (pin 5)) + (node (ref U1) (pin 5)) + (node (ref U1) (pin 21)) + (node (ref U2) (pin 1)) + (node (ref SW2) (pin 2)) + (node (ref SW3) (pin 2))) + (net (code 3) (name "Net-(R2-Pad2)") + (node (ref R2) (pin 2)) + (node (ref U3) (pin 15))) + (net (code 4) (name +5V) + (node (ref U1) (pin 4)) + (node (ref R2) (pin 1)) + (node (ref U1) (pin 18)) + (node (ref J1) (pin 2)) + (node (ref U2) (pin 6)) + (node (ref U2) (pin 10)) + (node (ref U3) (pin 2)) + (node (ref R1) (pin 3)) + (node (ref U1) (pin 6))) + (net (code 5) (name "Net-(U1-Pad19)") + (node (ref U1) (pin 19))) + (net (code 6) (name LCD_RS) + (node (ref U1) (pin 2)) + (node (ref U3) (pin 4))) + (net (code 7) (name "Net-(U1-Pad20)") + (node (ref U1) (pin 20))) + (net (code 8) (name "Net-(U1-Pad22)") + (node (ref U1) (pin 22))) + (net (code 9) (name DP_UP) + (node (ref U1) (pin 23)) + (node (ref SW2) (pin 1))) + (net (code 10) (name DP_DOWN) + (node (ref U1) (pin 24)) + (node (ref SW4) (pin 1))) + (net (code 11) (name DP_LEFT) + (node (ref SW1) (pin 1)) + (node (ref U1) (pin 25))) + (net (code 12) (name DP_RIGHT) + (node (ref SW5) (pin 1)) + (node (ref U1) (pin 26))) + (net (code 13) (name DP_ENT) + (node (ref SW3) (pin 1)) + (node (ref U1) (pin 27))) + (net (code 14) (name "Net-(U1-Pad28)") + (node (ref U1) (pin 28))) + (net (code 15) (name ~RESET) + (node (ref J1) (pin 5)) + (node (ref U1) (pin 29))) + (net (code 16) (name CS) + (node (ref U1) (pin 7)) + (node (ref U2) (pin 4))) + (net (code 17) (name LCD_EN) + (node (ref U3) (pin 6)) + (node (ref U1) (pin 9))) + (net (code 18) (name MISO) + (node (ref U2) (pin 5)) + (node (ref J1) (pin 1)) + (node (ref U1) (pin 16))) + (net (code 19) (name "Net-(J2-Pad3)") + (node (ref U2) (pin 12)) + (node (ref J2) (pin 3))) + (net (code 20) (name "Net-(J2-Pad2)") + (node (ref U2) (pin 13)) + (node (ref J2) (pin 2))) + (net (code 21) (name "Net-(J2-Pad1)") + (node (ref J2) (pin 1)) + (node (ref U2) (pin 14))) + (net (code 22) (name "Net-(U2-Pad17)") + (node (ref U2) (pin 17))) + (net (code 23) (name DIAG1) + (node (ref U2) (pin 18)) + (node (ref U1) (pin 8))) + (net (code 24) (name MOSI) + (node (ref U1) (pin 15)) + (node (ref J1) (pin 4)) + (node (ref U2) (pin 2))) + (net (code 25) (name SCK) + (node (ref J1) (pin 3)) + (node (ref U1) (pin 17)) + (node (ref U2) (pin 3))) + (net (code 26) (name "Net-(J2-Pad4)") + (node (ref J2) (pin 4)) + (node (ref U2) (pin 11))) + (net (code 27) (name STEP) + (node (ref U1) (pin 10)) + (node (ref U2) (pin 7))) + (net (code 28) (name DIR) + (node (ref U1) (pin 11)) + (node (ref U2) (pin 8))) + (net (code 29) (name "Net-(U1-Pad12)") + (node (ref U1) (pin 12))) + (net (code 30) (name "Net-(U1-Pad13)") + (node (ref U1) (pin 13))) + (net (code 31) (name "Net-(U1-Pad14)") + (node (ref U1) (pin 14))) + (net (code 32) (name LCD_D0) + (node (ref U3) (pin 7)) + (node (ref U1) (pin 30))) + (net (code 33) (name LCD_D1) + (node (ref U1) (pin 31)) + (node (ref U3) (pin 8))) + (net (code 34) (name LCD_D2) + (node (ref U1) (pin 32)) + (node (ref U3) (pin 9))) + (net (code 35) (name "Net-(R1-Pad2)") + (node (ref U3) (pin 3)) + (node (ref R1) (pin 2))) + (net (code 36) (name LCD_D3) + (node (ref U3) (pin 10)) + (node (ref U1) (pin 1))) + (net (code 37) (name "Net-(U3-Pad11)") + (node (ref U3) (pin 11))) + (net (code 38) (name "Net-(U3-Pad12)") + (node (ref U3) (pin 12))) + (net (code 39) (name "Net-(U3-Pad13)") + (node (ref U3) (pin 13))) + (net (code 40) (name "Net-(U3-Pad14)") + (node (ref U3) (pin 14))))) \ No newline at end of file diff --git a/StepperTester.sch b/StepperTester.sch index 8c698e9..8b36d43 100755 --- a/StepperTester.sch +++ b/StepperTester.sch @@ -321,7 +321,7 @@ U 1 1 5C2A6F68 P 9000 3450 F 0 "SW2" H 9000 3643 50 0000 C CNN F 1 "SW_Push" H 9000 3644 50 0001 C CNN -F 2 "" H 9000 3650 50 0001 C CNN +F 2 "switches:SW_6x6_MULTI" H 9000 3650 50 0001 C CNN F 3 "" H 9000 3650 50 0001 C CNN 1 9000 3450 1 0 0 -1 @@ -332,7 +332,7 @@ U 1 1 5C2A7064 P 9000 3900 F 0 "SW3" H 9000 4093 50 0000 C CNN F 1 "SW_Push" H 9000 4094 50 0001 C CNN -F 2 "" H 9000 4100 50 0001 C CNN +F 2 "switches:SW_6x6_MULTI" H 9000 4100 50 0001 C CNN F 3 "" H 9000 4100 50 0001 C CNN 1 9000 3900 1 0 0 -1 @@ -343,7 +343,7 @@ U 1 1 5C2A7098 P 9000 4350 F 0 "SW4" H 9000 4543 50 0000 C CNN F 1 "SW_Push" H 9000 4544 50 0001 C CNN -F 2 "" H 9000 4550 50 0001 C CNN +F 2 "switches:SW_6x6_MULTI" H 9000 4550 50 0001 C CNN F 3 "" H 9000 4550 50 0001 C CNN 1 9000 4350 1 0 0 -1 @@ -354,7 +354,7 @@ U 1 1 5C2A70EA P 9550 3900 F 0 "SW5" H 9550 4093 50 0000 C CNN F 1 "SW_Push" H 9550 4094 50 0001 C CNN -F 2 "" H 9550 4100 50 0001 C CNN +F 2 "switches:SW_6x6_MULTI" H 9550 4100 50 0001 C CNN F 3 "" H 9550 4100 50 0001 C CNN 1 9550 3900 1 0 0 -1 @@ -365,7 +365,7 @@ U 1 1 5C2A7122 P 8450 3900 F 0 "SW1" H 8450 4093 50 0000 C CNN F 1 "SW_Push" H 8450 4094 50 0001 C CNN -F 2 "" H 8450 4100 50 0001 C CNN +F 2 "switches:SW_6x6_MULTI" H 8450 4100 50 0001 C CNN F 3 "" H 8450 4100 50 0001 C CNN 1 8450 3900 1 0 0 -1