Add schematics and improve code.

This commit is contained in:
redxef 2022-07-14 16:35:11 +02:00
parent 0b415c2ca5
commit 30bff43145
Signed by: redxef
GPG key ID: 7DAC3AA211CBD921
6 changed files with 1326 additions and 11 deletions

36
main.c
View file

@ -1,14 +1,20 @@
#include <avr/io.h> #include <avr/io.h>
#include <util/delay.h> #include <util/delay.h>
#define PIN_LED 0b1000; #define PIN_LED 0b1000
#define PIN_BUTTON 0b0001
#define PIN_TRIM 0b0001
void init_ports(void) { void init_ports(void) {
DDRB = 0x00; // all outputs, swallows noise
DDRC = 0x00; DDRB = 0xff;
DDRD = 0x00; DDRC = 0xff;
DDRD = 0xff;
DDRD |= PIN_LED; DDRD |= PIN_LED;
PORTB |= PIN_BUTTON; // pull-up
DDRB &= ~PIN_BUTTON;
DDRC &= ~PIN_TRIM;
} }
void init_pwm(void) { void init_pwm(void) {
@ -42,20 +48,28 @@ void pwm_fade_out(int until, int step) {
_delay_ms(0.25); _delay_ms(0.25);
} }
} }
/*
int analog_read(void) {
ADCSRA |= ADEN;
ADCSRA |= ADSC;
}*/
int main(void) { int main(void) {
init_ports(); init_ports();
while (1) { while (1) {
init_pwm(); if (!(PINB & PIN_BUTTON)) {
pwm_fade_in(0x7f, 1); init_pwm();
_delay_ms(300); pwm_fade_in(0x7f >> 5, 1);
OCR2B = 0xff; _delay_ms(300);
_delay_ms(150); OCR2B = 0x7f >> 3;
pwm_fade_out(0, 4); _delay_ms(150);
pwm_fade_out(32, 4);
_delay_ms(50);
pwm_fade_out(0, 4);
}
deinit_pwm(); deinit_pwm();
PORTD &= ~PIN_LED; PORTD &= ~PIN_LED;
_delay_ms(2000);
} }
return 0; return 0;
} }

1
schematic/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
schematic-backups/*

View file

@ -0,0 +1,2 @@
(kicad_pcb (version 20211014) (generator pcbnew)
)

View file

@ -0,0 +1,75 @@
{
"board": {
"active_layer": 0,
"active_layer_preset": "",
"auto_track_width": true,
"hidden_nets": [],
"high_contrast_mode": 0,
"net_color_mode": 1,
"opacity": {
"pads": 1.0,
"tracks": 1.0,
"vias": 1.0,
"zones": 0.6
},
"ratsnest_display_mode": 0,
"selection_filter": {
"dimensions": true,
"footprints": true,
"graphics": true,
"keepouts": true,
"lockedItems": true,
"otherItems": true,
"pads": true,
"text": true,
"tracks": true,
"vias": true,
"zones": true
},
"visible_items": [
0,
1,
2,
3,
4,
5,
8,
9,
10,
11,
12,
13,
14,
15,
16,
17,
18,
19,
20,
21,
22,
23,
24,
25,
26,
27,
28,
29,
30,
32,
33,
34,
35,
36
],
"visible_layers": "fffffff_ffffffff",
"zone_display_mode": 0
},
"meta": {
"filename": "schematic.kicad_prl",
"version": 3
},
"project": {
"files": []
}
}

View file

@ -0,0 +1,326 @@
{
"board": {
"design_settings": {
"defaults": {
"board_outline_line_width": 0.1,
"copper_line_width": 0.2,
"copper_text_size_h": 1.5,
"copper_text_size_v": 1.5,
"copper_text_thickness": 0.3,
"other_line_width": 0.15,
"silk_line_width": 0.15,
"silk_text_size_h": 1.0,
"silk_text_size_v": 1.0,
"silk_text_thickness": 0.15
},
"diff_pair_dimensions": [],
"drc_exclusions": [],
"rules": {
"min_copper_edge_clearance": 0.0,
"solder_mask_clearance": 0.0,
"solder_mask_min_width": 0.0
},
"track_widths": [],
"via_dimensions": []
},
"layer_presets": []
},
"boards": [],
"cvpcb": {
"equivalence_files": []
},
"erc": {
"erc_exclusions": [],
"meta": {
"version": 0
},
"pin_map": [
[
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2
],
[
0,
2,
0,
1,
0,
0,
1,
0,
2,
2,
2,
2
],
[
0,
0,
0,
0,
0,
0,
1,
0,
1,
0,
1,
2
],
[
0,
1,
0,
0,
0,
0,
1,
1,
2,
1,
1,
2
],
[
0,
0,
0,
0,
0,
0,
1,
0,
0,
0,
0,
2
],
[
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
0,
2
],
[
1,
1,
1,
1,
1,
0,
1,
1,
1,
1,
1,
2
],
[
0,
0,
0,
1,
0,
0,
1,
0,
0,
0,
0,
2
],
[
0,
2,
1,
2,
0,
0,
1,
0,
2,
2,
2,
2
],
[
0,
2,
0,
1,
0,
0,
1,
0,
2,
0,
0,
2
],
[
0,
2,
1,
1,
0,
0,
1,
0,
2,
0,
0,
2
],
[
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2,
2
]
],
"rule_severities": {
"bus_definition_conflict": "error",
"bus_entry_needed": "error",
"bus_label_syntax": "error",
"bus_to_bus_conflict": "error",
"bus_to_net_conflict": "error",
"different_unit_footprint": "error",
"different_unit_net": "error",
"duplicate_reference": "error",
"duplicate_sheet_names": "error",
"extra_units": "error",
"global_label_dangling": "warning",
"hier_label_mismatch": "error",
"label_dangling": "error",
"lib_symbol_issues": "warning",
"multiple_net_names": "warning",
"net_not_bus_member": "warning",
"no_connect_connected": "warning",
"no_connect_dangling": "warning",
"pin_not_connected": "error",
"pin_not_driven": "error",
"pin_to_pin": "warning",
"power_pin_not_driven": "error",
"similar_labels": "warning",
"unannotated": "error",
"unit_value_mismatch": "error",
"unresolved_variable": "error",
"wire_dangling": "error"
}
},
"libraries": {
"pinned_footprint_libs": [],
"pinned_symbol_libs": []
},
"meta": {
"filename": "schematic.kicad_pro",
"version": 1
},
"net_settings": {
"classes": [
{
"bus_width": 12.0,
"clearance": 0.2,
"diff_pair_gap": 0.25,
"diff_pair_via_gap": 0.25,
"diff_pair_width": 0.2,
"line_style": 0,
"microvia_diameter": 0.3,
"microvia_drill": 0.1,
"name": "Default",
"pcb_color": "rgba(0, 0, 0, 0.000)",
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.25,
"via_diameter": 0.8,
"via_drill": 0.4,
"wire_width": 6.0
}
],
"meta": {
"version": 2
},
"net_colors": null
},
"pcbnew": {
"last_paths": {
"gencad": "",
"idf": "",
"netlist": "",
"specctra_dsn": "",
"step": "",
"vrml": ""
},
"page_layout_descr_file": ""
},
"schematic": {
"annotate_start_num": 0,
"drawing": {
"default_line_thickness": 6.0,
"default_text_size": 50.0,
"field_names": [],
"intersheets_ref_own_page": false,
"intersheets_ref_prefix": "",
"intersheets_ref_short": false,
"intersheets_ref_show": false,
"intersheets_ref_suffix": "",
"junction_size_choice": 3,
"label_size_ratio": 0.375,
"pin_symbol_size": 25.0,
"text_offset_ratio": 0.15
},
"legacy_lib_dir": "",
"legacy_lib_list": [],
"meta": {
"version": 1
},
"net_format_name": "",
"ngspice": {
"fix_include_paths": true,
"fix_passive_vals": false,
"meta": {
"version": 0
},
"model_mode": 0,
"workbook_filename": ""
},
"page_layout_descr_file": "",
"plot_directory": "",
"spice_adjust_passive_values": false,
"spice_external_command": "spice \"%I\"",
"subpart_first_id": 65,
"subpart_id_separator": 0
},
"sheets": [
[
"711882d7-0a72-4057-a31a-3872bd767f87",
""
]
],
"text_variables": {}
}

View file

@ -0,0 +1,897 @@
(kicad_sch (version 20211123) (generator eeschema)
(uuid 711882d7-0a72-4057-a31a-3872bd767f87)
(paper "A4")
(lib_symbols
(symbol "Device:LED" (pin_numbers hide) (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
(property "Reference" "D" (id 0) (at 0 2.54 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "LED" (id 1) (at 0 -2.54 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "LED diode" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Light emitting diode" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "LED* LED_SMD:* LED_THT:*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "LED_0_1"
(polyline
(pts
(xy -1.27 -1.27)
(xy -1.27 1.27)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy -1.27 0)
(xy 1.27 0)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 1.27 -1.27)
(xy 1.27 1.27)
(xy -1.27 0)
(xy 1.27 -1.27)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy -3.048 -0.762)
(xy -4.572 -2.286)
(xy -3.81 -2.286)
(xy -4.572 -2.286)
(xy -4.572 -1.524)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy -1.778 -0.762)
(xy -3.302 -2.286)
(xy -2.54 -2.286)
(xy -3.302 -2.286)
(xy -3.302 -1.524)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "LED_1_1"
(pin passive line (at -3.81 0 0) (length 2.54)
(name "K" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 3.81 0 180) (length 2.54)
(name "A" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Device:R" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "R" (id 0) (at 2.032 0 90)
(effects (font (size 1.27 1.27)))
)
(property "Value" "R" (id 1) (at 0 0 90)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at -1.778 0 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "R res resistor" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Resistor" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "R_*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "R_0_1"
(rectangle (start -1.016 -2.54) (end 1.016 2.54)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "R_1_1"
(pin passive line (at 0 3.81 270) (length 1.27)
(name "~" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -3.81 90) (length 1.27)
(name "~" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Device:R_Trim" (pin_numbers hide) (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "R" (id 0) (at 2.54 -2.54 90)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "R_Trim" (id 1) (at -2.54 -0.635 90)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at -1.778 0 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "R res resistor variable potentiometer trimmer" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Trimmable resistor (preset resistor)" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "R_*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "R_Trim_0_1"
(rectangle (start -1.016 -2.54) (end 1.016 2.54)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy -1.905 -1.905)
(xy 1.905 1.905)
(xy 2.54 1.27)
(xy 1.27 2.54)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "R_Trim_1_1"
(pin passive line (at 0 3.81 270) (length 1.27)
(name "~" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -3.81 90) (length 1.27)
(name "~" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "MCU_Module:Arduino_Nano_v3.x" (in_bom yes) (on_board yes)
(property "Reference" "A" (id 0) (at -10.16 23.495 0)
(effects (font (size 1.27 1.27)) (justify left bottom))
)
(property "Value" "Arduino_Nano_v3.x" (id 1) (at 5.08 -24.13 0)
(effects (font (size 1.27 1.27)) (justify left top))
)
(property "Footprint" "Module:Arduino_Nano" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27) italic) hide)
)
(property "Datasheet" "http://www.mouser.com/pdfdocs/Gravitech_Arduino_Nano3_0.pdf" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "Arduino nano microcontroller module USB" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Arduino Nano v3.x" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "Arduino*Nano*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "Arduino_Nano_v3.x_0_1"
(rectangle (start -10.16 22.86) (end 10.16 -22.86)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type background))
)
)
(symbol "Arduino_Nano_v3.x_1_1"
(pin bidirectional line (at -12.7 12.7 0) (length 2.54)
(name "D1/TX" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 -2.54 0) (length 2.54)
(name "D7" (effects (font (size 1.27 1.27))))
(number "10" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 -5.08 0) (length 2.54)
(name "D8" (effects (font (size 1.27 1.27))))
(number "11" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 -7.62 0) (length 2.54)
(name "D9" (effects (font (size 1.27 1.27))))
(number "12" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 -10.16 0) (length 2.54)
(name "D10" (effects (font (size 1.27 1.27))))
(number "13" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 -12.7 0) (length 2.54)
(name "D11" (effects (font (size 1.27 1.27))))
(number "14" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 -15.24 0) (length 2.54)
(name "D12" (effects (font (size 1.27 1.27))))
(number "15" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 -17.78 0) (length 2.54)
(name "D13" (effects (font (size 1.27 1.27))))
(number "16" (effects (font (size 1.27 1.27))))
)
(pin power_out line (at 2.54 25.4 270) (length 2.54)
(name "3V3" (effects (font (size 1.27 1.27))))
(number "17" (effects (font (size 1.27 1.27))))
)
(pin input line (at 12.7 5.08 180) (length 2.54)
(name "AREF" (effects (font (size 1.27 1.27))))
(number "18" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 12.7 0 180) (length 2.54)
(name "A0" (effects (font (size 1.27 1.27))))
(number "19" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 15.24 0) (length 2.54)
(name "D0/RX" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 12.7 -2.54 180) (length 2.54)
(name "A1" (effects (font (size 1.27 1.27))))
(number "20" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 12.7 -5.08 180) (length 2.54)
(name "A2" (effects (font (size 1.27 1.27))))
(number "21" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 12.7 -7.62 180) (length 2.54)
(name "A3" (effects (font (size 1.27 1.27))))
(number "22" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 12.7 -10.16 180) (length 2.54)
(name "A4" (effects (font (size 1.27 1.27))))
(number "23" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 12.7 -12.7 180) (length 2.54)
(name "A5" (effects (font (size 1.27 1.27))))
(number "24" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 12.7 -15.24 180) (length 2.54)
(name "A6" (effects (font (size 1.27 1.27))))
(number "25" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 12.7 -17.78 180) (length 2.54)
(name "A7" (effects (font (size 1.27 1.27))))
(number "26" (effects (font (size 1.27 1.27))))
)
(pin power_out line (at 5.08 25.4 270) (length 2.54)
(name "+5V" (effects (font (size 1.27 1.27))))
(number "27" (effects (font (size 1.27 1.27))))
)
(pin input line (at 12.7 15.24 180) (length 2.54)
(name "~{RESET}" (effects (font (size 1.27 1.27))))
(number "28" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 2.54 -25.4 90) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "29" (effects (font (size 1.27 1.27))))
)
(pin input line (at 12.7 12.7 180) (length 2.54)
(name "~{RESET}" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at -2.54 25.4 270) (length 2.54)
(name "VIN" (effects (font (size 1.27 1.27))))
(number "30" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 0 -25.4 90) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 10.16 0) (length 2.54)
(name "D2" (effects (font (size 1.27 1.27))))
(number "5" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 7.62 0) (length 2.54)
(name "D3" (effects (font (size 1.27 1.27))))
(number "6" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 5.08 0) (length 2.54)
(name "D4" (effects (font (size 1.27 1.27))))
(number "7" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 2.54 0) (length 2.54)
(name "D5" (effects (font (size 1.27 1.27))))
(number "8" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at -12.7 0 0) (length 2.54)
(name "D6" (effects (font (size 1.27 1.27))))
(number "9" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Switch:SW_Push" (pin_numbers hide) (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
(property "Reference" "SW" (id 0) (at 1.27 2.54 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "SW_Push" (id 1) (at 0 -1.524 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 0 5.08 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 0 5.08 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "switch normally-open pushbutton push-button" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Push button switch, generic, two pins" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "SW_Push_0_1"
(circle (center -2.032 0) (radius 0.508)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 0 1.27)
(xy 0 3.048)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 2.54 1.27)
(xy -2.54 1.27)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(circle (center 2.032 0) (radius 0.508)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(pin passive line (at -5.08 0 0) (length 2.54)
(name "1" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 5.08 0 180) (length 2.54)
(name "2" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "power:+5V" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "#PWR" (id 0) (at 0 -3.81 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "+5V" (id 1) (at 0 3.556 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "power-flag" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Power symbol creates a global label with name \"+5V\"" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "+5V_0_1"
(polyline
(pts
(xy -0.762 1.27)
(xy 0 2.54)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 0 0)
(xy 0 2.54)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 0 2.54)
(xy 0.762 1.27)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "+5V_1_1"
(pin power_in line (at 0 0 90) (length 0) hide
(name "+5V" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "power:+9V" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "#PWR" (id 0) (at 0 -3.81 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "+9V" (id 1) (at 0 3.556 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "power-flag" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Power symbol creates a global label with name \"+9V\"" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "+9V_0_1"
(polyline
(pts
(xy -0.762 1.27)
(xy 0 2.54)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 0 0)
(xy 0 2.54)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 0 2.54)
(xy 0.762 1.27)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "+9V_1_1"
(pin power_in line (at 0 0 90) (length 0) hide
(name "+9V" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "power:GND" (power) (pin_names (offset 0)) (in_bom yes) (on_board yes)
(property "Reference" "#PWR" (id 0) (at 0 -6.35 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 0 -3.81 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "power-flag" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Power symbol creates a global label with name \"GND\" , ground" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "GND_0_1"
(polyline
(pts
(xy 0 0)
(xy 0 -1.27)
(xy 1.27 -1.27)
(xy 0 -2.54)
(xy -1.27 -1.27)
(xy 0 -1.27)
)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "GND_1_1"
(pin power_in line (at 0 0 270) (length 0) hide
(name "GND" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
)
)
)
(junction (at 171.45 92.71) (diameter 0) (color 0 0 0 0)
(uuid 12557946-46aa-494a-856b-3e580e495f59)
)
(junction (at 147.32 120.65) (diameter 0) (color 0 0 0 0)
(uuid 28f464d1-bbfa-4779-8095-3bcf40d3c885)
)
(junction (at 116.84 110.49) (diameter 0) (color 0 0 0 0)
(uuid 98f8c86c-baaa-4650-ba9a-f1e395a25a95)
)
(wire (pts (xy 127 97.79) (xy 134.62 97.79))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 119b057c-a5ff-4c5e-905d-73b8870ec8cd)
)
(wire (pts (xy 132.08 85.09) (xy 134.62 85.09))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 14c1f400-f5b0-4828-b219-6806d3f9c9b6)
)
(wire (pts (xy 127 109.22) (xy 127 110.49))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 1b4255d4-3549-4fcc-83cd-4f607a0fe850)
)
(wire (pts (xy 147.32 120.65) (xy 147.32 123.19))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 2950dd47-877a-4eec-acae-1aa84ebbd88f)
)
(wire (pts (xy 149.86 118.11) (xy 149.86 120.65))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 2f371caa-62ef-4652-b07b-2e0d5c16680f)
)
(wire (pts (xy 127 99.06) (xy 127 97.79))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 34c5d397-5223-4eba-ac57-b471ffba7403)
)
(wire (pts (xy 124.46 85.09) (xy 116.84 85.09))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 77399543-c15c-4007-9d63-e2d3fc334c46)
)
(wire (pts (xy 171.45 90.17) (xy 171.45 92.71))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 7bca7e19-e241-4630-a845-9f34e6766b3b)
)
(wire (pts (xy 171.45 92.71) (xy 171.45 95.25))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 81aff993-6919-4752-8813-81709971951c)
)
(wire (pts (xy 171.45 80.01) (xy 171.45 82.55))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 8303b69c-3ebc-4512-9715-c822d5c43a40)
)
(wire (pts (xy 152.4 62.23) (xy 152.4 67.31))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 866b8abd-ed47-4c4b-a4fc-8693a8b479a9)
)
(wire (pts (xy 144.78 62.23) (xy 144.78 67.31))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 895ec996-0c4d-4271-9993-2d89f061c429)
)
(wire (pts (xy 147.32 118.11) (xy 147.32 120.65))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 914dde19-9b35-4435-a6f5-d6dfa3a9434b)
)
(wire (pts (xy 116.84 96.52) (xy 116.84 110.49))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 988034e0-c9d3-43f7-b0a5-386ed00856b3)
)
(wire (pts (xy 116.84 110.49) (xy 116.84 123.19))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid b591a4e2-89dd-4fc6-9817-d427fd75ff9f)
)
(wire (pts (xy 127 110.49) (xy 116.84 110.49))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid c831b232-c079-4628-8a5e-2646bd6f3e7f)
)
(wire (pts (xy 149.86 120.65) (xy 147.32 120.65))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid d201f493-da33-4d25-8623-60c718d50409)
)
(wire (pts (xy 116.84 85.09) (xy 116.84 88.9))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid dc4ee815-195a-4e65-8c79-4305ce26f1d6)
)
(wire (pts (xy 171.45 102.87) (xy 171.45 123.19))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid eb149094-2aad-4c68-ab88-5bfd6303178d)
)
(wire (pts (xy 160.02 92.71) (xy 171.45 92.71))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid eda54866-be4a-4a96-aa8d-bf8cef86439a)
)
(symbol (lib_id "power:+9V") (at 144.78 62.23 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 049c1400-7ea8-4827-892f-0ed274ce021a)
(property "Reference" "#PWR?" (id 0) (at 144.78 66.04 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "+9V" (id 1) (at 144.78 58.6542 0))
(property "Footprint" "" (id 2) (at 144.78 62.23 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 144.78 62.23 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 35cdfc80-83b6-42c5-9a0f-7484ddfa21b4))
)
(symbol (lib_id "MCU_Module:Arduino_Nano_v3.x") (at 147.32 92.71 0) (unit 1)
(in_bom yes) (on_board yes)
(uuid 2f1669ba-392b-4854-bb05-8dce56288f50)
(property "Reference" "A1" (id 0) (at 151.8794 117.6004 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Arduino_Nano_v3.x" (id 1) (at 151.13 120.65 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Module:Arduino_Nano" (id 2) (at 147.32 92.71 0)
(effects (font (size 1.27 1.27) italic) hide)
)
(property "Datasheet" "http://www.mouser.com/pdfdocs/Gravitech_Arduino_Nano3_0.pdf" (id 3) (at 147.32 92.71 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 30a4055c-721e-40d6-9128-53fe92572939))
(pin "10" (uuid e2b377c1-286f-491d-8592-01eae6b6c982))
(pin "11" (uuid a5ec614c-22bc-4090-8758-28e95ce6e487))
(pin "12" (uuid eae5dedf-2b37-481c-81ef-6a9de88c0b9a))
(pin "13" (uuid 5cf018af-ebf0-4476-a93d-252d79875eea))
(pin "14" (uuid c03e9017-6df9-46d1-bd29-f266abbd97ec))
(pin "15" (uuid c4714d47-5cce-4960-b775-4c4b6be49356))
(pin "16" (uuid 1f468837-ffc6-48c3-8c2e-2d68b859aad1))
(pin "17" (uuid 9b9317c5-f8d1-4c83-bd1c-15f00c5eba33))
(pin "18" (uuid a9fd5cfd-9a1b-4fdd-8c11-6d3ecc83d41a))
(pin "19" (uuid a2fba93f-3b01-467c-876a-cfd139455ad2))
(pin "2" (uuid b1ad0e5b-fdcd-4370-8a7a-0c7ab4be7b1e))
(pin "20" (uuid fc21e18a-8932-4fb5-b2ce-e18eba2151a2))
(pin "21" (uuid 5d5a0f22-2eca-4c82-bfea-5bbaffcfea35))
(pin "22" (uuid dcb81a5c-1f4c-4b9b-8d1b-644a2c734649))
(pin "23" (uuid 5ed3c58c-8846-463c-a00d-4806b5648e57))
(pin "24" (uuid 343964a0-cf51-42de-b498-aaa1c1b3ecc4))
(pin "25" (uuid 3fe9be1d-a467-4244-bfb4-e738b42d7fc0))
(pin "26" (uuid 3c6d11bc-26fb-4f2c-8ffc-f9ccf51fe9c5))
(pin "27" (uuid 1ea4a46f-5b71-4fa8-9303-18c321b48145))
(pin "28" (uuid 95bd2f45-36a0-48d5-97f0-3986913674b0))
(pin "29" (uuid deb18fec-e419-4e7f-b7c9-1acea6351b3b))
(pin "3" (uuid a4065a01-79d1-44ea-b70b-d7cd31753b35))
(pin "30" (uuid f880588d-9f63-4dc4-a989-e1dffdc6aca5))
(pin "4" (uuid c6097ca6-51e9-4055-b04a-cce0a79d6c88))
(pin "5" (uuid 4af9c0ad-09c0-4b80-9100-35ce45344ff3))
(pin "6" (uuid 777b093a-403f-4c9a-834d-eba840600428))
(pin "7" (uuid 93b37fce-a571-4a8f-a172-1b6892a4e24f))
(pin "8" (uuid ec74c46a-901d-49d9-a22f-841b4ad59181))
(pin "9" (uuid 9691343b-dc1e-48f0-9550-4bfa34c68927))
)
(symbol (lib_id "power:GND") (at 147.32 123.19 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 43c27ee0-d667-4e29-a090-53ccb0183d97)
(property "Reference" "#PWR?" (id 0) (at 147.32 129.54 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 147.32 127.6334 0))
(property "Footprint" "" (id 2) (at 147.32 123.19 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 147.32 123.19 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 27004600-8287-427c-a9f0-ad1c45dbc27d))
)
(symbol (lib_id "Device:LED") (at 128.27 85.09 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 48c830b7-f420-4f81-9f71-e9bfb15da1f1)
(property "Reference" "D1" (id 0) (at 126.6825 80.1202 0))
(property "Value" "LED" (id 1) (at 126.6825 82.6571 0))
(property "Footprint" "" (id 2) (at 128.27 85.09 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 128.27 85.09 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 610a41ab-7f97-482c-866c-5668b233e036))
(pin "2" (uuid 00452e06-d6e6-425b-b3be-4d370cf81edd))
)
(symbol (lib_id "Device:R_Trim") (at 171.45 99.06 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 5477768f-abf0-46e6-9ba4-137f2fe4fd80)
(property "Reference" "R3" (id 0) (at 174.625 98.2253 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "0E~560E" (id 1) (at 174.625 100.7622 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 169.672 99.06 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 171.45 99.06 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid e4197d7f-533a-4e16-87e9-daaa16350f93))
(pin "2" (uuid 1e47d285-23cd-43fc-b2cf-72d84fb2c086))
)
(symbol (lib_id "Device:R") (at 171.45 86.36 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 5527fde8-dc86-4382-8835-b6c9bc6b4bbf)
(property "Reference" "R2" (id 0) (at 173.228 85.5253 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "3k" (id 1) (at 173.228 88.0622 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 169.672 86.36 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 171.45 86.36 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 7f9223ea-7155-4d0f-b624-ba32eb86d99d))
(pin "2" (uuid 3c6e45ce-c802-4500-8487-fa53671ea444))
)
(symbol (lib_id "power:+5V") (at 152.4 62.23 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid d7e23cd1-32b9-467d-bc40-3a7cab0840ee)
(property "Reference" "#PWR?" (id 0) (at 152.4 66.04 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "+5V" (id 1) (at 152.4 58.6542 0))
(property "Footprint" "" (id 2) (at 152.4 62.23 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 152.4 62.23 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid d38038f1-efd5-4986-a1da-ec3cc088c2a8))
)
(symbol (lib_id "power:+5V") (at 171.45 80.01 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid ef74371d-f23c-4b6a-9944-da1a0ca171ae)
(property "Reference" "#PWR?" (id 0) (at 171.45 83.82 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "+5V" (id 1) (at 171.45 76.4342 0))
(property "Footprint" "" (id 2) (at 171.45 80.01 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 171.45 80.01 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 2270f831-32b6-4fb3-8d70-370b8deed3e6))
)
(symbol (lib_id "Switch:SW_Push") (at 127 104.14 90) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid f21264f8-797f-4fa2-8635-98d776c4efc0)
(property "Reference" "SW1" (id 0) (at 128.143 103.3053 90)
(effects (font (size 1.27 1.27)) (justify right))
)
(property "Value" "SW_Push" (id 1) (at 128.143 105.8422 90)
(effects (font (size 1.27 1.27)) (justify right))
)
(property "Footprint" "" (id 2) (at 121.92 104.14 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 121.92 104.14 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid bdb774a8-0915-4c8a-b919-1c6562c4dd9e))
(pin "2" (uuid 643fd9aa-0f5f-4fd1-8d73-f2e4a944f66f))
)
(symbol (lib_id "power:GND") (at 171.45 123.19 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid f421f62f-0dee-4cd4-b331-e63ecdc5ce89)
(property "Reference" "#PWR?" (id 0) (at 171.45 129.54 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 171.45 127.6334 0))
(property "Footprint" "" (id 2) (at 171.45 123.19 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 171.45 123.19 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 70839095-0195-4489-814d-ddcc976dfe40))
)
(symbol (lib_id "power:GND") (at 116.84 123.19 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid f8ae1def-266b-41a0-bcc2-a42610918178)
(property "Reference" "#PWR?" (id 0) (at 116.84 129.54 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 116.84 127.6334 0))
(property "Footprint" "" (id 2) (at 116.84 123.19 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 116.84 123.19 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 0dbc4c91-b202-488a-849c-c2843bf9bf26))
)
(symbol (lib_id "Device:R") (at 116.84 92.71 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid fcb7c87e-e491-4118-a465-1f06919b3252)
(property "Reference" "R1" (id 0) (at 118.618 91.8753 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "330E" (id 1) (at 118.618 94.4122 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 115.062 92.71 90)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 116.84 92.71 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid d398215c-db9a-4e46-b5a2-e0f9a6fa42a3))
(pin "2" (uuid b0d0b5be-18ef-4022-9f48-56895bd6d87b))
)
(sheet_instances
(path "/" (page "1"))
)
(symbol_instances
(path "/049c1400-7ea8-4827-892f-0ed274ce021a"
(reference "#PWR?") (unit 1) (value "+9V") (footprint "")
)
(path "/43c27ee0-d667-4e29-a090-53ccb0183d97"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/d7e23cd1-32b9-467d-bc40-3a7cab0840ee"
(reference "#PWR?") (unit 1) (value "+5V") (footprint "")
)
(path "/ef74371d-f23c-4b6a-9944-da1a0ca171ae"
(reference "#PWR?") (unit 1) (value "+5V") (footprint "")
)
(path "/f421f62f-0dee-4cd4-b331-e63ecdc5ce89"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/f8ae1def-266b-41a0-bcc2-a42610918178"
(reference "#PWR?") (unit 1) (value "GND") (footprint "")
)
(path "/2f1669ba-392b-4854-bb05-8dce56288f50"
(reference "A1") (unit 1) (value "Arduino_Nano_v3.x") (footprint "Module:Arduino_Nano")
)
(path "/48c830b7-f420-4f81-9f71-e9bfb15da1f1"
(reference "D1") (unit 1) (value "LED") (footprint "")
)
(path "/fcb7c87e-e491-4118-a465-1f06919b3252"
(reference "R1") (unit 1) (value "330E") (footprint "")
)
(path "/5527fde8-dc86-4382-8835-b6c9bc6b4bbf"
(reference "R2") (unit 1) (value "3k") (footprint "")
)
(path "/5477768f-abf0-46e6-9ba4-137f2fe4fd80"
(reference "R3") (unit 1) (value "0E~560E") (footprint "")
)
(path "/f21264f8-797f-4fa2-8635-98d776c4efc0"
(reference "SW1") (unit 1) (value "SW_Push") (footprint "")
)
)
)