20 Commits

Author SHA1 Message Date
Ricardo
5ca93a3f8e Still trying to fix links. 2023-04-19 14:28:20 +00:00
Ricardo
e0fee1e1fd Fixing links. 2023-04-19 14:26:12 +00:00
Ricardo
0c5d7cf52e Test 2020-09-27 22:45:25 +00:00
Ricardo
f245136e7c Minor change for shell test. 2020-09-27 22:27:48 +00:00
8a2c3afb4a Added 2 pictures to README.md 2019-03-21 19:41:50 +00:00
d20d852d92 Fixed some wrong comments. 2019-01-20 00:44:34 +00:00
2350a74f06 Optimized code v01.ino 2019-01-13 21:53:40 +00:00
d5d6a4bffe Made RS422 to USB passtrought, works both ways now. 2018-12-13 21:28:04 +00:00
466a748e46 Fixed OLED init to match latest Adafruit_SSD1306 library update. 2018-12-13 20:26:26 +00:00
f3ab7adf06 Delete 'mango' 2018-12-10 09:12:43 +01:00
760545d79a Testing 123 2018-12-10 08:07:16 +00:00
aabcbba93b Finished commenting v01 code, updated schematic to new Kicad 5 version. 2018-11-20 12:27:42 +00:00
6bb83c7b8d Updated TODO and fixed some issues in revision B of the PCB. 2018-03-07 11:44:41 +00:00
2c55a3e935 Rechanging project name back to NMM-1. 2018-03-05 09:24:34 +00:00
Ricardo
3bb817a27f Fixing menus. 2018-03-03 11:40:58 +00:00
8a8ad702e2 Started on the revision B of the schematic. 2018-03-02 19:58:05 +00:00
Ricardo
349916b1ff Fixing menu order. 2018-03-01 22:32:37 +00:00
Ricardo
63e41e9c32 Merge branch 'nmea0183'
Work on nmea0183 done.
2018-02-22 21:40:35 +00:00
Ricardo
099b6c3297 Fixed label pin out on nmea plug. 2018-02-10 15:45:03 +00:00
Ricardo Work
52f1ede0e7 Updated TODO file with PCB fixes for future revision. 2018-02-01 16:34:50 +00:00
44 changed files with 17710 additions and 250 deletions

View File

@@ -1,4 +1,4 @@
update=Thu 16 Mar 2017 19:35:16 GMT
update=Fri 02 Mar 2018 01:51:14 PM GMT
version=1
last_client=kicad
[pcbnew]
@@ -27,7 +27,7 @@ NetIExt=net
version=1
[eeschema]
version=1
LibDir=C:/Users/Ricardo.MARAS/Desktop/Stuff/Sveins/libs;C:/Program Files/kicad-library
LibDir=/home/ricardo/Projects/Kicad/libs
[eeschema/libraries]
LibName1=nmm1-rescue
LibName2=power

View File

@@ -0,0 +1,475 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# nmm1_B-rescue_+3V3
#
DEF nmm1_B-rescue_+3V3 #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "nmm1_B-rescue_+3V3" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X +3V3 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_ATMEGA328P-AU
#
DEF nmm1_B-rescue_ATMEGA328P-AU U 0 40 Y Y 1 F N
F0 "U" -750 1250 50 H V L BNN
F1 "nmm1_B-rescue_ATMEGA328P-AU" 400 -1400 50 H V L BNN
F2 "Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm" 0 0 50 H I C CIN
F3 "" 0 0 50 H I C CNN
$FPLIST
TQFP*7x7mm*Pitch0.8mm*
$ENDFPLIST
DRAW
S -750 1200 850 -1300 0 1 10 f
X (PCINT19/OC2B/INT1)PD3 1 1000 -800 150 L 40 40 1 1 B
X (PCINT22/OC0A/AIN0)PD6 10 1000 -1100 150 L 40 40 1 1 B
X (PCINT23/AIN1)PD7 11 1000 -1200 150 L 40 40 1 1 B
X (PCINT0/CLKO/ICP1)PB0 12 1000 1100 150 L 40 40 1 1 B
X (PCINT1/OC1A)PB1 13 1000 1000 150 L 40 40 1 1 B
X (PCINT2/OC1B/~SS~)PB2 14 1000 900 150 L 40 40 1 1 B
X (PCINT3/OC2A/MOSI)PB3 15 1000 800 150 L 40 40 1 1 B
X (PCINT4/MISO)PB4 16 1000 700 150 L 40 40 1 1 B
X (PCINT5/SCK)PB5 17 1000 600 150 L 40 40 1 1 B
X AVCC 18 -900 800 150 R 40 40 1 1 W
X ADC6 19 -900 -250 150 R 40 40 1 1 I
X (PCINT20/XCK/T0)PD4 2 1000 -900 150 L 40 40 1 1 B
X AREF 20 -900 500 150 R 40 40 1 1 B
X GND 21 -900 -1000 150 R 40 40 1 1 W
X ADC7 22 -900 -350 150 R 40 40 1 1 I
X (PCINT8/ADC0)PC0 23 1000 250 150 L 40 40 1 1 B
X (PCINT9/ADC1)PC1 24 1000 150 150 L 40 40 1 1 B
X (PCINT10/ADC2)PC2 25 1000 50 150 L 40 40 1 1 B
X (PCINT11/ADC3)PC3 26 1000 -50 150 L 40 40 1 1 B
X (PCINT12/SDA/ADC4)PC4 27 1000 -150 150 L 40 40 1 1 B
X (PCINT13/SCL/ADC5)PC5 28 1000 -250 150 L 40 40 1 1 B
X (PCINT14/~RESET~)PC6 29 1000 -350 150 L 40 40 1 1 B
X GND 3 -900 -1200 150 R 40 40 1 1 W
X (PCINT16/RXD)PD0 30 1000 -500 150 L 40 40 1 1 B
X (PCINT17/TXD)PD1 31 1000 -600 150 L 40 40 1 1 B
X (PCINT18/INT0)PD2 32 1000 -700 150 L 40 40 1 1 B
X VCC 4 -900 1100 150 R 40 40 1 1 W
X GND 5 -900 -1100 150 R 40 40 1 1 W
X VCC 6 -900 1000 150 R 40 40 1 1 W
X (PCINT6/XTAL1/TOSC1)PB6 7 1000 500 150 L 40 40 1 1 B
X (PCINT7/XTAL2/TOSC2)PB7 8 1000 400 150 L 40 40 1 1 B
X (PCINT21/OC0B/T1)PD5 9 1000 -1000 150 L 40 40 1 1 B
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_C
#
DEF nmm1_B-rescue_C C 0 10 N Y 1 F N
F0 "C" 25 100 50 H V L CNN
F1 "nmm1_B-rescue_C" 25 -100 50 H V L CNN
F2 "" 38 -150 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
C_*
$ENDFPLIST
DRAW
P 2 0 1 20 -80 -30 80 -30 N
P 2 0 1 20 -80 30 80 30 N
X ~ 1 0 150 110 D 50 50 1 1 P
X ~ 2 0 -150 110 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_Conn_01x02
#
DEF nmm1_B-rescue_Conn_01x02 J 0 40 Y N 1 F N
F0 "J" 0 100 50 H V C CNN
F1 "nmm1_B-rescue_Conn_01x02" 0 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 50 50 -150 1 1 10 f
X Pin_1 1 -200 0 150 R 50 50 1 1 P
X Pin_2 2 -200 -100 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_Conn_01x04
#
DEF nmm1_B-rescue_Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "nmm1_B-rescue_Conn_01x04" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_Conn_01x05
#
DEF nmm1_B-rescue_Conn_01x05 J 0 40 Y N 1 F N
F0 "J" 0 300 50 H V C CNN
F1 "nmm1_B-rescue_Conn_01x05" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 205 0 195 1 1 6 N
S -50 250 50 -250 1 1 10 f
X Pin_1 1 -200 200 150 R 50 50 1 1 P
X Pin_2 2 -200 100 150 R 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 -200 -100 150 R 50 50 1 1 P
X Pin_5 5 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_Conn_02x03_Odd_Even
#
DEF nmm1_B-rescue_Conn_02x03_Odd_Even J 0 40 Y N 1 F N
F0 "J" 50 200 50 H V C CNN
F1 "nmm1_B-rescue_Conn_02x03_Odd_Even" 50 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*2x??x*mm*
Connector*:*2x???Pitch*
Pin_Header_Straight_2X*
Pin_Header_Angled_2X*
Socket_Strip_Straight_2X*
Socket_Strip_Angled_2X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 150 -150 1 1 10 f
S 150 -95 100 -105 1 1 6 N
S 150 5 100 -5 1 1 6 N
S 150 105 100 95 1 1 6 N
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 300 100 150 L 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 300 0 150 L 50 50 1 1 P
X Pin_5 5 -200 -100 150 R 50 50 1 1 P
X Pin_6 6 300 -100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_Crystal
#
DEF nmm1_B-rescue_Crystal Y 0 40 N N 1 F N
F0 "Y" 0 150 50 H V C CNN
F1 "nmm1_B-rescue_Crystal" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Crystal*
$ENDFPLIST
DRAW
S -45 100 45 -100 0 1 12 N
P 2 0 1 0 -100 0 -75 0 N
P 2 0 1 20 -75 -50 -75 50 N
P 2 0 1 20 75 -50 75 50 N
P 2 0 1 0 100 0 75 0 N
X 1 1 -150 0 50 R 50 50 1 1 P
X 2 2 150 0 50 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_D
#
DEF nmm1_B-rescue_D D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "nmm1_B-rescue_D" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
TO-???*
*SingleDiode
*_Diode_*
*SingleDiode*
D_*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 50 -50 -50 N
P 2 0 1 0 50 0 -50 0 N
P 4 0 1 8 50 50 50 -50 -50 0 50 50 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_FT232RL
#
DEF nmm1_B-rescue_FT232RL U 0 40 Y Y 1 F N
F0 "U" -650 900 50 H V L CNN
F1 "nmm1_B-rescue_FT232RL" 400 900 50 H V L CNN
F2 "Housings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mm" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
SSOP*5.3x10.2mm*Pitch0.65mm*
$ENDFPLIST
DRAW
S -650 850 650 -850 0 1 10 f
X TXD 1 800 700 150 L 50 50 1 1 O
X DCD 10 800 100 150 L 50 50 1 1 I L
X CTS 11 800 400 150 L 50 50 1 1 I L
X CBUS4 12 800 -700 150 L 50 50 1 1 B
X CBUS2 13 800 -500 150 L 50 50 1 1 B
X CBUS3 14 800 -600 150 L 50 50 1 1 B
X USBD+ 15 -800 400 150 R 50 50 1 1 B
X USBD- 16 -800 300 150 R 50 50 1 1 B
X 3V3OUT 17 -800 700 150 R 50 50 1 1 I
X GND 18 100 -1000 150 U 50 50 1 1 W
X ~RESET~ 19 -800 0 150 R 50 50 1 1 I
X DTR 2 800 300 150 L 50 50 1 1 O V
X VCC 20 100 1000 150 D 50 50 1 1 W
X GND 21 200 -1000 150 U 50 50 1 1 W
X CBUS1 22 800 -400 150 L 50 50 1 1 O
X CBUS0 23 800 -300 150 L 50 50 1 1 B
X AGND 25 -200 -1000 150 U 50 50 1 1 W
X TEST 26 -800 -700 150 R 50 50 1 1 W
X OSCI 27 -800 -200 150 R 50 50 1 1 I
X OSCO 28 -800 -400 150 R 50 50 1 1 O
X RTS 3 800 500 150 L 50 50 1 1 O V
X VCCIO 4 -100 1000 150 D 50 50 1 1 I
X RXD 5 800 600 150 L 50 50 1 1 I
X RI 6 800 0 150 L 50 50 1 1 I L
X GND 7 0 -1000 150 U 50 50 1 1 W
X DCR 9 800 200 150 L 50 50 1 1 I L
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_GND
#
DEF nmm1_B-rescue_GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "nmm1_B-rescue_GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_L
#
DEF nmm1_B-rescue_L L 0 40 N N 1 F N
F0 "L" -50 0 50 V V C CNN
F1 "nmm1_B-rescue_L" 75 0 50 V V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Choke_*
*Coil*
Inductor_*
L_*
$ENDFPLIST
DRAW
A 0 -75 25 -899 899 0 1 0 N 0 -100 0 -50
A 0 -25 25 -899 899 0 1 0 N 0 -50 0 0
A 0 25 25 -899 899 0 1 0 N 0 0 0 50
A 0 75 25 -899 899 0 1 0 N 0 50 0 100
X 1 1 0 150 50 D 50 50 1 1 P
X 2 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_LED
#
DEF nmm1_B-rescue_LED D 0 40 Y N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "nmm1_B-rescue_LED" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
LED*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 -50 -50 50 N
P 2 0 1 0 -50 0 50 0 N
P 4 0 1 8 50 -50 50 50 -50 0 50 -50 N
P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_MAX3295
#
DEF nmm1_B-rescue_MAX3295 U 0 40 Y Y 1 F N
F0 "U" -150 300 60 H V C CNN
F1 "nmm1_B-rescue_MAX3295" 225 -275 60 H V C CNN
F2 "" 0 0 60 H I C CNN
F3 "" 0 0 60 H I C CNN
DRAW
S -200 250 200 -225 0 1 0 f
X DI 1 -325 125 123 R 50 50 1 1 I
X VCC 2 0 375 123 D 50 50 1 1 W
X DE 3 -325 -75 123 R 50 50 1 1 B
X Z 4 325 125 123 L 50 50 1 1 B
X GND 5 0 -350 123 U 50 50 1 1 B
X Y 6 325 0 123 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_MCP73831
#
DEF nmm1_B-rescue_MCP73831 U 0 40 Y Y 1 F N
F0 "U" -225 250 60 H V C CNN
F1 "nmm1_B-rescue_MCP73831" 50 -250 60 H V C CNN
F2 "" 0 75 60 H I C CNN
F3 "" 0 75 60 H I C CNN
DRAW
S -275 200 275 -200 0 1 0 f
X STAT 1 -475 -125 200 R 50 50 1 1 O
X Vss 2 475 -125 200 L 50 50 1 1 W
X Vbat 3 475 125 200 L 50 50 1 1 w
X VDD 4 -475 125 200 R 50 50 1 1 W
X PROG 5 475 0 200 L 50 50 1 1 I
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_R
#
DEF nmm1_B-rescue_R R 0 0 N Y 1 F N
F0 "R" 80 0 50 V V C CNN
F1 "nmm1_B-rescue_R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_SW_Push
#
DEF nmm1_B-rescue_SW_Push SW 0 40 N N 1 F N
F0 "SW" 50 100 50 H V L CNN
F1 "nmm1_B-rescue_SW_Push" 0 -60 50 H V C CNN
F2 "" 0 200 50 H I C CNN
F3 "" 0 200 50 H I C CNN
DRAW
C -80 0 20 0 1 0 N
C 80 0 20 0 1 0 N
P 2 0 1 0 0 50 0 120 N
P 2 0 1 0 100 50 -100 50 N
X 1 1 -200 0 100 R 50 50 0 1 P
X 2 2 200 0 100 L 50 50 0 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_TPS62046
#
DEF nmm1_B-rescue_TPS62046 U 0 40 Y Y 1 F N
F0 "U" -225 300 60 H V C CNN
F1 "nmm1_B-rescue_TPS62046" 250 -300 60 H V C CNN
F2 "" 20 35 60 H I C CNN
F3 "" 20 35 60 H I C CNN
DRAW
S -300 250 300 -250 1 1 0 f
X EN 1 -500 0 200 R 50 50 1 1 I
X PGND 10 500 -100 200 L 50 50 1 1 W
X PGND 11 0 -450 200 U 50 50 1 1 I
X VIN 2 -500 200 200 R 50 50 1 1 W
X VIN 3 -500 100 200 R 50 50 1 1 W
X GND 4 -500 -200 200 R 50 50 1 1 W
X FB 5 500 0 200 L 50 50 1 1 I
X MODE 6 -500 -100 200 R 50 50 1 1 I
X SW 7 500 100 200 L 50 50 1 1 B
X SW 8 500 200 200 L 50 50 1 1 B
X PGND 9 500 -200 200 L 50 50 1 1 W
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_USB_OTG-Electropepper
#
DEF nmm1_B-rescue_USB_OTG-Electropepper P 0 40 Y Y 1 F N
F0 "P" 325 -125 50 H V C CNN
F1 "nmm1_B-rescue_USB_OTG-Electropepper" 0 200 50 H V C CNN
F2 "" -50 -100 50 V V C CNN
F3 "" -50 -100 50 V V C CNN
$FPLIST
USB*
$ENDFPLIST
DRAW
S -250 -150 250 150 0 1 0 N
S -205 -150 -195 -120 0 1 0 N
S -105 -150 -95 -120 0 1 0 N
S -5 -150 5 -120 0 1 0 N
S 95 -150 105 -120 0 1 0 N
S 195 -150 205 -120 0 1 0 N
X VBUS 1 -200 -300 150 U 50 50 1 1 w
X D- 2 -100 -300 150 U 50 50 1 1 P
X D+ 3 0 -300 150 U 50 50 1 1 P
X ID 4 100 -300 150 U 50 50 1 1 W
X GND 5 200 -300 150 U 50 50 1 1 W
X shield 6 400 100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# nmm1_B-rescue_VOS627A
#
DEF nmm1_B-rescue_VOS627A U 0 40 Y Y 1 F N
F0 "U" -125 150 60 H V C CNN
F1 "nmm1_B-rescue_VOS627A" 0 -150 60 H V C CNN
F2 "" 0 -50 60 H I C CNN
F3 "" 0 -50 60 H I C CNN
DRAW
S -175 100 175 -100 0 1 0 f
X A/C 1 -300 50 123 R 50 50 1 1 B
X C/A 2 -300 -50 123 R 50 50 1 1 B
X E 3 300 -50 123 L 50 50 1 1 B
X C 4 300 50 123 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
#End Library

View File

@@ -0,0 +1,475 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# +3V3
#
DEF +3V3 #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "+3V3" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X +3V3 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# ATMEGA328P-AU
#
DEF ATMEGA328P-AU U 0 40 Y Y 1 F N
F0 "U" -750 1250 50 H V L BNN
F1 "ATMEGA328P-AU" 400 -1400 50 H V L BNN
F2 "Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm" 0 0 50 H I C CIN
F3 "" 0 0 50 H I C CNN
$FPLIST
TQFP*7x7mm*Pitch0.8mm*
$ENDFPLIST
DRAW
S -750 1200 850 -1300 0 1 10 f
X (PCINT19/OC2B/INT1)PD3 1 1000 -800 150 L 40 40 1 1 B
X (PCINT22/OC0A/AIN0)PD6 10 1000 -1100 150 L 40 40 1 1 B
X (PCINT23/AIN1)PD7 11 1000 -1200 150 L 40 40 1 1 B
X (PCINT0/CLKO/ICP1)PB0 12 1000 1100 150 L 40 40 1 1 B
X (PCINT1/OC1A)PB1 13 1000 1000 150 L 40 40 1 1 B
X (PCINT2/OC1B/~SS~)PB2 14 1000 900 150 L 40 40 1 1 B
X (PCINT3/OC2A/MOSI)PB3 15 1000 800 150 L 40 40 1 1 B
X (PCINT4/MISO)PB4 16 1000 700 150 L 40 40 1 1 B
X (PCINT5/SCK)PB5 17 1000 600 150 L 40 40 1 1 B
X AVCC 18 -900 800 150 R 40 40 1 1 W
X ADC6 19 -900 -250 150 R 40 40 1 1 I
X (PCINT20/XCK/T0)PD4 2 1000 -900 150 L 40 40 1 1 B
X AREF 20 -900 500 150 R 40 40 1 1 B
X GND 21 -900 -1000 150 R 40 40 1 1 W
X ADC7 22 -900 -350 150 R 40 40 1 1 I
X (PCINT8/ADC0)PC0 23 1000 250 150 L 40 40 1 1 B
X (PCINT9/ADC1)PC1 24 1000 150 150 L 40 40 1 1 B
X (PCINT10/ADC2)PC2 25 1000 50 150 L 40 40 1 1 B
X (PCINT11/ADC3)PC3 26 1000 -50 150 L 40 40 1 1 B
X (PCINT12/SDA/ADC4)PC4 27 1000 -150 150 L 40 40 1 1 B
X (PCINT13/SCL/ADC5)PC5 28 1000 -250 150 L 40 40 1 1 B
X (PCINT14/~RESET~)PC6 29 1000 -350 150 L 40 40 1 1 B
X GND 3 -900 -1200 150 R 40 40 1 1 W
X (PCINT16/RXD)PD0 30 1000 -500 150 L 40 40 1 1 B
X (PCINT17/TXD)PD1 31 1000 -600 150 L 40 40 1 1 B
X (PCINT18/INT0)PD2 32 1000 -700 150 L 40 40 1 1 B
X VCC 4 -900 1100 150 R 40 40 1 1 W
X GND 5 -900 -1100 150 R 40 40 1 1 W
X VCC 6 -900 1000 150 R 40 40 1 1 W
X (PCINT6/XTAL1/TOSC1)PB6 7 1000 500 150 L 40 40 1 1 B
X (PCINT7/XTAL2/TOSC2)PB7 8 1000 400 150 L 40 40 1 1 B
X (PCINT21/OC0B/T1)PD5 9 1000 -1000 150 L 40 40 1 1 B
ENDDRAW
ENDDEF
#
# C
#
DEF C C 0 10 N Y 1 F N
F0 "C" 25 100 50 H V L CNN
F1 "C" 25 -100 50 H V L CNN
F2 "" 38 -150 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
C_*
$ENDFPLIST
DRAW
P 2 0 1 20 -80 -30 80 -30 N
P 2 0 1 20 -80 30 80 30 N
X ~ 1 0 150 110 D 50 50 1 1 P
X ~ 2 0 -150 110 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x02
#
DEF Conn_01x02 J 0 40 Y N 1 F N
F0 "J" 0 100 50 H V C CNN
F1 "Conn_01x02" 0 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 50 50 -150 1 1 10 f
X Pin_1 1 -200 0 150 R 50 50 1 1 P
X Pin_2 2 -200 -100 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x04
#
DEF Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Conn_01x04" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x05
#
DEF Conn_01x05 J 0 40 Y N 1 F N
F0 "J" 0 300 50 H V C CNN
F1 "Conn_01x05" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 205 0 195 1 1 6 N
S -50 250 50 -250 1 1 10 f
X Pin_1 1 -200 200 150 R 50 50 1 1 P
X Pin_2 2 -200 100 150 R 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 -200 -100 150 R 50 50 1 1 P
X Pin_5 5 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_02x03_Odd_Even
#
DEF Conn_02x03_Odd_Even J 0 40 Y N 1 F N
F0 "J" 50 200 50 H V C CNN
F1 "Conn_02x03_Odd_Even" 50 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*2x??x*mm*
Connector*:*2x???Pitch*
Pin_Header_Straight_2X*
Pin_Header_Angled_2X*
Socket_Strip_Straight_2X*
Socket_Strip_Angled_2X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 150 -150 1 1 10 f
S 150 -95 100 -105 1 1 6 N
S 150 5 100 -5 1 1 6 N
S 150 105 100 95 1 1 6 N
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 300 100 150 L 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 300 0 150 L 50 50 1 1 P
X Pin_5 5 -200 -100 150 R 50 50 1 1 P
X Pin_6 6 300 -100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Crystal
#
DEF Crystal Y 0 40 N N 1 F N
F0 "Y" 0 150 50 H V C CNN
F1 "Crystal" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Crystal*
$ENDFPLIST
DRAW
S -45 100 45 -100 0 1 12 N
P 2 0 1 0 -100 0 -75 0 N
P 2 0 1 20 -75 -50 -75 50 N
P 2 0 1 20 75 -50 75 50 N
P 2 0 1 0 100 0 75 0 N
X 1 1 -150 0 50 R 50 50 1 1 P
X 2 2 150 0 50 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# D
#
DEF D D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "D" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
TO-???*
*SingleDiode
*_Diode_*
*SingleDiode*
D_*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 50 -50 -50 N
P 2 0 1 0 50 0 -50 0 N
P 4 0 1 8 50 50 50 -50 -50 0 50 50 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# FT232RL
#
DEF FT232RL U 0 40 Y Y 1 F N
F0 "U" -650 900 50 H V L CNN
F1 "FT232RL" 400 900 50 H V L CNN
F2 "Housings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mm" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
SSOP*5.3x10.2mm*Pitch0.65mm*
$ENDFPLIST
DRAW
S -650 850 650 -850 0 1 10 f
X TXD 1 800 700 150 L 50 50 1 1 O
X DCD 10 800 100 150 L 50 50 1 1 I L
X CTS 11 800 400 150 L 50 50 1 1 I L
X CBUS4 12 800 -700 150 L 50 50 1 1 B
X CBUS2 13 800 -500 150 L 50 50 1 1 B
X CBUS3 14 800 -600 150 L 50 50 1 1 B
X USBD+ 15 -800 400 150 R 50 50 1 1 B
X USBD- 16 -800 300 150 R 50 50 1 1 B
X 3V3OUT 17 -800 700 150 R 50 50 1 1 I
X GND 18 100 -1000 150 U 50 50 1 1 W
X ~RESET~ 19 -800 0 150 R 50 50 1 1 I
X DTR 2 800 300 150 L 50 50 1 1 O V
X VCC 20 100 1000 150 D 50 50 1 1 W
X GND 21 200 -1000 150 U 50 50 1 1 W
X CBUS1 22 800 -400 150 L 50 50 1 1 O
X CBUS0 23 800 -300 150 L 50 50 1 1 B
X AGND 25 -200 -1000 150 U 50 50 1 1 W
X TEST 26 -800 -700 150 R 50 50 1 1 W
X OSCI 27 -800 -200 150 R 50 50 1 1 I
X OSCO 28 -800 -400 150 R 50 50 1 1 O
X RTS 3 800 500 150 L 50 50 1 1 O V
X VCCIO 4 -100 1000 150 D 50 50 1 1 I
X RXD 5 800 600 150 L 50 50 1 1 I
X RI 6 800 0 150 L 50 50 1 1 I L
X GND 7 0 -1000 150 U 50 50 1 1 W
X DCR 9 800 200 150 L 50 50 1 1 I L
ENDDRAW
ENDDEF
#
# GND
#
DEF GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# L
#
DEF L L 0 40 N N 1 F N
F0 "L" -50 0 50 V V C CNN
F1 "L" 75 0 50 V V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Choke_*
*Coil*
Inductor_*
L_*
$ENDFPLIST
DRAW
A 0 -75 25 -899 899 0 1 0 N 0 -100 0 -50
A 0 -25 25 -899 899 0 1 0 N 0 -50 0 0
A 0 25 25 -899 899 0 1 0 N 0 0 0 50
A 0 75 25 -899 899 0 1 0 N 0 50 0 100
X 1 1 0 150 50 D 50 50 1 1 P
X 2 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# LED
#
DEF LED D 0 40 Y N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "LED" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
LED*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 -50 -50 50 N
P 2 0 1 0 -50 0 50 0 N
P 4 0 1 8 50 -50 50 50 -50 0 50 -50 N
P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# MAX3295
#
DEF MAX3295 U 0 40 Y Y 1 F N
F0 "U" -150 300 60 H V C CNN
F1 "MAX3295" 225 -275 60 H V C CNN
F2 "" 0 0 60 H I C CNN
F3 "" 0 0 60 H I C CNN
DRAW
S -200 250 200 -225 0 1 0 f
X DI 1 -325 125 123 R 50 50 1 1 I
X VCC 2 0 375 123 D 50 50 1 1 W
X DE 3 -325 -75 123 R 50 50 1 1 B
X Z 4 325 125 123 L 50 50 1 1 B
X GND 5 0 -350 123 U 50 50 1 1 B
X Y 6 325 0 123 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
# MCP73831
#
DEF MCP73831 U 0 40 Y Y 1 F N
F0 "U" -225 250 60 H V C CNN
F1 "MCP73831" 50 -250 60 H V C CNN
F2 "" 0 75 60 H I C CNN
F3 "" 0 75 60 H I C CNN
DRAW
S -275 200 275 -200 0 1 0 f
X STAT 1 -475 -125 200 R 50 50 1 1 O
X Vss 2 475 -125 200 L 50 50 1 1 W
X Vbat 3 475 125 200 L 50 50 1 1 w
X VDD 4 -475 125 200 R 50 50 1 1 W
X PROG 5 475 0 200 L 50 50 1 1 I
ENDDRAW
ENDDEF
#
# R
#
DEF R R 0 0 N Y 1 F N
F0 "R" 80 0 50 V V C CNN
F1 "R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# SW_Push
#
DEF SW_Push SW 0 40 N N 1 F N
F0 "SW" 50 100 50 H V L CNN
F1 "SW_Push" 0 -60 50 H V C CNN
F2 "" 0 200 50 H I C CNN
F3 "" 0 200 50 H I C CNN
DRAW
C -80 0 20 0 1 0 N
C 80 0 20 0 1 0 N
P 2 0 1 0 0 50 0 120 N
P 2 0 1 0 100 50 -100 50 N
X 1 1 -200 0 100 R 50 50 0 1 P
X 2 2 200 0 100 L 50 50 0 1 P
ENDDRAW
ENDDEF
#
# TPS62046
#
DEF TPS62046 U 0 40 Y Y 1 F N
F0 "U" -225 300 60 H V C CNN
F1 "TPS62046" 250 -300 60 H V C CNN
F2 "" 20 35 60 H I C CNN
F3 "" 20 35 60 H I C CNN
DRAW
S -300 250 300 -250 1 1 0 f
X EN 1 -500 0 200 R 50 50 1 1 I
X PGND 10 500 -100 200 L 50 50 1 1 W
X PGND 11 0 -450 200 U 50 50 1 1 I
X VIN 2 -500 200 200 R 50 50 1 1 W
X VIN 3 -500 100 200 R 50 50 1 1 W
X GND 4 -500 -200 200 R 50 50 1 1 W
X FB 5 500 0 200 L 50 50 1 1 I
X MODE 6 -500 -100 200 R 50 50 1 1 I
X SW 7 500 100 200 L 50 50 1 1 B
X SW 8 500 200 200 L 50 50 1 1 B
X PGND 9 500 -200 200 L 50 50 1 1 W
ENDDRAW
ENDDEF
#
# USB_OTG-Electropepper
#
DEF USB_OTG-Electropepper P 0 40 Y Y 1 F N
F0 "P" 325 -125 50 H V C CNN
F1 "USB_OTG-Electropepper" 0 200 50 H V C CNN
F2 "" -50 -100 50 V V C CNN
F3 "" -50 -100 50 V V C CNN
$FPLIST
USB*
$ENDFPLIST
DRAW
S -250 -150 250 150 0 1 0 N
S -205 -150 -195 -120 0 1 0 N
S -105 -150 -95 -120 0 1 0 N
S -5 -150 5 -120 0 1 0 N
S 95 -150 105 -120 0 1 0 N
S 195 -150 205 -120 0 1 0 N
X VBUS 1 -200 -300 150 U 50 50 1 1 w
X D- 2 -100 -300 150 U 50 50 1 1 P
X D+ 3 0 -300 150 U 50 50 1 1 P
X ID 4 100 -300 150 U 50 50 1 1 W
X GND 5 200 -300 150 U 50 50 1 1 W
X shield 6 400 100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# VOS627A
#
DEF VOS627A U 0 40 Y Y 1 F N
F0 "U" -125 150 60 H V C CNN
F1 "VOS627A" 0 -150 60 H V C CNN
F2 "" 0 -50 60 H I C CNN
F3 "" 0 -50 60 H I C CNN
DRAW
S -175 100 175 -100 0 1 0 f
X A/C 1 -300 50 123 R 50 50 1 1 B
X C/A 2 -300 -50 123 R 50 50 1 1 B
X E 3 300 -50 123 L 50 50 1 1 B
X C 4 300 50 123 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
#End Library

1462
NMM1_Kicad/rev_B/nmm1_B.bak Normal file

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

858
NMM1_Kicad/rev_B/nmm1_B.net Executable file
View File

@@ -0,0 +1,858 @@
(export (version D)
(design
(source /home/ricardo/Projects/NMM-1/NMM1_Kicad/rev_B/nmm1_B.sch)
(date "Wed 07 Mar 2018 10:54:41 AM GMT")
(tool "Eeschema 4.0.7-e2-6376~58~ubuntu16.04.1")
(sheet (number 1) (name /) (tstamps /)
(title_block
(title NMM-1)
(company)
(rev A)
(date)
(source nmm1_B.sch)
(comment (number 1) (value ""))
(comment (number 2) (value ""))
(comment (number 3) (value ""))
(comment (number 4) (value "")))))
(components
(comp (ref U5)
(value ATMEGA328P-A)
(footprint Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm)
(libsource (lib atmel) (part ATMEGA328P-AU))
(sheetpath (names /) (tstamps /))
(tstamp 587FFE62))
(comp (ref R9)
(value 10K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 588021DF))
(comp (ref P1)
(value USB_OTG)
(footprint Connectors:USB_Mini-B)
(libsource (lib electropepper_kicad) (part USB_OTG-Electropepper))
(sheetpath (names /) (tstamps /))
(tstamp 58815603))
(comp (ref C2)
(value 100nF)
(footprint Capacitors_SMD:C_0805)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 58815C2D))
(comp (ref X1)
(value 8Mhz)
(footprint Crystals:Crystal_SMD_HC49-SD)
(libsource (lib device) (part Crystal))
(sheetpath (names /) (tstamps /))
(tstamp 588196A3))
(comp (ref C10)
(value 22pF)
(footprint Capacitors_SMD:C_0805)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 58819B31))
(comp (ref C11)
(value 22pF)
(footprint Capacitors_SMD:C_0805)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 58819C1C))
(comp (ref D2)
(value LED)
(footprint LEDs:LED_PLCC-2)
(libsource (lib device) (part LED))
(sheetpath (names /) (tstamps /))
(tstamp 5881DC19))
(comp (ref SW5)
(value SW_Push)
(footprint electropepper:B3FS-10)
(libsource (lib switches) (part SW_Push))
(sheetpath (names /) (tstamps /))
(tstamp 58821233))
(comp (ref P4)
(value CONN_02X03)
(footprint Pin_Headers:Pin_Header_Straight_2x03_Pitch2.54mm)
(libsource (lib conn) (part Conn_02x03_Odd_Even))
(sheetpath (names /) (tstamps /))
(tstamp 58823534))
(comp (ref C7)
(value 100nF)
(footprint Capacitors_SMD:C_0805)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 58825549))
(comp (ref U1)
(value MCP73831)
(footprint TO_SOT_Packages_SMD:SOT-23-5)
(libsource (lib electropepper_kicad) (part MCP73831))
(sheetpath (names /) (tstamps /))
(tstamp 5887F26B))
(comp (ref R1)
(value 470R)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58883862))
(comp (ref C1)
(value 4.7uF)
(footprint Capacitors_SMD:C_0805)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 58885F04))
(comp (ref C4)
(value 4.7uF)
(footprint Capacitors_SMD:C_0805)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5888837D))
(comp (ref R2)
(value 2K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5888A417))
(comp (ref P3)
(value Battery)
(footprint Pin_Headers:Pin_Header_Straight_1x02_Pitch2.54mm)
(libsource (lib conn) (part Conn_01x02))
(sheetpath (names /) (tstamps /))
(tstamp 58896012))
(comp (ref U3)
(value TPS62046)
(footprint Housings_SSOP:MSOP-10-1EP_3x3mm_Pitch0.5mm)
(libsource (lib electropepper_kicad) (part TPS62046))
(sheetpath (names /) (tstamps /))
(tstamp 58897588))
(comp (ref C6)
(value 22uF)
(footprint Capacitors_SMD:C_1206)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 588996E9))
(comp (ref C9)
(value 22uF)
(footprint Capacitors_SMD:C_1206)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5889990B))
(comp (ref L1)
(value 6.2uH)
(footprint "Electropepper parts:SRN6028")
(libsource (lib device) (part L))
(sheetpath (names /) (tstamps /))
(tstamp 5889C7D1))
(comp (ref D3)
(value LED)
(footprint LEDs:LED_PLCC-2)
(libsource (lib device) (part LED))
(sheetpath (names /) (tstamps /))
(tstamp 58912C50))
(comp (ref D1)
(value LED)
(footprint LEDs:LED_PLCC-2)
(libsource (lib device) (part LED))
(sheetpath (names /) (tstamps /))
(tstamp 589137FD))
(comp (ref C8)
(value 100nF)
(footprint Capacitors_SMD:C_0805)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5891C141))
(comp (ref C5)
(value 100nF)
(footprint Capacitors_SMD:C_0805)
(libsource (lib device) (part C))
(sheetpath (names /) (tstamps /))
(tstamp 5891E9F8))
(comp (ref R3)
(value 10K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5894FF99))
(comp (ref R4)
(value 10K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 5895063D))
(comp (ref R5)
(value 10K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58950803))
(comp (ref P6)
(value Display)
(footprint "Electropepper parts:OLED-ARDUINO-IIC-ALI")
(libsource (lib conn) (part Conn_01x05))
(sheetpath (names /) (tstamps /))
(tstamp 58AC71D2))
(comp (ref R13)
(value 330K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58AE025B))
(comp (ref R10)
(value 36K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58AE3757))
(comp (ref R11)
(value 330R)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58AE393C))
(comp (ref R12)
(value 330R)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58AE3E88))
(comp (ref P2)
(value RS422)
(footprint Connectors_Phoenix:PhoenixContact_MC-G_04x3.81mm_Angled)
(libsource (lib conn) (part Conn_01x04))
(sheetpath (names /) (tstamps /))
(tstamp 58AC3DF0))
(comp (ref R6)
(value 10K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58AD148C))
(comp (ref R14)
(value 330R)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58ACCCE1))
(comp (ref R15)
(value 330R)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58ACD105))
(comp (ref U6)
(value VOS627A)
(footprint Housings_SSOP:SOP-4_4.4x2.8mm_Pitch1.27mm)
(libsource (lib electropepper_kicad) (part VOS627A))
(sheetpath (names /) (tstamps /))
(tstamp 58B4533F))
(comp (ref R18)
(value 1K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58B47C35))
(comp (ref R17)
(value 1K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58B4BD0A))
(comp (ref U4)
(value MAX3295)
(footprint TO_SOT_Packages_SMD:SOT-23-6)
(libsource (lib electropepper_kicad) (part MAX3295))
(sheetpath (names /) (tstamps /))
(tstamp 58B4FEA4))
(comp (ref R16)
(value 1K)
(footprint Resistors_SMD:R_0805)
(libsource (lib device) (part R))
(sheetpath (names /) (tstamps /))
(tstamp 58B57DAA))
(comp (ref SW1)
(value SW_Push)
(footprint electropepper:B3FS-10)
(libsource (lib switches) (part SW_Push))
(sheetpath (names /) (tstamps /))
(tstamp 58CBF91A))
(comp (ref SW2)
(value SW_Push)
(footprint electropepper:B3FS-10)
(libsource (lib switches) (part SW_Push))
(sheetpath (names /) (tstamps /))
(tstamp 58CC7607))
(comp (ref SW3)
(value SW_Push)
(footprint electropepper:B3FS-10)
(libsource (lib switches) (part SW_Push))
(sheetpath (names /) (tstamps /))
(tstamp 58CC76F8))
(comp (ref SW4)
(value SW_Push)
(footprint electropepper:B3FS-10)
(libsource (lib switches) (part SW_Push))
(sheetpath (names /) (tstamps /))
(tstamp 58CC7DC4))
(comp (ref D4)
(value 1N4148)
(footprint Diodes_SMD:D_MELF)
(libsource (lib device) (part D))
(sheetpath (names /) (tstamps /))
(tstamp 5A99F1FC))
(comp (ref U2)
(value FT232RL)
(footprint Housings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mm)
(libsource (lib ftdi) (part FT232RL))
(sheetpath (names /) (tstamps /))
(tstamp 588015E2)))
(libparts
(libpart (lib atmel) (part ATMEGA168A-AU)
(aliases
(alias ATMEGA48A-AU)
(alias ATMEGA48PA-AU)
(alias ATMEGA88A-AU)
(alias ATMEGA88PA-AU)
(alias ATMEGA168PA-AU)
(alias ATMEGA328-AU)
(alias ATMEGA328P-AU))
(description "TQFP32, 16k Flash, 1kB SRAM, 512B EEPROM")
(docs http://www.atmel.com/images/atmel-8271-8-bit-avr-microcontroller-atmega48a-48pa-88a-88pa-168a-168pa-328-328p_datasheet.pdf)
(footprints
(fp TQFP*7x7mm*Pitch0.8mm*))
(fields
(field (name Reference) U)
(field (name Value) ATMEGA168A-AU)
(field (name Footprint) Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm))
(pins
(pin (num 1) (name "(PCINT19/OC2B/INT1)PD3") (type BiDi))
(pin (num 2) (name "(PCINT20/XCK/T0)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 power_in))
(pin (num 6) (name VCC) (type power_in))
(pin (num 7) (name "(PCINT6/XTAL1/TOSC1)PB6") (type BiDi))
(pin (num 8) (name "(PCINT7/XTAL2/TOSC2)PB7") (type BiDi))
(pin (num 9) (name "(PCINT21/OC0B/T1)PD5") (type BiDi))
(pin (num 10) (name "(PCINT22/OC0A/AIN0)PD6") (type BiDi))
(pin (num 11) (name "(PCINT23/AIN1)PD7") (type BiDi))
(pin (num 12) (name "(PCINT0/CLKO/ICP1)PB0") (type BiDi))
(pin (num 13) (name "(PCINT1/OC1A)PB1") (type BiDi))
(pin (num 14) (name "(PCINT2/OC1B/~SS~)PB2") (type BiDi))
(pin (num 15) (name "(PCINT3/OC2A/MOSI)PB3") (type BiDi))
(pin (num 16) (name "(PCINT4/MISO)PB4") (type BiDi))
(pin (num 17) (name "(PCINT5/SCK)PB5") (type BiDi))
(pin (num 18) (name AVCC) (type power_in))
(pin (num 19) (name ADC6) (type input))
(pin (num 20) (name AREF) (type BiDi))
(pin (num 21) (name GND) (type power_in))
(pin (num 22) (name ADC7) (type input))
(pin (num 23) (name "(PCINT8/ADC0)PC0") (type BiDi))
(pin (num 24) (name "(PCINT9/ADC1)PC1") (type BiDi))
(pin (num 25) (name "(PCINT10/ADC2)PC2") (type BiDi))
(pin (num 26) (name "(PCINT11/ADC3)PC3") (type BiDi))
(pin (num 27) (name "(PCINT12/SDA/ADC4)PC4") (type BiDi))
(pin (num 28) (name "(PCINT13/SCL/ADC5)PC5") (type BiDi))
(pin (num 29) (name "(PCINT14/~RESET~)PC6") (type BiDi))
(pin (num 30) (name "(PCINT16/RXD)PD0") (type BiDi))
(pin (num 31) (name "(PCINT17/TXD)PD1") (type BiDi))
(pin (num 32) (name "(PCINT18/INT0)PD2") (type BiDi))))
(libpart (lib device) (part C)
(description "Unpolarized capacitor")
(footprints
(fp C_*))
(fields
(field (name Reference) C)
(field (name Value) C))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib conn) (part Conn_01x02)
(description "Generic connector, single row, 01x02")
(docs ~)
(footprints
(fp Connector*:*_??x*mm*)
(fp Connector*:*1x??x*mm*)
(fp Pin?Header?Straight?1X*)
(fp Pin?Header?Angled?1X*)
(fp Socket?Strip?Straight?1X*)
(fp Socket?Strip?Angled?1X*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x02))
(pins
(pin (num 1) (name Pin_1) (type passive))
(pin (num 2) (name Pin_2) (type passive))))
(libpart (lib conn) (part Conn_01x04)
(description "Generic connector, single row, 01x04")
(docs ~)
(footprints
(fp Connector*:*_??x*mm*)
(fp Connector*:*1x??x*mm*)
(fp Pin?Header?Straight?1X*)
(fp Pin?Header?Angled?1X*)
(fp Socket?Strip?Straight?1X*)
(fp Socket?Strip?Angled?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 conn) (part Conn_01x05)
(description "Generic connector, single row, 01x05")
(docs ~)
(footprints
(fp Connector*:*_??x*mm*)
(fp Connector*:*1x??x*mm*)
(fp Pin?Header?Straight?1X*)
(fp Pin?Header?Angled?1X*)
(fp Socket?Strip?Straight?1X*)
(fp Socket?Strip?Angled?1X*))
(fields
(field (name Reference) J)
(field (name Value) Conn_01x05))
(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))
(pin (num 5) (name Pin_5) (type passive))))
(libpart (lib conn) (part Conn_02x03_Odd_Even)
(description "Generic connector, double row, 02x03, odd/even pin numbering scheme (row 1 odd numbers, row 2 even numbers)")
(docs ~)
(footprints
(fp Connector*:*2x??x*mm*)
(fp Connector*:*2x???Pitch*)
(fp Pin_Header_Straight_2X*)
(fp Pin_Header_Angled_2X*)
(fp Socket_Strip_Straight_2X*)
(fp Socket_Strip_Angled_2X*))
(fields
(field (name Reference) J)
(field (name Value) Conn_02x03_Odd_Even))
(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))
(pin (num 5) (name Pin_5) (type passive))
(pin (num 6) (name Pin_6) (type passive))))
(libpart (lib device) (part Crystal)
(description "Two pin crystal")
(footprints
(fp Crystal*))
(fields
(field (name Reference) Y)
(field (name Value) Crystal))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))))
(libpart (lib device) (part D)
(description Diode)
(footprints
(fp TO-???*)
(fp *SingleDiode)
(fp *_Diode_*)
(fp *SingleDiode*)
(fp D_*))
(fields
(field (name Reference) D)
(field (name Value) D))
(pins
(pin (num 1) (name K) (type passive))
(pin (num 2) (name A) (type passive))))
(libpart (lib ftdi) (part FT232RL)
(description "USB to Serial Interface, SSOP-28")
(docs http://www.ftdichip.com/Products/ICs/FT232RL.htm)
(footprints
(fp SSOP*5.3x10.2mm*Pitch0.65mm*))
(fields
(field (name Reference) U)
(field (name Value) FT232RL)
(field (name Footprint) Housings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mm))
(pins
(pin (num 1) (name TXD) (type output))
(pin (num 2) (name DTR) (type output))
(pin (num 3) (name RTS) (type output))
(pin (num 4) (name VCCIO) (type input))
(pin (num 5) (name RXD) (type input))
(pin (num 6) (name RI) (type input))
(pin (num 7) (name GND) (type power_in))
(pin (num 9) (name DCR) (type input))
(pin (num 10) (name DCD) (type input))
(pin (num 11) (name CTS) (type input))
(pin (num 12) (name CBUS4) (type BiDi))
(pin (num 13) (name CBUS2) (type BiDi))
(pin (num 14) (name CBUS3) (type BiDi))
(pin (num 15) (name USBD+) (type BiDi))
(pin (num 16) (name USBD-) (type BiDi))
(pin (num 17) (name 3V3OUT) (type input))
(pin (num 18) (name GND) (type power_in))
(pin (num 19) (name ~RESET~) (type input))
(pin (num 20) (name VCC) (type power_in))
(pin (num 21) (name GND) (type power_in))
(pin (num 22) (name CBUS1) (type output))
(pin (num 23) (name CBUS0) (type BiDi))
(pin (num 25) (name AGND) (type power_in))
(pin (num 26) (name TEST) (type power_in))
(pin (num 27) (name OSCI) (type input))
(pin (num 28) (name OSCO) (type output))))
(libpart (lib device) (part L)
(description Inductor)
(footprints
(fp Choke_*)
(fp *Coil*)
(fp Inductor_*)
(fp L_*))
(fields
(field (name Reference) L)
(field (name Value) L))
(pins
(pin (num 1) (name 1) (type passive))
(pin (num 2) (name 2) (type passive))))
(libpart (lib device) (part LED)
(description "LED generic")
(footprints
(fp LED*))
(fields
(field (name Reference) D)
(field (name Value) LED))
(pins
(pin (num 1) (name K) (type passive))
(pin (num 2) (name A) (type passive))))
(libpart (lib electropepper_kicad) (part MAX3295)
(fields
(field (name Reference) U)
(field (name Value) MAX3295))
(pins
(pin (num 1) (name DI) (type input))
(pin (num 2) (name VCC) (type power_in))
(pin (num 3) (name DE) (type BiDi))
(pin (num 4) (name Z) (type BiDi))
(pin (num 5) (name GND) (type BiDi))
(pin (num 6) (name Y) (type BiDi))))
(libpart (lib electropepper_kicad) (part MCP73831)
(fields
(field (name Reference) U)
(field (name Value) MCP73831))
(pins
(pin (num 1) (name STAT) (type output))
(pin (num 2) (name Vss) (type power_in))
(pin (num 3) (name Vbat) (type power_out))
(pin (num 4) (name VDD) (type power_in))
(pin (num 5) (name PROG) (type input))))
(libpart (lib device) (part R)
(description Resistor)
(footprints
(fp R_*)
(fp R_*))
(fields
(field (name Reference) R)
(field (name Value) R))
(pins
(pin (num 1) (name ~) (type passive))
(pin (num 2) (name ~) (type passive))))
(libpart (lib switches) (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 electropepper_kicad) (part TPS62046)
(fields
(field (name Reference) U)
(field (name Value) TPS62046))
(pins
(pin (num 1) (name EN) (type input))
(pin (num 2) (name VIN) (type power_in))
(pin (num 3) (name VIN) (type power_in))
(pin (num 4) (name GND) (type power_in))
(pin (num 5) (name FB) (type input))
(pin (num 6) (name MODE) (type input))
(pin (num 7) (name SW) (type BiDi))
(pin (num 8) (name SW) (type BiDi))
(pin (num 9) (name PGND) (type power_in))
(pin (num 10) (name PGND) (type power_in))
(pin (num 11) (name PGND) (type input))))
(libpart (lib electropepper_kicad) (part USB_OTG-Electropepper)
(footprints
(fp USB*))
(fields
(field (name Reference) P)
(field (name Value) USB_OTG-Electropepper))
(pins
(pin (num 1) (name VBUS) (type power_out))
(pin (num 2) (name D-) (type passive))
(pin (num 3) (name D+) (type passive))
(pin (num 4) (name ID) (type power_in))
(pin (num 5) (name GND) (type power_in))
(pin (num 6) (name shield) (type passive))))
(libpart (lib electropepper_kicad) (part VOS627A)
(fields
(field (name Reference) U)
(field (name Value) VOS627A))
(pins
(pin (num 1) (name A/C) (type BiDi))
(pin (num 2) (name C/A) (type BiDi))
(pin (num 3) (name E) (type BiDi))
(pin (num 4) (name C) (type BiDi)))))
(libraries
(library (logical atmel)
(uri /usr/share/kicad/library/atmel.lib))
(library (logical electropepper_kicad)
(uri /home/ricardo/Projects/Kicad/Kicad_libs/electropepper_kicad.lib))
(library (logical switches)
(uri /usr/share/kicad/library/switches.lib))
(library (logical ftdi)
(uri /usr/share/kicad/library/ftdi.lib))
(library (logical device)
(uri /usr/share/kicad/library/device.lib))
(library (logical conn)
(uri /usr/share/kicad/library/conn.lib)))
(nets
(net (code 1) (name "Net-(R10-Pad1)")
(node (ref U5) (pin 26))
(node (ref R13) (pin 2))
(node (ref R10) (pin 1)))
(net (code 2) (name "Net-(R10-Pad2)")
(node (ref R11) (pin 1))
(node (ref R10) (pin 2)))
(net (code 3) (name GND)
(node (ref C10) (pin 1))
(node (ref C11) (pin 1))
(node (ref SW4) (pin 1))
(node (ref U5) (pin 3))
(node (ref SW3) (pin 1))
(node (ref U5) (pin 5))
(node (ref P1) (pin 5))
(node (ref P1) (pin 6))
(node (ref U3) (pin 10))
(node (ref C2) (pin 2))
(node (ref SW5) (pin 1))
(node (ref C7) (pin 1))
(node (ref U6) (pin 3))
(node (ref P4) (pin 5))
(node (ref SW2) (pin 1))
(node (ref SW1) (pin 1))
(node (ref R2) (pin 1))
(node (ref U2) (pin 18))
(node (ref U2) (pin 26))
(node (ref U2) (pin 25))
(node (ref U1) (pin 2))
(node (ref C1) (pin 2))
(node (ref U2) (pin 21))
(node (ref C4) (pin 2))
(node (ref U2) (pin 7))
(node (ref U5) (pin 21))
(node (ref P3) (pin 2))
(node (ref U3) (pin 4))
(node (ref U4) (pin 5))
(node (ref U3) (pin 6))
(node (ref U3) (pin 9))
(node (ref U3) (pin 11))
(node (ref C6) (pin 2))
(node (ref C9) (pin 2))
(node (ref R12) (pin 2))
(node (ref P6) (pin 1))
(node (ref P6) (pin 5))
(node (ref C8) (pin 2)))
(net (code 4) (name "Net-(R11-Pad2)")
(node (ref R12) (pin 1))
(node (ref R11) (pin 2)))
(net (code 5) (name "Net-(D4-Pad2)")
(node (ref D4) (pin 2))
(node (ref P2) (pin 1)))
(net (code 6) (name "Net-(P2-Pad2)")
(node (ref U6) (pin 2))
(node (ref P2) (pin 2)))
(net (code 7) (name "Net-(U4-Pad1)")
(node (ref U5) (pin 11))
(node (ref U4) (pin 1)))
(net (code 8) (name /VBatt)
(node (ref P3) (pin 1))
(node (ref U3) (pin 1))
(node (ref U3) (pin 2))
(node (ref U3) (pin 3))
(node (ref R13) (pin 1))
(node (ref C6) (pin 1))
(node (ref U1) (pin 3))
(node (ref C4) (pin 1)))
(net (code 9) (name "Net-(U5-Pad12)")
(node (ref U5) (pin 12)))
(net (code 10) (name "Net-(D2-Pad1)")
(node (ref U5) (pin 22))
(node (ref D2) (pin 1)))
(net (code 11) (name "Net-(D3-Pad1)")
(node (ref D3) (pin 1))
(node (ref U5) (pin 19)))
(net (code 12) (name "Net-(D2-Pad2)")
(node (ref R15) (pin 1))
(node (ref D2) (pin 2)))
(net (code 13) (name "Net-(D3-Pad2)")
(node (ref D3) (pin 2))
(node (ref R14) (pin 1)))
(net (code 14) (name "Net-(U2-Pad23)")
(node (ref U2) (pin 23)))
(net (code 15) (name "Net-(U2-Pad22)")
(node (ref U2) (pin 22)))
(net (code 16) (name "Net-(U5-Pad25)")
(node (ref U5) (pin 25)))
(net (code 17) (name /BTN_4)
(node (ref SW4) (pin 2))
(node (ref U5) (pin 9))
(node (ref R6) (pin 1)))
(net (code 18) (name /BTN_3)
(node (ref U5) (pin 2))
(node (ref R5) (pin 1))
(node (ref SW3) (pin 2)))
(net (code 19) (name /BTN_2)
(node (ref R4) (pin 1))
(node (ref U5) (pin 1))
(node (ref SW2) (pin 2)))
(net (code 20) (name /BTN_1)
(node (ref R3) (pin 1))
(node (ref SW1) (pin 2))
(node (ref U5) (pin 32)))
(net (code 21) (name +3V3)
(node (ref U5) (pin 6))
(node (ref U2) (pin 4))
(node (ref C9) (pin 1))
(node (ref R3) (pin 2))
(node (ref U5) (pin 4))
(node (ref U3) (pin 5))
(node (ref R4) (pin 2))
(node (ref U4) (pin 2))
(node (ref R15) (pin 2))
(node (ref U5) (pin 18))
(node (ref R14) (pin 2))
(node (ref R9) (pin 2))
(node (ref R6) (pin 2))
(node (ref P4) (pin 1))
(node (ref R16) (pin 1))
(node (ref R5) (pin 2))
(node (ref R17) (pin 1))
(node (ref P6) (pin 2))
(node (ref C7) (pin 2))
(node (ref L1) (pin 2)))
(net (code 22) (name "Net-(R2-Pad2)")
(node (ref R2) (pin 2))
(node (ref U1) (pin 5)))
(net (code 23) (name "Net-(D1-Pad1)")
(node (ref D1) (pin 1))
(node (ref R1) (pin 2)))
(net (code 24) (name "Net-(R1-Pad1)")
(node (ref U1) (pin 1))
(node (ref R1) (pin 1)))
(net (code 25) (name /RESET)
(node (ref R9) (pin 1))
(node (ref SW5) (pin 2))
(node (ref U5) (pin 29))
(node (ref P4) (pin 3))
(node (ref C5) (pin 1)))
(net (code 26) (name "Net-(L1-Pad1)")
(node (ref U3) (pin 8))
(node (ref U3) (pin 7))
(node (ref L1) (pin 1)))
(net (code 27) (name "Net-(R18-Pad2)")
(node (ref U6) (pin 1))
(node (ref R18) (pin 2)))
(net (code 28) (name "Net-(D4-Pad1)")
(node (ref R18) (pin 1))
(node (ref D4) (pin 1)))
(net (code 29) (name "Net-(U2-Pad19)")
(node (ref U2) (pin 19)))
(net (code 30) (name "Net-(U2-Pad27)")
(node (ref U2) (pin 27)))
(net (code 31) (name "Net-(U2-Pad28)")
(node (ref U2) (pin 28)))
(net (code 32) (name "Net-(C2-Pad1)")
(node (ref U2) (pin 17))
(node (ref C2) (pin 1)))
(net (code 33) (name "Net-(U2-Pad14)")
(node (ref U2) (pin 14)))
(net (code 34) (name "Net-(U2-Pad13)")
(node (ref U2) (pin 13)))
(net (code 35) (name "Net-(U2-Pad12)")
(node (ref U2) (pin 12)))
(net (code 36) (name "Net-(U2-Pad11)")
(node (ref U2) (pin 11)))
(net (code 37) (name "Net-(U2-Pad10)")
(node (ref U2) (pin 10)))
(net (code 38) (name "Net-(U2-Pad9)")
(node (ref U2) (pin 9)))
(net (code 39) (name "Net-(U2-Pad6)")
(node (ref U2) (pin 6)))
(net (code 40) (name "Net-(U2-Pad3)")
(node (ref U2) (pin 3)))
(net (code 41) (name "Net-(C5-Pad2)")
(node (ref C5) (pin 2))
(node (ref U2) (pin 2)))
(net (code 42) (name "Net-(P2-Pad4)")
(node (ref P2) (pin 4))
(node (ref U4) (pin 6)))
(net (code 43) (name "Net-(P2-Pad3)")
(node (ref P2) (pin 3))
(node (ref U4) (pin 4)))
(net (code 44) (name "Net-(R16-Pad2)")
(node (ref U4) (pin 3))
(node (ref R16) (pin 2)))
(net (code 45) (name "Net-(R17-Pad2)")
(node (ref U6) (pin 4))
(node (ref R17) (pin 2))
(node (ref U5) (pin 10)))
(net (code 46) (name "Net-(P6-Pad4)")
(node (ref P6) (pin 4))
(node (ref U5) (pin 27)))
(net (code 47) (name "Net-(P6-Pad3)")
(node (ref U5) (pin 28))
(node (ref P6) (pin 3)))
(net (code 48) (name "Net-(U5-Pad14)")
(node (ref U5) (pin 14)))
(net (code 49) (name "Net-(U5-Pad13)")
(node (ref U5) (pin 13)))
(net (code 50) (name "Net-(U5-Pad23)")
(node (ref U5) (pin 23)))
(net (code 51) (name "Net-(U5-Pad24)")
(node (ref U5) (pin 24)))
(net (code 52) (name "Net-(P4-Pad2)")
(node (ref U5) (pin 17))
(node (ref P4) (pin 2)))
(net (code 53) (name "Net-(P4-Pad6)")
(node (ref U5) (pin 15))
(node (ref P4) (pin 6)))
(net (code 54) (name "Net-(P4-Pad4)")
(node (ref P4) (pin 4))
(node (ref U5) (pin 16)))
(net (code 55) (name "Net-(P1-Pad4)")
(node (ref P1) (pin 4)))
(net (code 56) (name "Net-(P1-Pad3)")
(node (ref U2) (pin 15))
(node (ref P1) (pin 3)))
(net (code 57) (name "Net-(P1-Pad2)")
(node (ref U2) (pin 16))
(node (ref P1) (pin 2)))
(net (code 58) (name "Net-(C1-Pad1)")
(node (ref U1) (pin 4))
(node (ref C1) (pin 1))
(node (ref U2) (pin 20))
(node (ref D1) (pin 2))
(node (ref P1) (pin 1)))
(net (code 59) (name "Net-(C10-Pad2)")
(node (ref X1) (pin 1))
(node (ref C10) (pin 2))
(node (ref U5) (pin 7)))
(net (code 60) (name "Net-(C11-Pad2)")
(node (ref X1) (pin 2))
(node (ref U5) (pin 8))
(node (ref C11) (pin 2)))
(net (code 61) (name "Net-(U2-Pad1)")
(node (ref U2) (pin 1))
(node (ref U5) (pin 30)))
(net (code 62) (name "Net-(U2-Pad5)")
(node (ref U2) (pin 5))
(node (ref U5) (pin 31)))
(net (code 63) (name "Net-(C8-Pad1)")
(node (ref U5) (pin 20))
(node (ref C8) (pin 1)))))

30
NMM1_Kicad/rev_B/nmm1_B.pro Executable file
View File

@@ -0,0 +1,30 @@
update=Tue 20 Nov 2018 11:04:35 GMT
version=1
last_client=kicad
[pcbnew]
version=1
LastNetListRead=
UseCmpFile=1
PadDrill=0.600000000000
PadDrillOvalY=0.600000000000
PadSizeH=1.500000000000
PadSizeV=1.500000000000
PcbTextSizeV=1.500000000000
PcbTextSizeH=1.500000000000
PcbTextThickness=0.300000000000
ModuleTextSizeV=1.000000000000
ModuleTextSizeH=1.000000000000
ModuleTextSizeThickness=0.150000000000
SolderMaskClearance=0.000000000000
SolderMaskMinWidth=0.000000000000
DrawSegmentWidth=0.200000000000
BoardOutlineThickness=0.100000000000
ModuleOutlineThickness=0.150000000000
[cvpcb]
version=1
NetIExt=net
[general]
version=1
[eeschema]
version=1
LibDir=

1507
NMM1_Kicad/rev_B/nmm1_B.sch Normal file

File diff suppressed because it is too large Load Diff

1108
NMM1_Kicad/rev_B/nmm1_B.xml Executable file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,64 @@
update=Mon 02 Jul 2018 18:50:18 GMT
version=1
last_client=kicad
[pcbnew]
version=1
LastNetListRead=
UseCmpFile=1
PadDrill=0.600000000000
PadDrillOvalY=0.600000000000
PadSizeH=1.500000000000
PadSizeV=1.500000000000
PcbTextSizeV=1.500000000000
PcbTextSizeH=1.500000000000
PcbTextThickness=0.300000000000
ModuleTextSizeV=1.000000000000
ModuleTextSizeH=1.000000000000
ModuleTextSizeThickness=0.150000000000
SolderMaskClearance=0.000000000000
SolderMaskMinWidth=0.000000000000
DrawSegmentWidth=0.200000000000
BoardOutlineThickness=0.100000000000
ModuleOutlineThickness=0.150000000000
[cvpcb]
version=1
NetIExt=net
[general]
version=1
[eeschema]
version=1
LibDir=/home/ricardo/Projects/Kicad/libs/electropepper.pretty
[eeschema/libraries]
LibName1=nmm1_B-rescue
LibName2=power
LibName3=device
LibName4=transistors
LibName5=conn
LibName6=linear
LibName7=regul
LibName8=74xx
LibName9=cmos4000
LibName10=adc-dac
LibName11=memory
LibName12=xilinx
LibName13=microcontrollers
LibName14=dsp
LibName15=microchip
LibName16=analog_switches
LibName17=motorola
LibName18=texas
LibName19=intel
LibName20=audio
LibName21=interface
LibName22=digital-audio
LibName23=philips
LibName24=display
LibName25=cypress
LibName26=siliconi
LibName27=opto
LibName28=atmel
LibName29=contrib
LibName30=valves
LibName31=ftdi
LibName32=switches
LibName33=/home/ricardo/Projects/Kicad/Kicad_libs/electropepper_kicad

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,30 @@
update=Mon 19 Nov 2018 22:24:24 GMT
version=1
last_client=kicad
[pcbnew]
version=1
LastNetListRead=
UseCmpFile=1
PadDrill=0.600000000000
PadDrillOvalY=0.600000000000
PadSizeH=1.500000000000
PadSizeV=1.500000000000
PcbTextSizeV=1.500000000000
PcbTextSizeH=1.500000000000
PcbTextThickness=0.300000000000
ModuleTextSizeV=1.000000000000
ModuleTextSizeH=1.000000000000
ModuleTextSizeThickness=0.150000000000
SolderMaskClearance=0.000000000000
SolderMaskMinWidth=0.000000000000
DrawSegmentWidth=0.200000000000
BoardOutlineThickness=0.100000000000
ModuleOutlineThickness=0.150000000000
[cvpcb]
version=1
NetIExt=net
[general]
version=1
[eeschema]
version=1
LibDir=

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,477 @@
EESchema-LIBRARY Version 2.3
#encoding utf-8
#
# +3V3
#
DEF +3V3 #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "+3V3" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
ALIAS +3.3V
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X +3V3 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# ATMEGA168A-AU
#
DEF ATMEGA168A-AU U 0 40 Y Y 1 F N
F0 "U" -750 1250 50 H V L BNN
F1 "ATMEGA168A-AU" 400 -1400 50 H V L BNN
F2 "Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm" 0 0 50 H I C CIN
F3 "" 0 0 50 H I C CNN
ALIAS ATMEGA48A-AU ATMEGA48PA-AU ATMEGA88A-AU ATMEGA88PA-AU ATMEGA168PA-AU ATMEGA328-AU ATMEGA328P-AU
$FPLIST
TQFP*7x7mm*Pitch0.8mm*
$ENDFPLIST
DRAW
S -750 1200 850 -1300 0 1 10 f
X (PCINT19/OC2B/INT1)PD3 1 1000 -800 150 L 40 40 1 1 B
X (PCINT20/XCK/T0)PD4 2 1000 -900 150 L 40 40 1 1 B
X GND 3 -900 -1200 150 R 40 40 1 1 W
X VCC 4 -900 1100 150 R 40 40 1 1 W
X GND 5 -900 -1100 150 R 40 40 1 1 W
X VCC 6 -900 1000 150 R 40 40 1 1 W
X (PCINT6/XTAL1/TOSC1)PB6 7 1000 500 150 L 40 40 1 1 B
X (PCINT7/XTAL2/TOSC2)PB7 8 1000 400 150 L 40 40 1 1 B
X (PCINT21/OC0B/T1)PD5 9 1000 -1000 150 L 40 40 1 1 B
X (PCINT22/OC0A/AIN0)PD6 10 1000 -1100 150 L 40 40 1 1 B
X AREF 20 -900 500 150 R 40 40 1 1 B
X (PCINT16/RXD)PD0 30 1000 -500 150 L 40 40 1 1 B
X (PCINT23/AIN1)PD7 11 1000 -1200 150 L 40 40 1 1 B
X GND 21 -900 -1000 150 R 40 40 1 1 W
X (PCINT17/TXD)PD1 31 1000 -600 150 L 40 40 1 1 B
X (PCINT0/CLKO/ICP1)PB0 12 1000 1100 150 L 40 40 1 1 B
X ADC7 22 -900 -350 150 R 40 40 1 1 I
X (PCINT18/INT0)PD2 32 1000 -700 150 L 40 40 1 1 B
X (PCINT1/OC1A)PB1 13 1000 1000 150 L 40 40 1 1 B
X (PCINT8/ADC0)PC0 23 1000 250 150 L 40 40 1 1 B
X (PCINT2/OC1B/~SS~)PB2 14 1000 900 150 L 40 40 1 1 B
X (PCINT9/ADC1)PC1 24 1000 150 150 L 40 40 1 1 B
X (PCINT3/OC2A/MOSI)PB3 15 1000 800 150 L 40 40 1 1 B
X (PCINT10/ADC2)PC2 25 1000 50 150 L 40 40 1 1 B
X (PCINT4/MISO)PB4 16 1000 700 150 L 40 40 1 1 B
X (PCINT11/ADC3)PC3 26 1000 -50 150 L 40 40 1 1 B
X (PCINT5/SCK)PB5 17 1000 600 150 L 40 40 1 1 B
X (PCINT12/SDA/ADC4)PC4 27 1000 -150 150 L 40 40 1 1 B
X AVCC 18 -900 800 150 R 40 40 1 1 W
X (PCINT13/SCL/ADC5)PC5 28 1000 -250 150 L 40 40 1 1 B
X ADC6 19 -900 -250 150 R 40 40 1 1 I
X (PCINT14/~RESET~)PC6 29 1000 -350 150 L 40 40 1 1 B
ENDDRAW
ENDDEF
#
# C
#
DEF C C 0 10 N Y 1 F N
F0 "C" 25 100 50 H V L CNN
F1 "C" 25 -100 50 H V L CNN
F2 "" 38 -150 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
C_*
$ENDFPLIST
DRAW
P 2 0 1 20 -80 -30 80 -30 N
P 2 0 1 20 -80 30 80 30 N
X ~ 1 0 150 110 D 50 50 1 1 P
X ~ 2 0 -150 110 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x02
#
DEF Conn_01x02 J 0 40 Y N 1 F N
F0 "J" 0 100 50 H V C CNN
F1 "Conn_01x02" 0 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 50 50 -150 1 1 10 f
X Pin_1 1 -200 0 150 R 50 50 1 1 P
X Pin_2 2 -200 -100 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x04
#
DEF Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Conn_01x04" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x05
#
DEF Conn_01x05 J 0 40 Y N 1 F N
F0 "J" 0 300 50 H V C CNN
F1 "Conn_01x05" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 205 0 195 1 1 6 N
S -50 250 50 -250 1 1 10 f
X Pin_1 1 -200 200 150 R 50 50 1 1 P
X Pin_2 2 -200 100 150 R 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 -200 -100 150 R 50 50 1 1 P
X Pin_5 5 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_02x03_Odd_Even
#
DEF Conn_02x03_Odd_Even J 0 40 Y N 1 F N
F0 "J" 50 200 50 H V C CNN
F1 "Conn_02x03_Odd_Even" 50 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*2x??x*mm*
Connector*:*2x???Pitch*
Pin_Header_Straight_2X*
Pin_Header_Angled_2X*
Socket_Strip_Straight_2X*
Socket_Strip_Angled_2X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 150 -150 1 1 10 f
S 150 -95 100 -105 1 1 6 N
S 150 5 100 -5 1 1 6 N
S 150 105 100 95 1 1 6 N
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 300 100 150 L 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 300 0 150 L 50 50 1 1 P
X Pin_5 5 -200 -100 150 R 50 50 1 1 P
X Pin_6 6 300 -100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Crystal
#
DEF Crystal Y 0 40 N N 1 F N
F0 "Y" 0 150 50 H V C CNN
F1 "Crystal" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Crystal*
$ENDFPLIST
DRAW
S -45 100 45 -100 0 1 12 N
P 2 0 1 0 -100 0 -75 0 N
P 2 0 1 20 -75 -50 -75 50 N
P 2 0 1 20 75 -50 75 50 N
P 2 0 1 0 100 0 75 0 N
X 1 1 -150 0 50 R 50 50 1 1 P
X 2 2 150 0 50 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# D
#
DEF D D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "D" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
TO-???*
*SingleDiode
*_Diode_*
*SingleDiode*
D_*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 50 -50 -50 N
P 2 0 1 0 50 0 -50 0 N
P 4 0 1 8 50 50 50 -50 -50 0 50 50 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# FT232RL
#
DEF FT232RL U 0 40 Y Y 1 F N
F0 "U" -650 900 50 H V L CNN
F1 "FT232RL" 400 900 50 H V L CNN
F2 "Housings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mm" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
SSOP*5.3x10.2mm*Pitch0.65mm*
$ENDFPLIST
DRAW
S -650 850 650 -850 0 1 10 f
X TXD 1 800 700 150 L 50 50 1 1 O
X DTR 2 800 300 150 L 50 50 1 1 O V
X RTS 3 800 500 150 L 50 50 1 1 O V
X VCCIO 4 -100 1000 150 D 50 50 1 1 I
X RXD 5 800 600 150 L 50 50 1 1 I
X RI 6 800 0 150 L 50 50 1 1 I L
X GND 7 0 -1000 150 U 50 50 1 1 W
X DCR 9 800 200 150 L 50 50 1 1 I L
X DCD 10 800 100 150 L 50 50 1 1 I L
X VCC 20 100 1000 150 D 50 50 1 1 W
X CTS 11 800 400 150 L 50 50 1 1 I L
X GND 21 200 -1000 150 U 50 50 1 1 W
X CBUS4 12 800 -700 150 L 50 50 1 1 B
X CBUS1 22 800 -400 150 L 50 50 1 1 O
X CBUS2 13 800 -500 150 L 50 50 1 1 B
X CBUS0 23 800 -300 150 L 50 50 1 1 B
X CBUS3 14 800 -600 150 L 50 50 1 1 B
X USBD+ 15 -800 400 150 R 50 50 1 1 B
X AGND 25 -200 -1000 150 U 50 50 1 1 W
X USBD- 16 -800 300 150 R 50 50 1 1 B
X TEST 26 -800 -700 150 R 50 50 1 1 W
X 3V3OUT 17 -800 700 150 R 50 50 1 1 I
X OSCI 27 -800 -200 150 R 50 50 1 1 I
X GND 18 100 -1000 150 U 50 50 1 1 W
X OSCO 28 -800 -400 150 R 50 50 1 1 O
X ~RESET~ 19 -800 0 150 R 50 50 1 1 I
ENDDRAW
ENDDEF
#
# GND
#
DEF GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# L
#
DEF L L 0 40 N N 1 F N
F0 "L" -50 0 50 V V C CNN
F1 "L" 75 0 50 V V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Choke_*
*Coil*
Inductor_*
L_*
$ENDFPLIST
DRAW
A 0 -75 25 -899 899 0 1 0 N 0 -100 0 -50
A 0 -25 25 -899 899 0 1 0 N 0 -50 0 0
A 0 25 25 -899 899 0 1 0 N 0 0 0 50
A 0 75 25 -899 899 0 1 0 N 0 50 0 100
X 1 1 0 150 50 D 50 50 1 1 P
X 2 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# LED
#
DEF LED D 0 40 Y N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "LED" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
LED*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 -50 -50 50 N
P 2 0 1 0 -50 0 50 0 N
P 4 0 1 8 50 -50 50 50 -50 0 50 -50 N
P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# MAX3295
#
DEF MAX3295 U 0 40 Y Y 1 F N
F0 "U" -150 300 60 H V C CNN
F1 "MAX3295" 225 -275 60 H V C CNN
F2 "" 0 0 60 H I C CNN
F3 "" 0 0 60 H I C CNN
DRAW
S -200 250 200 -225 0 1 0 f
X DI 1 -325 125 123 R 50 50 1 1 I
X VCC 2 0 375 123 D 50 50 1 1 W
X DE 3 -325 -75 123 R 50 50 1 1 B
X Z 4 325 125 123 L 50 50 1 1 B
X GND 5 0 -350 123 U 50 50 1 1 B
X Y 6 325 0 123 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
# MCP73831
#
DEF MCP73831 U 0 40 Y Y 1 F N
F0 "U" -225 250 60 H V C CNN
F1 "MCP73831" 50 -250 60 H V C CNN
F2 "" 0 75 60 H I C CNN
F3 "" 0 75 60 H I C CNN
DRAW
S -275 200 275 -200 0 1 0 f
X STAT 1 -475 -125 200 R 50 50 1 1 O
X Vss 2 475 -125 200 L 50 50 1 1 W
X Vbat 3 475 125 200 L 50 50 1 1 w
X VDD 4 -475 125 200 R 50 50 1 1 W
X PROG 5 475 0 200 L 50 50 1 1 I
ENDDRAW
ENDDEF
#
# R
#
DEF R R 0 0 N Y 1 F N
F0 "R" 80 0 50 V V C CNN
F1 "R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# SW_Push
#
DEF SW_Push SW 0 40 N N 1 F N
F0 "SW" 50 100 50 H V L CNN
F1 "SW_Push" 0 -60 50 H V C CNN
F2 "" 0 200 50 H I C CNN
F3 "" 0 200 50 H I C CNN
DRAW
C -80 0 20 0 1 0 N
C 80 0 20 0 1 0 N
P 2 0 1 0 0 50 0 120 N
P 2 0 1 0 100 50 -100 50 N
X 1 1 -200 0 100 R 50 50 0 1 P
X 2 2 200 0 100 L 50 50 0 1 P
ENDDRAW
ENDDEF
#
# TPS62046
#
DEF TPS62046 U 0 40 Y Y 1 F N
F0 "U" -225 300 60 H V C CNN
F1 "TPS62046" 250 -300 60 H V C CNN
F2 "" 20 35 60 H I C CNN
F3 "" 20 35 60 H I C CNN
DRAW
S -300 250 300 -250 1 1 0 f
X EN 1 -500 0 200 R 50 50 1 1 I
X VIN 2 -500 200 200 R 50 50 1 1 W
X VIN 3 -500 100 200 R 50 50 1 1 W
X GND 4 -500 -200 200 R 50 50 1 1 W
X FB 5 500 0 200 L 50 50 1 1 I
X MODE 6 -500 -100 200 R 50 50 1 1 I
X SW 7 500 100 200 L 50 50 1 1 B
X SW 8 500 200 200 L 50 50 1 1 B
X PGND 9 500 -200 200 L 50 50 1 1 W
X PGND 10 500 -100 200 L 50 50 1 1 W
X PGND 11 0 -450 200 U 50 50 1 1 I
ENDDRAW
ENDDEF
#
# USB_OTG-Electropepper
#
DEF USB_OTG-Electropepper P 0 40 Y Y 1 F N
F0 "P" 325 -125 50 H V C CNN
F1 "USB_OTG-Electropepper" 0 200 50 H V C CNN
F2 "" -50 -100 50 V V C CNN
F3 "" -50 -100 50 V V C CNN
$FPLIST
USB*
$ENDFPLIST
DRAW
S -250 -150 250 150 0 1 0 N
S -205 -150 -195 -120 0 1 0 N
S -105 -150 -95 -120 0 1 0 N
S -5 -150 5 -120 0 1 0 N
S 95 -150 105 -120 0 1 0 N
S 195 -150 205 -120 0 1 0 N
X VBUS 1 -200 -300 150 U 50 50 1 1 w
X D- 2 -100 -300 150 U 50 50 1 1 P
X D+ 3 0 -300 150 U 50 50 1 1 P
X ID 4 100 -300 150 U 50 50 1 1 W
X GND 5 200 -300 150 U 50 50 1 1 W
X shield 6 400 100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# VOS627A
#
DEF VOS627A U 0 40 Y Y 1 F N
F0 "U" -125 150 60 H V C CNN
F1 "VOS627A" 0 -150 60 H V C CNN
F2 "" 0 -50 60 H I C CNN
F3 "" 0 -50 60 H I C CNN
DRAW
S -175 100 175 -100 0 1 0 f
X A/C 1 -300 50 123 R 50 50 1 1 B
X C/A 2 -300 -50 123 R 50 50 1 1 B
X E 3 300 -50 123 L 50 50 1 1 B
X C 4 300 50 123 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
#End Library

View File

@@ -0,0 +1,477 @@
EESchema-LIBRARY Version 2.3
#encoding utf-8
#
# +3V3
#
DEF +3V3 #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -150 50 H I C CNN
F1 "+3V3" 0 140 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
ALIAS +3.3V
DRAW
P 2 0 1 0 -30 50 0 100 N
P 2 0 1 0 0 0 0 100 N
P 2 0 1 0 0 100 30 50 N
X +3V3 1 0 0 0 U 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# ATMEGA168A-AU
#
DEF ATMEGA168A-AU U 0 40 Y Y 1 F N
F0 "U" -750 1250 50 H V L BNN
F1 "ATMEGA168A-AU" 400 -1400 50 H V L BNN
F2 "Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm" 0 0 50 H I C CIN
F3 "" 0 0 50 H I C CNN
ALIAS ATMEGA48A-AU ATMEGA48PA-AU ATMEGA88A-AU ATMEGA88PA-AU ATMEGA168PA-AU ATMEGA328-AU ATMEGA328P-AU
$FPLIST
TQFP*7x7mm*Pitch0.8mm*
$ENDFPLIST
DRAW
S -750 1200 850 -1300 0 1 10 f
X (PCINT19/OC2B/INT1)PD3 1 1000 -800 150 L 40 40 1 1 B
X (PCINT20/XCK/T0)PD4 2 1000 -900 150 L 40 40 1 1 B
X GND 3 -900 -1200 150 R 40 40 1 1 W
X VCC 4 -900 1100 150 R 40 40 1 1 W
X GND 5 -900 -1100 150 R 40 40 1 1 W
X VCC 6 -900 1000 150 R 40 40 1 1 W
X (PCINT6/XTAL1/TOSC1)PB6 7 1000 500 150 L 40 40 1 1 B
X (PCINT7/XTAL2/TOSC2)PB7 8 1000 400 150 L 40 40 1 1 B
X (PCINT21/OC0B/T1)PD5 9 1000 -1000 150 L 40 40 1 1 B
X (PCINT22/OC0A/AIN0)PD6 10 1000 -1100 150 L 40 40 1 1 B
X AREF 20 -900 500 150 R 40 40 1 1 B
X (PCINT16/RXD)PD0 30 1000 -500 150 L 40 40 1 1 B
X (PCINT23/AIN1)PD7 11 1000 -1200 150 L 40 40 1 1 B
X GND 21 -900 -1000 150 R 40 40 1 1 W
X (PCINT17/TXD)PD1 31 1000 -600 150 L 40 40 1 1 B
X (PCINT0/CLKO/ICP1)PB0 12 1000 1100 150 L 40 40 1 1 B
X ADC7 22 -900 -350 150 R 40 40 1 1 I
X (PCINT18/INT0)PD2 32 1000 -700 150 L 40 40 1 1 B
X (PCINT1/OC1A)PB1 13 1000 1000 150 L 40 40 1 1 B
X (PCINT8/ADC0)PC0 23 1000 250 150 L 40 40 1 1 B
X (PCINT2/OC1B/~SS~)PB2 14 1000 900 150 L 40 40 1 1 B
X (PCINT9/ADC1)PC1 24 1000 150 150 L 40 40 1 1 B
X (PCINT3/OC2A/MOSI)PB3 15 1000 800 150 L 40 40 1 1 B
X (PCINT10/ADC2)PC2 25 1000 50 150 L 40 40 1 1 B
X (PCINT4/MISO)PB4 16 1000 700 150 L 40 40 1 1 B
X (PCINT11/ADC3)PC3 26 1000 -50 150 L 40 40 1 1 B
X (PCINT5/SCK)PB5 17 1000 600 150 L 40 40 1 1 B
X (PCINT12/SDA/ADC4)PC4 27 1000 -150 150 L 40 40 1 1 B
X AVCC 18 -900 800 150 R 40 40 1 1 W
X (PCINT13/SCL/ADC5)PC5 28 1000 -250 150 L 40 40 1 1 B
X ADC6 19 -900 -250 150 R 40 40 1 1 I
X (PCINT14/~RESET~)PC6 29 1000 -350 150 L 40 40 1 1 B
ENDDRAW
ENDDEF
#
# C
#
DEF C C 0 10 N Y 1 F N
F0 "C" 25 100 50 H V L CNN
F1 "C" 25 -100 50 H V L CNN
F2 "" 38 -150 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
C_*
$ENDFPLIST
DRAW
P 2 0 1 20 -80 -30 80 -30 N
P 2 0 1 20 -80 30 80 30 N
X ~ 1 0 150 110 D 50 50 1 1 P
X ~ 2 0 -150 110 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x02
#
DEF Conn_01x02 J 0 40 Y N 1 F N
F0 "J" 0 100 50 H V C CNN
F1 "Conn_01x02" 0 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 50 50 -150 1 1 10 f
X Pin_1 1 -200 0 150 R 50 50 1 1 P
X Pin_2 2 -200 -100 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x04
#
DEF Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Conn_01x04" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x05
#
DEF Conn_01x05 J 0 40 Y N 1 F N
F0 "J" 0 300 50 H V C CNN
F1 "Conn_01x05" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 205 0 195 1 1 6 N
S -50 250 50 -250 1 1 10 f
X Pin_1 1 -200 200 150 R 50 50 1 1 P
X Pin_2 2 -200 100 150 R 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 -200 -100 150 R 50 50 1 1 P
X Pin_5 5 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_02x03_Odd_Even
#
DEF Conn_02x03_Odd_Even J 0 40 Y N 1 F N
F0 "J" 50 200 50 H V C CNN
F1 "Conn_02x03_Odd_Even" 50 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*2x??x*mm*
Connector*:*2x???Pitch*
Pin_Header_Straight_2X*
Pin_Header_Angled_2X*
Socket_Strip_Straight_2X*
Socket_Strip_Angled_2X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 150 -150 1 1 10 f
S 150 -95 100 -105 1 1 6 N
S 150 5 100 -5 1 1 6 N
S 150 105 100 95 1 1 6 N
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 300 100 150 L 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 300 0 150 L 50 50 1 1 P
X Pin_5 5 -200 -100 150 R 50 50 1 1 P
X Pin_6 6 300 -100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Crystal
#
DEF Crystal Y 0 40 N N 1 F N
F0 "Y" 0 150 50 H V C CNN
F1 "Crystal" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Crystal*
$ENDFPLIST
DRAW
S -45 100 45 -100 0 1 12 N
P 2 0 1 0 -100 0 -75 0 N
P 2 0 1 20 -75 -50 -75 50 N
P 2 0 1 20 75 -50 75 50 N
P 2 0 1 0 100 0 75 0 N
X 1 1 -150 0 50 R 50 50 1 1 P
X 2 2 150 0 50 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# D
#
DEF D D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "D" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
TO-???*
*SingleDiode
*_Diode_*
*SingleDiode*
D_*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 50 -50 -50 N
P 2 0 1 0 50 0 -50 0 N
P 4 0 1 8 50 50 50 -50 -50 0 50 50 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# FT232RL
#
DEF FT232RL U 0 40 Y Y 1 F N
F0 "U" -650 900 50 H V L CNN
F1 "FT232RL" 400 900 50 H V L CNN
F2 "Housings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mm" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
SSOP*5.3x10.2mm*Pitch0.65mm*
$ENDFPLIST
DRAW
S -650 850 650 -850 0 1 10 f
X TXD 1 800 700 150 L 50 50 1 1 O
X DTR 2 800 300 150 L 50 50 1 1 O V
X RTS 3 800 500 150 L 50 50 1 1 O V
X VCCIO 4 -100 1000 150 D 50 50 1 1 I
X RXD 5 800 600 150 L 50 50 1 1 I
X RI 6 800 0 150 L 50 50 1 1 I L
X GND 7 0 -1000 150 U 50 50 1 1 W
X DCR 9 800 200 150 L 50 50 1 1 I L
X DCD 10 800 100 150 L 50 50 1 1 I L
X VCC 20 100 1000 150 D 50 50 1 1 W
X CTS 11 800 400 150 L 50 50 1 1 I L
X GND 21 200 -1000 150 U 50 50 1 1 W
X CBUS4 12 800 -700 150 L 50 50 1 1 B
X CBUS1 22 800 -400 150 L 50 50 1 1 O
X CBUS2 13 800 -500 150 L 50 50 1 1 B
X CBUS0 23 800 -300 150 L 50 50 1 1 B
X CBUS3 14 800 -600 150 L 50 50 1 1 B
X USBD+ 15 -800 400 150 R 50 50 1 1 B
X AGND 25 -200 -1000 150 U 50 50 1 1 W
X USBD- 16 -800 300 150 R 50 50 1 1 B
X TEST 26 -800 -700 150 R 50 50 1 1 W
X 3V3OUT 17 -800 700 150 R 50 50 1 1 I
X OSCI 27 -800 -200 150 R 50 50 1 1 I
X GND 18 100 -1000 150 U 50 50 1 1 W
X OSCO 28 -800 -400 150 R 50 50 1 1 O
X ~RESET~ 19 -800 0 150 R 50 50 1 1 I
ENDDRAW
ENDDEF
#
# GND
#
DEF GND #PWR 0 0 Y Y 1 F P
F0 "#PWR" 0 -250 50 H I C CNN
F1 "GND" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
DRAW
P 6 0 1 0 0 0 0 -50 50 -50 0 -100 -50 -50 0 -50 N
X GND 1 0 0 0 D 50 50 1 1 W N
ENDDRAW
ENDDEF
#
# L
#
DEF L L 0 40 N N 1 F N
F0 "L" -50 0 50 V V C CNN
F1 "L" 75 0 50 V V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Choke_*
*Coil*
Inductor_*
L_*
$ENDFPLIST
DRAW
A 0 -75 25 -899 899 0 1 0 N 0 -100 0 -50
A 0 -25 25 -899 899 0 1 0 N 0 -50 0 0
A 0 25 25 -899 899 0 1 0 N 0 0 0 50
A 0 75 25 -899 899 0 1 0 N 0 50 0 100
X 1 1 0 150 50 D 50 50 1 1 P
X 2 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# LED
#
DEF LED D 0 40 Y N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "LED" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
LED*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 -50 -50 50 N
P 2 0 1 0 -50 0 50 0 N
P 4 0 1 8 50 -50 50 50 -50 0 50 -50 N
P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# MAX3295
#
DEF MAX3295 U 0 40 Y Y 1 F N
F0 "U" -150 300 60 H V C CNN
F1 "MAX3295" 225 -275 60 H V C CNN
F2 "" 0 0 60 H I C CNN
F3 "" 0 0 60 H I C CNN
DRAW
S -200 250 200 -225 0 1 0 f
X DI 1 -325 125 123 R 50 50 1 1 I
X VCC 2 0 375 123 D 50 50 1 1 W
X DE 3 -325 -75 123 R 50 50 1 1 B
X Z 4 325 125 123 L 50 50 1 1 B
X GND 5 0 -350 123 U 50 50 1 1 B
X Y 6 325 0 123 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
# MCP73831
#
DEF MCP73831 U 0 40 Y Y 1 F N
F0 "U" -225 250 60 H V C CNN
F1 "MCP73831" 50 -250 60 H V C CNN
F2 "" 0 75 60 H I C CNN
F3 "" 0 75 60 H I C CNN
DRAW
S -275 200 275 -200 0 1 0 f
X STAT 1 -475 -125 200 R 50 50 1 1 O
X Vss 2 475 -125 200 L 50 50 1 1 W
X Vbat 3 475 125 200 L 50 50 1 1 w
X VDD 4 -475 125 200 R 50 50 1 1 W
X PROG 5 475 0 200 L 50 50 1 1 I
ENDDRAW
ENDDEF
#
# R
#
DEF R R 0 0 N Y 1 F N
F0 "R" 80 0 50 V V C CNN
F1 "R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# SW_Push
#
DEF SW_Push SW 0 40 N N 1 F N
F0 "SW" 50 100 50 H V L CNN
F1 "SW_Push" 0 -60 50 H V C CNN
F2 "" 0 200 50 H I C CNN
F3 "" 0 200 50 H I C CNN
DRAW
C -80 0 20 0 1 0 N
C 80 0 20 0 1 0 N
P 2 0 1 0 0 50 0 120 N
P 2 0 1 0 100 50 -100 50 N
X 1 1 -200 0 100 R 50 50 0 1 P
X 2 2 200 0 100 L 50 50 0 1 P
ENDDRAW
ENDDEF
#
# TPS62046
#
DEF TPS62046 U 0 40 Y Y 1 F N
F0 "U" -225 300 60 H V C CNN
F1 "TPS62046" 250 -300 60 H V C CNN
F2 "" 20 35 60 H I C CNN
F3 "" 20 35 60 H I C CNN
DRAW
S -300 250 300 -250 1 1 0 f
X EN 1 -500 0 200 R 50 50 1 1 I
X VIN 2 -500 200 200 R 50 50 1 1 W
X VIN 3 -500 100 200 R 50 50 1 1 W
X GND 4 -500 -200 200 R 50 50 1 1 W
X FB 5 500 0 200 L 50 50 1 1 I
X MODE 6 -500 -100 200 R 50 50 1 1 I
X SW 7 500 100 200 L 50 50 1 1 B
X SW 8 500 200 200 L 50 50 1 1 B
X PGND 9 500 -200 200 L 50 50 1 1 W
X PGND 10 500 -100 200 L 50 50 1 1 W
X PGND 11 0 -450 200 U 50 50 1 1 I
ENDDRAW
ENDDEF
#
# USB_OTG-Electropepper
#
DEF USB_OTG-Electropepper P 0 40 Y Y 1 F N
F0 "P" 325 -125 50 H V C CNN
F1 "USB_OTG-Electropepper" 0 200 50 H V C CNN
F2 "" -50 -100 50 V V C CNN
F3 "" -50 -100 50 V V C CNN
$FPLIST
USB*
$ENDFPLIST
DRAW
S -250 -150 250 150 0 1 0 N
S -205 -150 -195 -120 0 1 0 N
S -105 -150 -95 -120 0 1 0 N
S -5 -150 5 -120 0 1 0 N
S 95 -150 105 -120 0 1 0 N
S 195 -150 205 -120 0 1 0 N
X VBUS 1 -200 -300 150 U 50 50 1 1 w
X D- 2 -100 -300 150 U 50 50 1 1 P
X D+ 3 0 -300 150 U 50 50 1 1 P
X ID 4 100 -300 150 U 50 50 1 1 W
X GND 5 200 -300 150 U 50 50 1 1 W
X shield 6 400 100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# VOS627A
#
DEF VOS627A U 0 40 Y Y 1 F N
F0 "U" -125 150 60 H V C CNN
F1 "VOS627A" 0 -150 60 H V C CNN
F2 "" 0 -50 60 H I C CNN
F3 "" 0 -50 60 H I C CNN
DRAW
S -175 100 175 -100 0 1 0 f
X A/C 1 -300 50 123 R 50 50 1 1 B
X C/A 2 -300 -50 123 R 50 50 1 1 B
X E 3 300 -50 123 L 50 50 1 1 B
X C 4 300 50 123 L 50 50 1 1 B
ENDDRAW
ENDDEF
#
#End Library

View File

@@ -0,0 +1,4 @@
EESchema-LIBRARY Version 2.3
#encoding utf-8
#
#End Library

View File

@@ -0,0 +1,347 @@
EESchema-LIBRARY Version 2.4
#encoding utf-8
#
# ATMEGA328P-AU
#
DEF ATMEGA328P-AU U 0 40 Y Y 1 F N
F0 "U" -750 1250 50 H V L BNN
F1 "ATMEGA328P-AU" 400 -1400 50 H V L BNN
F2 "Housings_QFP:TQFP-32_7x7mm_Pitch0.8mm" 0 0 50 H I C CIN
F3 "" 0 0 50 H I C CNN
$FPLIST
TQFP*7x7mm*Pitch0.8mm*
$ENDFPLIST
DRAW
S -750 1200 850 -1300 0 1 10 f
X (PCINT19/OC2B/INT1)PD3 1 1000 -800 150 L 40 40 1 1 B
X (PCINT22/OC0A/AIN0)PD6 10 1000 -1100 150 L 40 40 1 1 B
X (PCINT23/AIN1)PD7 11 1000 -1200 150 L 40 40 1 1 B
X (PCINT0/CLKO/ICP1)PB0 12 1000 1100 150 L 40 40 1 1 B
X (PCINT1/OC1A)PB1 13 1000 1000 150 L 40 40 1 1 B
X (PCINT2/OC1B/~SS~)PB2 14 1000 900 150 L 40 40 1 1 B
X (PCINT3/OC2A/MOSI)PB3 15 1000 800 150 L 40 40 1 1 B
X (PCINT4/MISO)PB4 16 1000 700 150 L 40 40 1 1 B
X (PCINT5/SCK)PB5 17 1000 600 150 L 40 40 1 1 B
X AVCC 18 -900 800 150 R 40 40 1 1 W
X ADC6 19 -900 -250 150 R 40 40 1 1 I
X (PCINT20/XCK/T0)PD4 2 1000 -900 150 L 40 40 1 1 B
X AREF 20 -900 500 150 R 40 40 1 1 B
X GND 21 -900 -1000 150 R 40 40 1 1 W
X ADC7 22 -900 -350 150 R 40 40 1 1 I
X (PCINT8/ADC0)PC0 23 1000 250 150 L 40 40 1 1 B
X (PCINT9/ADC1)PC1 24 1000 150 150 L 40 40 1 1 B
X (PCINT10/ADC2)PC2 25 1000 50 150 L 40 40 1 1 B
X (PCINT11/ADC3)PC3 26 1000 -50 150 L 40 40 1 1 B
X (PCINT12/SDA/ADC4)PC4 27 1000 -150 150 L 40 40 1 1 B
X (PCINT13/SCL/ADC5)PC5 28 1000 -250 150 L 40 40 1 1 B
X (PCINT14/~RESET~)PC6 29 1000 -350 150 L 40 40 1 1 B
X GND 3 -900 -1200 150 R 40 40 1 1 W
X (PCINT16/RXD)PD0 30 1000 -500 150 L 40 40 1 1 B
X (PCINT17/TXD)PD1 31 1000 -600 150 L 40 40 1 1 B
X (PCINT18/INT0)PD2 32 1000 -700 150 L 40 40 1 1 B
X VCC 4 -900 1100 150 R 40 40 1 1 W
X GND 5 -900 -1100 150 R 40 40 1 1 W
X VCC 6 -900 1000 150 R 40 40 1 1 W
X (PCINT6/XTAL1/TOSC1)PB6 7 1000 500 150 L 40 40 1 1 B
X (PCINT7/XTAL2/TOSC2)PB7 8 1000 400 150 L 40 40 1 1 B
X (PCINT21/OC0B/T1)PD5 9 1000 -1000 150 L 40 40 1 1 B
ENDDRAW
ENDDEF
#
# C
#
DEF C C 0 10 N Y 1 F N
F0 "C" 25 100 50 H V L CNN
F1 "C" 25 -100 50 H V L CNN
F2 "" 38 -150 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
C_*
$ENDFPLIST
DRAW
P 2 0 1 20 -80 -30 80 -30 N
P 2 0 1 20 -80 30 80 30 N
X ~ 1 0 150 110 D 50 50 1 1 P
X ~ 2 0 -150 110 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x02
#
DEF Conn_01x02 J 0 40 Y N 1 F N
F0 "J" 0 100 50 H V C CNN
F1 "Conn_01x02" 0 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 50 50 -150 1 1 10 f
X Pin_1 1 -200 0 150 R 50 50 1 1 P
X Pin_2 2 -200 -100 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x04
#
DEF Conn_01x04 J 0 40 Y N 1 F N
F0 "J" 0 200 50 H V C CNN
F1 "Conn_01x04" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 50 -250 1 1 10 f
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 -200 0 150 R 50 50 1 1 P
X Pin_3 3 -200 -100 150 R 50 50 1 1 P
X Pin_4 4 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_01x05
#
DEF Conn_01x05 J 0 40 Y N 1 F N
F0 "J" 0 300 50 H V C CNN
F1 "Conn_01x05" 0 -300 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*_??x*mm*
Connector*:*1x??x*mm*
Pin?Header?Straight?1X*
Pin?Header?Angled?1X*
Socket?Strip?Straight?1X*
Socket?Strip?Angled?1X*
$ENDFPLIST
DRAW
S -50 -195 0 -205 1 1 6 N
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 205 0 195 1 1 6 N
S -50 250 50 -250 1 1 10 f
X Pin_1 1 -200 200 150 R 50 50 1 1 P
X Pin_2 2 -200 100 150 R 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 -200 -100 150 R 50 50 1 1 P
X Pin_5 5 -200 -200 150 R 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Conn_02x03_Odd_Even
#
DEF Conn_02x03_Odd_Even J 0 40 Y N 1 F N
F0 "J" 50 200 50 H V C CNN
F1 "Conn_02x03_Odd_Even" 50 -200 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Connector*:*2x??x*mm*
Connector*:*2x???Pitch*
Pin_Header_Straight_2X*
Pin_Header_Angled_2X*
Socket_Strip_Straight_2X*
Socket_Strip_Angled_2X*
$ENDFPLIST
DRAW
S -50 -95 0 -105 1 1 6 N
S -50 5 0 -5 1 1 6 N
S -50 105 0 95 1 1 6 N
S -50 150 150 -150 1 1 10 f
S 150 -95 100 -105 1 1 6 N
S 150 5 100 -5 1 1 6 N
S 150 105 100 95 1 1 6 N
X Pin_1 1 -200 100 150 R 50 50 1 1 P
X Pin_2 2 300 100 150 L 50 50 1 1 P
X Pin_3 3 -200 0 150 R 50 50 1 1 P
X Pin_4 4 300 0 150 L 50 50 1 1 P
X Pin_5 5 -200 -100 150 R 50 50 1 1 P
X Pin_6 6 300 -100 150 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# Crystal
#
DEF Crystal Y 0 40 N N 1 F N
F0 "Y" 0 150 50 H V C CNN
F1 "Crystal" 0 -150 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Crystal*
$ENDFPLIST
DRAW
S -45 100 45 -100 0 1 12 N
P 2 0 1 0 -100 0 -75 0 N
P 2 0 1 20 -75 -50 -75 50 N
P 2 0 1 20 75 -50 75 50 N
P 2 0 1 0 100 0 75 0 N
X 1 1 -150 0 50 R 50 50 1 1 P
X 2 2 150 0 50 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# D
#
DEF D D 0 40 N N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "D" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
TO-???*
*SingleDiode
*_Diode_*
*SingleDiode*
D_*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 50 -50 -50 N
P 2 0 1 0 50 0 -50 0 N
P 4 0 1 8 50 50 50 -50 -50 0 50 50 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# FT232RL
#
DEF FT232RL U 0 40 Y Y 1 F N
F0 "U" -650 900 50 H V L CNN
F1 "FT232RL" 400 900 50 H V L CNN
F2 "Housings_SSOP:SSOP-28_5.3x10.2mm_Pitch0.65mm" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
SSOP*5.3x10.2mm*Pitch0.65mm*
$ENDFPLIST
DRAW
S -650 850 650 -850 0 1 10 f
X TXD 1 800 700 150 L 50 50 1 1 O
X DCD 10 800 100 150 L 50 50 1 1 I L
X CTS 11 800 400 150 L 50 50 1 1 I L
X CBUS4 12 800 -700 150 L 50 50 1 1 B
X CBUS2 13 800 -500 150 L 50 50 1 1 B
X CBUS3 14 800 -600 150 L 50 50 1 1 B
X USBD+ 15 -800 400 150 R 50 50 1 1 B
X USBD- 16 -800 300 150 R 50 50 1 1 B
X 3V3OUT 17 -800 700 150 R 50 50 1 1 I
X GND 18 100 -1000 150 U 50 50 1 1 W
X ~RESET~ 19 -800 0 150 R 50 50 1 1 I
X DTR 2 800 300 150 L 50 50 1 1 O V
X VCC 20 100 1000 150 D 50 50 1 1 W
X GND 21 200 -1000 150 U 50 50 1 1 W
X CBUS1 22 800 -400 150 L 50 50 1 1 O
X CBUS0 23 800 -300 150 L 50 50 1 1 B
X AGND 25 -200 -1000 150 U 50 50 1 1 W
X TEST 26 -800 -700 150 R 50 50 1 1 W
X OSCI 27 -800 -200 150 R 50 50 1 1 I
X OSCO 28 -800 -400 150 R 50 50 1 1 O
X RTS 3 800 500 150 L 50 50 1 1 O V
X VCCIO 4 -100 1000 150 D 50 50 1 1 I
X RXD 5 800 600 150 L 50 50 1 1 I
X RI 6 800 0 150 L 50 50 1 1 I L
X GND 7 0 -1000 150 U 50 50 1 1 W
X DCR 9 800 200 150 L 50 50 1 1 I L
ENDDRAW
ENDDEF
#
# L
#
DEF L L 0 40 N N 1 F N
F0 "L" -50 0 50 V V C CNN
F1 "L" 75 0 50 V V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
Choke_*
*Coil*
Inductor_*
L_*
$ENDFPLIST
DRAW
A 0 -75 25 -899 899 0 1 0 N 0 -100 0 -50
A 0 -25 25 -899 899 0 1 0 N 0 -50 0 0
A 0 25 25 -899 899 0 1 0 N 0 0 0 50
A 0 75 25 -899 899 0 1 0 N 0 50 0 100
X 1 1 0 150 50 D 50 50 1 1 P
X 2 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# LED
#
DEF LED D 0 40 Y N 1 F N
F0 "D" 0 100 50 H V C CNN
F1 "LED" 0 -100 50 H V C CNN
F2 "" 0 0 50 H I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
LED*
$ENDFPLIST
DRAW
P 2 0 1 8 -50 -50 -50 50 N
P 2 0 1 0 -50 0 50 0 N
P 4 0 1 8 50 -50 50 50 -50 0 50 -50 N
P 5 0 1 0 -120 -30 -180 -90 -150 -90 -180 -90 -180 -60 N
P 5 0 1 0 -70 -30 -130 -90 -100 -90 -130 -90 -130 -60 N
X K 1 -150 0 100 R 50 50 1 1 P
X A 2 150 0 100 L 50 50 1 1 P
ENDDRAW
ENDDEF
#
# R
#
DEF R R 0 0 N Y 1 F N
F0 "R" 80 0 50 V V C CNN
F1 "R" 0 0 50 V V C CNN
F2 "" -70 0 50 V I C CNN
F3 "" 0 0 50 H I C CNN
$FPLIST
R_*
R_*
$ENDFPLIST
DRAW
S -40 -100 40 100 0 1 10 N
X ~ 1 0 150 50 D 50 50 1 1 P
X ~ 2 0 -150 50 U 50 50 1 1 P
ENDDRAW
ENDDEF
#
# SW_Push
#
DEF SW_Push SW 0 40 N N 1 F N
F0 "SW" 50 100 50 H V L CNN
F1 "SW_Push" 0 -60 50 H V C CNN
F2 "" 0 200 50 H I C CNN
F3 "" 0 200 50 H I C CNN
DRAW
C -80 0 20 0 1 0 N
C 80 0 20 0 1 0 N
P 2 0 1 0 0 50 0 120 N
P 2 0 1 0 100 50 -100 50 N
X 1 1 -200 0 100 R 50 50 0 1 P
X 2 2 200 0 100 L 50 50 0 1 P
ENDDRAW
ENDDEF
#
#End Library

View File

@@ -0,0 +1,4 @@
(sym_lib_table
(lib (name nmm1_B-rescue)(type Legacy)(uri ${KIPRJMOD}/nmm1_B-rescue.lib)(options "")(descr ""))
(lib (name electropepper_kicad)(type Legacy)(uri /home/ricardo/Projects/Kicad/Kicad_libs/electropepper_kicad.lib)(options "")(descr ""))
)

View File

@@ -0,0 +1,3 @@
(sym_lib_table
(lib (name nmm1_B-rescue)(type Legacy)(uri ${KIPRJMOD}/nmm1_B-rescue.lib)(options "")(descr ""))
)

BIN
NMM_1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

BIN
NMM_2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB

View File

@@ -1,2 +1,10 @@
# NMEA Simulator 1
A small portable NMEA0183 comunications simulator.
# NMEA Monitor 1
A small portable NMEA0183 comunications monitor.
Some pictures of the first version:
![First screen](./NMM_1.jpg)
![Main screen](./NMM_2.jpg)

15
TODO
View File

@@ -4,16 +4,21 @@ Schematic
---------
PCB rev.A
---------
Add diode 1N4148 after R18 into P2, minus facing R18.
PCB rev.A to Rev.B
------------------
Add diode 1N4148 after R18 into P2, minus facing R18. DONE
Fix switches SW1-4, connections wrong. Check libraries
Fix switches SW1-4, connections wrong. Check libraries DONE
connection between schematic and pcb.
Fix FT232 power, skip crystal X1 and C3. VCC must come
Fix FT232 power, skip crystal X1 and C3. VCC must come DONE
straigh from the USB connector while VCCIO connects
straight to 3.3V, skip JP1 and JP2.
LED's D2 and D3 are in the wrong pins, move them to pin 13(PB1)
and pin 14(PB2), no specific order, whatever is best for routing.
Remove R7 and R8, replace with track. DONE
Vbatt voltage divider, the 3 resistors R10, R11, R12 need to be moved DONE
to the other leg of R13 and values re-calculated.

View File

@@ -8,7 +8,7 @@ ARDUINO_LIBS += Adafruit_GFX_Library \
Adafruit_SSD1306 \
SPI \
Wire
ARDUINO_DIR = /home/ricardo/Arduino_IDE
ARDUINO_DIR = /home/ricardo/Installs/arduino-1.8.7
MONITOR_PORT = /dev/ttyUSB0
include /usr/share/arduino-mk/Arduino.mk
-include /usr/share/arduino/Arduino.mk
-include /home/ricardo/Installs/Arduino-Makefile-1.6.0/Arduino.mk

View File

@@ -1,7 +1,6 @@
/*********************************************************************
NMM-1
NMEA0183 serial simulator.
NMEA0183 serial Monitor.
By Jony Silva
Wed 24 Jan 23:11:25 GMT 2018
@@ -15,7 +14,10 @@ Wed 24 Jan 23:11:25 GMT 2018
#include <Adafruit_SSD1306.h>
#define OLED_RESET 8
Adafruit_SSD1306 display(OLED_RESET);
#define SCREEN_WIDTH 128 // OLED display width, in pixels
#define SCREEN_HEIGHT 56 // OLED display height, in pixels
// create display object for oled display
Adafruit_SSD1306 display(SCREEN_WIDTH, SCREEN_HEIGHT, &Wire, OLED_RESET);
#define ON 0 // ON means pin is on GND
#define OFF 1 // OFF means pin is on VCC
@@ -40,10 +42,14 @@ Adafruit_SSD1306 display(OLED_RESET);
void one(); // Menu one
void two(); // Menu two
void three(); // Menu three
void four(); // Menu four
void read_serial(); // Menu that reads the serial
void write_serial(); // Menu that writes to serial
void config_nmm(); // Configuration menu
void write_gps(); // Menu that writes gps out to serial
void write_hdg(); // Menu that writes hdg out to serial
void write_dep(); // Menu that writes dep out to serial
void batt_icon(); // Draws the battery icon acording to value
void write_serial(); // Menu that writes to serial
// Variables creation
@@ -54,13 +60,7 @@ int OK_state = OFF; // Holds state for OK, either ON or OFF
int DOWN_state = OFF; // Holds state for DOWN, either ON or OFF
int CANCEL_state = OFF; // Holds state for CANCEL, either ON or OFF
int batt_val = 0; // Holds the value of battery voltage
int incomingByte; // Serial incoming byte buffer
int lines = 0;
int chars = 0;
char sentence[68];
String s;
int i;
int read_s = 0;
int read_s = 0; // Serial flag, if 0 not reading, if 1 is reading
// Create SoftwareSerial object and designate pins
@@ -80,8 +80,6 @@ void setup() { // BEGIN SETUP ------------------------------------
digitalWrite(led1,HIGH); // Turn off led 1
digitalWrite(led2,HIGH); // Turn off led 2
// set the data rate for the SoftwareSerial port
// set the data rate for the Serial port
Serial.begin(4800);
@@ -106,157 +104,199 @@ void setup() { // BEGIN SETUP ------------------------------------
// Clear the buffer.
display.clearDisplay();
display.display();
display.clearDisplay(); // Clean display
display.display(); // Refresh display
display.setTextSize(2);
display.setTextColor(WHITE);
display.setCursor(36,22);
display.println("NMM-1");
display.display();
display.setTextSize(2); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(36,18); // Set the display cursor to position
display.println("NMM-1"); // Print on display
display.display(); // Refresh display
delay(3000);
display.clearDisplay();
display.display();
display.clearDisplay(); // Clean display
display.display(); // Refresh display
} // END SETUP --------------------------------------------------------------------
// Timer compare interrupt service routine --------------------------
ISR(TIMER1_COMPA_vect) //
{ //
if (!rUP) {
if (menuState == 1) {
menuState = 1;
}
else if (menuState == 2) {
menuState = 1;
}
else if (menuState == 3) {
menuState = 2;
}
while (!rUP); // Check if button is still pressed do nothing
}
if (!rDOWN) {
if (menuState == 1) {
menuState = 2;
}
else if (menuState == 2) {
menuState = 3;
}
else if (menuState == 3) {
menuState = 3;
}
while (!rDOWN); // Check if button is still pressed do nothing
}
if (!rOK) {
if (menuState == 1) {
menuState = 10;
prevMenu = 1;
}
else if (menuState == 2) {
menuState = 11;
prevMenu = 2;
}
else if (menuState == 3) {
menuState = 12;
prevMenu = 3;
}
while (!rOK); // Check if button is still pressed do nothing
}
if (!rCANCEL) {
if (prevMenu == 1) {
menuState = 1;
}
else if (prevMenu == 2) {
menuState = 2;
}
else if (prevMenu == 3) {
menuState = 3;
}
while (!rCANCEL); // Check if button is still pressed do nothing
}
}
// -------------------------------------------------------------------
void loop() {
batt_val = analogRead(batt);
if (menuState == 1) {
one();
mySerial.end();
read_s = 0;
}
else if (menuState == 2) {
two();
mySerial.end();
read_s = 0;
}
else if (menuState == 3) {
three();
mySerial.end();
read_s = 0;
}
else if (menuState == 10) {
if (read_s == 0) {
mySerial.begin(4800);
read_s = 1;
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(1,17);
display.println("RS-422 to USB");
display.println("Sending...");
batt_icon();
display.display();
}
read_serial();
}
else if (menuState == 11) {
if (read_s == 0) {
mySerial.begin(4800);
read_s = 1;
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(1,17);
display.println("Sending GPS.....");
batt_icon();
display.display();
}
write_serial();
}
else if (menuState == 12) {
config_nmm();
mySerial.end();
read_s = 0;
}
ISR(TIMER1_COMPA_vect)
{
if (!rUP) // If button UP pressed
{
if (menuState == 1){} // Do nothing and leave menuState
// as it is (1)
else {
one();
mySerial.end();
read_s = 0;
menuState--;
}
while (!rUP); // Check if button is still pressed, do nothing
}
if (!rDOWN) // If button DOWN pressed
{
if (menuState == 4){} // Do nothing and leave menuState
// as it is (4)
else {
menuState++;
}
while (!rDOWN); // Check if button is still pressed, do nothing
}
if (!rOK) // If button OK pressed
{
if (menuState == 1) // and the menuState is 1
{
prevMenu = menuState; // set prevMenu to 1
menuState = 10; // then reset menuState to 10
}
else if (menuState == 2) // If menuState is 2
{
prevMenu = menuState; // set prevMenu to 2
menuState = 11; // then reset menuState to 11
}
else if (menuState == 3) // If menuState is 3
{
prevMenu = menuState; // set prevMenu to 3
menuState = 12; // then reset menuState to 12
}
else if (menuState == 4) // If menuState is 4
{
prevMenu = menuState; // set prevMenu to 4
menuState = 13; // then reset menuState to 13
}
while (!rOK); // Check if button is still pressed, do nothing
}
if (!rCANCEL) // If button CANCEL pressed
{
menuState = prevMenu; // set menuState to same value as prevMenu
while (!rCANCEL); // Check if button is still pressed, do nothing
}
}
// End of Timer compare interrupt ---------------------------------------
// Main loop routine -----------------------------------------
void loop()
{
batt_val = analogRead(batt); // Read analog value from battery into batt_val
if (menuState == 1) // If menuState is 1
{
one(); // call function one()
mySerial.end(); // close serial connection
read_s = 0; // and set read_s to 0
}
else if (menuState == 2) // If menuState is 2
{
two(); // call function two()
mySerial.end(); // close serial connection
read_s = 0; // and set read_s to 0
}
else if (menuState == 3) // If menuState is 3
{
three(); // call function three()
mySerial.end(); // close serial connection
read_s = 0; // and set read_s to 0
}
else if (menuState == 4) // If menuState is 4
{
four(); // call function four()
mySerial.end(); // close serial connection
read_s = 0; // and set read_s to 0
}
else if (menuState == 10) // If menuState is 10
{
if (read_s == 0) // and read_s is 0
{
mySerial.begin(4800); // Start serial with 4800bps
read_s = 1; // set read_s to 1
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,17); // Set the display cursor to position
display.println("Sending GPS....."); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
write_gps(); // call function write_gps()
}
else if (menuState == 11) // If menuState is 11
{
if (read_s == 0) // and read_s is 0
{
mySerial.begin(4800); // Start serial with 4800bps
read_s = 1; // set read_s to 1
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,17); // Set the display cursor to position
display.println("Sending Heading....."); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
write_hdg(); // call function write_hdg()
}
else if (menuState == 12) // If menuState is 12
{
if (read_s == 0) // and read_s is 0
{
mySerial.begin(4800); // Start serial with 4800bps
read_s = 1; // set read_s to 1
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,17); // Set the display cursor to position
display.println("Sending Depth....."); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
write_dep(); // call function write_dep()
}
else if (menuState == 13) // If menuState is 13
{
if (read_s == 0) // and read_s is 0
{
mySerial.begin(4800); // Start serial with 4800bps
read_s = 1; // set read_s to 1
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,17); // Set the display cursor to position
display.println("RS-422 to USB"); // Print on display
display.println("Sending..."); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
read_serial(); // call function read_serial()
}
else // otherwise
{
one(); // call function one()
mySerial.end(); // close serial connection
read_s = 0; // set read_s to 0
}
}
// END of Main loop routine -----------------------------------------
void batt_icon (void) {
void batt_icon (void)
{
if (batt_val > 962) {
if (batt_val > 962) // If analog value is bigger then 962
{
// Draw the battery icon - Full battery
display.drawRect(111, 1, 16, 6, WHITE);
display.drawRect(111, 1, 16, 6, WHITE); // Draw white reactangle with coordinates
display.drawRect(112, 2, 14, 4, WHITE);
display.drawRect(113, 3, 12, 2, WHITE);
display.drawPixel(110, 3, WHITE);
display.drawPixel(110, 3, WHITE); // Draw white dot with coordinates
display.drawPixel(110, 4, WHITE);
display.drawPixel(109, 3, WHITE);
display.drawPixel(109, 4, WHITE);
@@ -264,12 +304,13 @@ void batt_icon (void) {
display.drawPixel(108, 4, WHITE);
}
else if ((batt_val > 901) & (batt_val < 962)) {
else if ((batt_val > 901) & (batt_val < 962)) // If analog value is between 901 and 962
{
// Draw the battery icon - 2/3 battery
display.drawRect(111, 1, 16, 6, WHITE);
display.drawRect(111, 1, 16, 6, WHITE); // Draw white reactangle with coordinates
display.drawRect(116, 2, 10, 4, WHITE);
display.drawRect(117, 3, 8, 2, WHITE);
display.drawPixel(110, 3, WHITE);
display.drawPixel(110, 3, WHITE); // Draw white dot with coordinates
display.drawPixel(110, 4, WHITE);
display.drawPixel(109, 3, WHITE);
display.drawPixel(109, 4, WHITE);
@@ -277,12 +318,13 @@ void batt_icon (void) {
display.drawPixel(108, 4, WHITE);
}
else if ((batt_val > 840) & (batt_val < 901)) {
else if ((batt_val > 840) & (batt_val < 901)) // If analog value is between 840 and 901
{
// Draw the battery icon - 1/3 battery
display.drawRect(111, 1, 16, 6, WHITE);
display.drawRect(111, 1, 16, 6, WHITE); // Draw white reactangle with coordinates
display.drawRect(121, 2, 5, 4, WHITE);
display.drawRect(122, 3, 3, 2, WHITE);
display.drawPixel(110, 3, WHITE);
display.drawPixel(110, 3, WHITE); // Draw white dot with coordinates
display.drawPixel(110, 4, WHITE);
display.drawPixel(109, 3, WHITE);
display.drawPixel(109, 4, WHITE);
@@ -290,12 +332,13 @@ void batt_icon (void) {
display.drawPixel(108, 4, WHITE);
}
else {
else // otherwise
{
// Draw the battery icon - Empty battery
display.setCursor(35,1);
display.println("BATT LOW");
display.drawRect(111, 1, 16, 6, WHITE);
display.drawPixel(110, 3, WHITE);
display.setCursor(35,1); // Set the display cursor to position
display.println("BATT LOW"); // Print on display
display.drawRect(111, 1, 16, 6, WHITE); // Draw white reactangle with coordinates
display.drawPixel(110, 3, WHITE); // Draw white dot with coordinates
display.drawPixel(110, 4, WHITE);
display.drawPixel(109, 3, WHITE);
display.drawPixel(109, 4, WHITE);
@@ -304,71 +347,107 @@ void batt_icon (void) {
}
}
void one (void) {
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(1,12);
display.println("RS422 ==> USB <--");
display.setCursor(1,22);
display.println("Send NMEA0183");
display.setCursor(1,32);
display.println("Config NMEA0183");
batt_icon();
display.display();
void one (void)
{
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,18); // Set the display cursor to position
display.println("Send GPS <--"); // Print on display
display.setCursor(1,28); // Set the display cursor to position
display.println("Send Heading"); // Print on display
display.setCursor(1,38); // Set the display cursor to position
display.println("Send Depth"); // Print on display
display.setCursor(1,48); // Set the display cursor to position
display.println("RS422 <==> USB"); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
void two (void) {
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(1,12);
display.println("RS422 ==> USB");
display.setCursor(1,22);
display.println("Send NMEA0183 <--");
display.setCursor(1,32);
display.println("Config NMEA0183");
batt_icon();
display.display();
void two (void)
{
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,18); // Set the display cursor to position
display.println("Send GPS"); // Print on display
display.setCursor(1,28); // Set the display cursor to position
display.println("Send Heading <--"); // Print on display
display.setCursor(1,38); // Set the display cursor to position
display.println("Send Depth"); // Print on display
display.setCursor(1,48); // Set the display cursor to position
display.println("RS422 <==> USB"); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
void three (void) {
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(1,12);
display.println("RS422 ==> USB");
display.setCursor(1,22);
display.println("Send NMEA0183");
display.setCursor(1,32);
display.println("Config NMEA0183 <--");
batt_icon();
display.display();
void three (void)
{
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,18); // Set the display cursor to position
display.println("Send GPS"); // Print on display
display.setCursor(1,28); // Set the display cursor to position
display.println("Send Heading"); // Print on display
display.setCursor(1,38); // Set the display cursor to position
display.println("Send Depth <--"); // Print on display
display.setCursor(1,48); // Set the display cursor to position
display.println("RS422 <==> USB"); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
void read_serial (void) {
void four (void)
{
display.clearDisplay(); // Clean display
display.setTextSize(1); // Set text size on the display
display.setTextColor(WHITE); // Set text color on the display
display.setCursor(1,18); // Set the display cursor to position
display.println("Send GPS"); // Print on display
display.setCursor(1,28); // Set the display cursor to position
display.println("Send Heading"); // Print on display
display.setCursor(1,38); // Set the display cursor to position
display.println("Send Depth"); // Print on display
display.setCursor(1,48); // Set the display cursor to position
display.println("RS422 <==> USB <--"); // Print on display
batt_icon(); // call function batt_icon()
display.display(); // Refresh display
}
if (mySerial.available()) {
Serial.write(mySerial.read());
void read_serial (void)
{
if (mySerial.available()) // If incoming NMEA0183 serial
{
Serial.write(mySerial.read()); // redirect it to USB
}
if (Serial.available()) // If incoming USB serial
{
mySerial.write(Serial.read()); // redirect it to NMEA0183 serial
}
}
void write_serial (void) {
void write_gps (void)
{
// Write NMEA0183 GPS sentence to USB
mySerial.print("$GPGGA,090000.10,6350.37829338,N,02225.18272240,W,1,05,2.87,160.00,M,-21.3213,M,,*64");
mySerial.println();
mySerial.println(); // Send string to NMEA0183 serial
delay(100);
}
void config_nmm (void) {
display.clearDisplay();
display.setTextSize(1);
display.setTextColor(WHITE);
display.setCursor(46,17);
display.println("BLOCKED");
batt_icon();
display.display();
void write_hdg (void)
{
// Write NMEA0183 Heading sentence to USB
mySerial.print("$HEHDT,268.4,T*27");
mySerial.println(); // Send string to NMEA0183 serial
delay(100);
}
void write_dep (void)
{
// Write NMEA0183 Depth sentence to USB
mySerial.print("$SDDBT,0038.0,f,0011.6,M,0006.3,F");
mySerial.println(); // Send string to NMEA0183 serial
delay(100);
}

BIN
media/branch/NMM_1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 212 KiB

BIN
media/branch/NMM_2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 203 KiB