Compare commits

...

4 Commits

Author SHA1 Message Date
Neale Pickett 31bfadd71d Actually change pitch, fix VBand LED
* Fix VBand compatability LED
* Make it actually change pitch
2023-02-25 18:10:14 -07:00
Neale Pickett b04428276d More svelte PCB 2023-01-22 15:59:54 -07:00
Neale Pickett e95233c120 Merge branch 'master' of https://github.com/nealey/vail-adapter 2023-01-22 10:19:44 -07:00
Neale Pickett 1f61b21051 First try at a PCB 2023-01-22 10:19:36 -07:00
16 changed files with 128503 additions and 19 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
build/ build/
case/adapter-case.stl case/adapter-case.stl
pcb/pcb-backups

View File

@ -32,7 +32,10 @@ License: MIT
Things I plan to add: Things I plan to add:
* PCB to ease assembly and make a more robust shippable product * [x] PCB to ease assembly and make a more robust shippable product
* [ ] Debug tone changes
* [ ] PCB v2 to get the speaker on pin 10 instead of pin 9
* [ ] Unplug detection: send a pulse out one pin and detect it on the T pin to reset straight-key detection
# Contributing # Contributing

View File

@ -10,9 +10,11 @@
#define SECOND (1000 * MILLISECOND) #define SECOND (1000 * MILLISECOND)
VailAdapter::VailAdapter(unsigned int PiezoPin) { VailAdapter::VailAdapter(unsigned int PiezoPin) {
this->keyboardMode = true;
this->buzzer = new PolyBuzzer(PiezoPin); this->buzzer = new PolyBuzzer(PiezoPin);
this->txToneFrequency = 440; }
bool VailAdapter::KeyboardMode() {
return this->keyboardMode;
} }
// Send a MIDI Key Event // Send a MIDI Key Event
@ -33,7 +35,7 @@ void VailAdapter::keyboardKey(uint8_t key, bool down) {
// Begin transmitting // Begin transmitting
void VailAdapter::BeginTx() { void VailAdapter::BeginTx() {
this->buzzer->Tone(0, this->txToneFrequency); this->buzzer->Note(0, this->txNote);
if (this->keyboardMode) { if (this->keyboardMode) {
this->keyboardKey(KEY_LEFT_CTRL, true); this->keyboardKey(KEY_LEFT_CTRL, true);
} else { } else {
@ -102,6 +104,9 @@ void VailAdapter::HandleMIDI(midiEventPacket_t event) {
this->keyer->SetDitDuration(this->ditDuration); this->keyer->SetDitDuration(this->ditDuration);
} }
break; break;
case 2: // set tx note
this->txNote = event.byte3;
break;
} }
break; break;
case 0xC0: // Program Change case 0xC0: // Program Change

View File

@ -6,9 +6,9 @@
class VailAdapter: public Transmitter { class VailAdapter: public Transmitter {
private: private:
unsigned int txToneFrequency; unsigned int txNote = 69;
unsigned int ditDuration = 100; unsigned int ditDuration = 100;
bool keyboardMode = false; bool keyboardMode = true;
Keyer *keyer = NULL; Keyer *keyer = NULL;
PolyBuzzer *buzzer = NULL; PolyBuzzer *buzzer = NULL;
@ -18,6 +18,7 @@ private:
public: public:
VailAdapter(unsigned int PiezoPin); VailAdapter(unsigned int PiezoPin);
bool KeyboardMode();
void HandlePaddle(Paddle key, bool pressed); void HandlePaddle(Paddle key, bool pressed);
void HandleMIDI(midiEventPacket_t event); void HandleMIDI(midiEventPacket_t event);
void BeginTx(); void BeginTx();

132
equal_temperament.h Normal file
View File

@ -0,0 +1,132 @@
#pragma once
const int equalTemperamentNote[] = {
8, // 0
8, // 1
9, // 2
9, // 3
10, // 4
10, // 5
11, // 6
12, // 7
12, // 8
13, // 9
14, // 10
15, // 11
16, // 12
17, // 13
18, // 14
19, // 15
20, // 16
21, // 17
23, // 18
24, // 19
25, // 20
27, // 21
29, // 22
30, // 23
32, // 24
34, // 25
36, // 26
38, // 27
41, // 28
43, // 29
46, // 30
49, // 31
51, // 32
55, // 33
58, // 34
61, // 35
65, // 36
69, // 37
73, // 38
77, // 39
82, // 40
87, // 41
92, // 42
98, // 43
103, // 44
110, // 45
116, // 46
123, // 47
130, // 48
138, // 49
146, // 50
155, // 51
164, // 52
174, // 53
185, // 54
196, // 55
207, // 56
220, // 57
233, // 58
247, // 59
261, // 60
277, // 61
293, // 62
311, // 63
329, // 64
349, // 65
370, // 66
392, // 67
415, // 68
440, // 69
466, // 70
494, // 71
523, // 72
554, // 73
587, // 74
622, // 75
659, // 76
698, // 77
740, // 78
784, // 79
831, // 80
880, // 81
932, // 82
988, // 83
1047, // 84
1109, // 85
1175, // 86
1245, // 87
1319, // 88
1397, // 89
1480, // 90
1568, // 91
1662, // 92
1760, // 93
1865, // 94
1976, // 95
2094, // 96
2218, // 97
2350, // 98
2490, // 99
2638, // 100
2795, // 101
2961, // 102
3137, // 103
3324, // 104
3521, // 105
3731, // 106
3953, // 107
4188, // 108
4437, // 109
4701, // 110
4980, // 111
5276, // 112
5590, // 113
5922, // 114
6275, // 115
6648, // 116
7043, // 117
7462, // 118
7906, // 119
8376, // 120
8874, // 121
9402, // 122
9961, // 123
10553, // 124
11181, // 125
11845, // 126
12550, // 127
};

87438
pcb/fp-info-cache Normal file

File diff suppressed because it is too large Load Diff

3
pcb/fp-lib-table Normal file
View File

@ -0,0 +1,3 @@
(fp_lib_table
(lib (name "Seeeduino XIAO")(type "KiCad")(uri "/home/dartcatcher/.var/app/org.kicad.KiCad/data/kicad/6.0/footprints/Seeeduino XIAO KICAD")(options "")(descr ""))
)

39028
pcb/pcb.kicad_pcb Normal file

File diff suppressed because it is too large Load Diff

75
pcb/pcb.kicad_prl Normal file
View File

@ -0,0 +1,75 @@
{
"board": {
"active_layer": 36,
"active_layer_preset": "All Layers",
"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": "pcb.kicad_prl",
"version": 3
},
"project": {
"files": []
}
}

471
pcb/pcb.kicad_pro Normal file
View File

@ -0,0 +1,471 @@
{
"board": {
"design_settings": {
"defaults": {
"board_outline_line_width": 0.09999999999999999,
"copper_line_width": 0.19999999999999998,
"copper_text_italic": false,
"copper_text_size_h": 1.5,
"copper_text_size_v": 1.5,
"copper_text_thickness": 0.3,
"copper_text_upright": false,
"courtyard_line_width": 0.049999999999999996,
"dimension_precision": 4,
"dimension_units": 3,
"dimensions": {
"arrow_length": 1270000,
"extension_offset": 500000,
"keep_text_aligned": true,
"suppress_zeroes": false,
"text_position": 0,
"units_format": 1
},
"fab_line_width": 0.09999999999999999,
"fab_text_italic": false,
"fab_text_size_h": 1.0,
"fab_text_size_v": 1.0,
"fab_text_thickness": 0.15,
"fab_text_upright": false,
"other_line_width": 0.15,
"other_text_italic": false,
"other_text_size_h": 1.0,
"other_text_size_v": 1.0,
"other_text_thickness": 0.15,
"other_text_upright": false,
"pads": {
"drill": 0.4,
"height": 2.2,
"width": 1.2
},
"silk_line_width": 0.15,
"silk_text_italic": false,
"silk_text_size_h": 1.0,
"silk_text_size_v": 1.0,
"silk_text_thickness": 0.15,
"silk_text_upright": false,
"zones": {
"45_degree_only": false,
"min_clearance": 0.508
}
},
"diff_pair_dimensions": [
{
"gap": 0.0,
"via_gap": 0.0,
"width": 0.0
}
],
"drc_exclusions": [],
"meta": {
"version": 2
},
"rule_severities": {
"annular_width": "error",
"clearance": "error",
"copper_edge_clearance": "error",
"courtyards_overlap": "error",
"diff_pair_gap_out_of_range": "error",
"diff_pair_uncoupled_length_too_long": "error",
"drill_out_of_range": "error",
"duplicate_footprints": "warning",
"extra_footprint": "warning",
"footprint_type_mismatch": "error",
"hole_clearance": "error",
"hole_near_hole": "error",
"invalid_outline": "error",
"item_on_disabled_layer": "error",
"items_not_allowed": "error",
"length_out_of_range": "error",
"malformed_courtyard": "error",
"microvia_drill_out_of_range": "error",
"missing_courtyard": "ignore",
"missing_footprint": "warning",
"net_conflict": "warning",
"npth_inside_courtyard": "ignore",
"padstack": "error",
"pth_inside_courtyard": "ignore",
"shorting_items": "error",
"silk_over_copper": "warning",
"silk_overlap": "warning",
"skew_out_of_range": "error",
"through_hole_pad_without_hole": "error",
"too_many_vias": "error",
"track_dangling": "warning",
"track_width": "error",
"tracks_crossing": "error",
"unconnected_items": "error",
"unresolved_variable": "error",
"via_dangling": "warning",
"zone_has_empty_net": "error",
"zones_intersect": "error"
},
"rules": {
"allow_blind_buried_vias": false,
"allow_microvias": false,
"max_error": 0.005,
"min_clearance": 0.0,
"min_copper_edge_clearance": 0.0,
"min_hole_clearance": 0.25,
"min_hole_to_hole": 0.25,
"min_microvia_diameter": 0.19999999999999998,
"min_microvia_drill": 0.09999999999999999,
"min_silk_clearance": 0.0,
"min_through_hole_diameter": 0.3,
"min_track_width": 0.19999999999999998,
"min_via_annular_width": 0.049999999999999996,
"min_via_diameter": 0.39999999999999997,
"solder_mask_clearance": 0.0,
"solder_mask_min_width": 0.0,
"use_height_for_length_calcs": true
},
"track_widths": [
0.0
],
"via_dimensions": [
{
"diameter": 0.0,
"drill": 0.0
}
],
"zones_allow_external_fillets": false,
"zones_use_no_outline": true
},
"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": "pcb.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.5,
"via_diameter": 0.8,
"via_drill": 0.4,
"wire_width": 6.0
},
{
"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": "I2C",
"nets": [],
"pcb_color": "rgba(0, 0, 0, 0.000)",
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.5,
"via_diameter": 0.8,
"via_drill": 0.4,
"wire_width": 6.0
},
{
"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": "Power",
"nets": [
"GND"
],
"pcb_color": "rgba(0, 0, 0, 0.000)",
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.8,
"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": [
[
"bc199109-bc84-4207-bd79-7d43ff8dd6f2",
""
]
],
"text_variables": {}
}

766
pcb/pcb.kicad_sch Normal file
View File

@ -0,0 +1,766 @@
(kicad_sch (version 20211123) (generator eeschema)
(uuid bc199109-bc84-4207-bd79-7d43ff8dd6f2)
(paper "A4")
(lib_symbols
(symbol "Connector:AudioJack3" (in_bom yes) (on_board yes)
(property "Reference" "J" (id 0) (at 0 8.89 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "AudioJack3" (id 1) (at 0 6.35 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" "audio jack receptacle stereo headphones phones TRS connector" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Audio Jack, 3 Poles (Stereo / TRS)" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "Jack*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "AudioJack3_0_1"
(rectangle (start -5.08 -5.08) (end -6.35 -2.54)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type outline))
)
(polyline
(pts
(xy 0 -2.54)
(xy 0.635 -3.175)
(xy 1.27 -2.54)
(xy 2.54 -2.54)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy -1.905 -2.54)
(xy -1.27 -3.175)
(xy -0.635 -2.54)
(xy -0.635 0)
(xy 2.54 0)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 2.54 2.54)
(xy -2.54 2.54)
(xy -2.54 -2.54)
(xy -3.175 -3.175)
(xy -3.81 -2.54)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start 2.54 3.81) (end -5.08 -5.08)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type background))
)
)
(symbol "AudioJack3_1_1"
(pin passive line (at 5.08 0 180) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "R" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 5.08 2.54 180) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "S" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 5.08 -2.54 180) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "T" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Connector_Generic:Conn_01x07" (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
(property "Reference" "J" (id 0) (at 0 10.16 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "Conn_01x07" (id 1) (at 0 -10.16 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" "connector" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Generic connector, single row, 01x07, script generated (kicad-library-utils/schlib/autogen/connector/)" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "Connector*:*_1x??_*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "Conn_01x07_1_1"
(rectangle (start -1.27 -7.493) (end 0 -7.747)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 -4.953) (end 0 -5.207)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 -2.413) (end 0 -2.667)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 0.127) (end 0 -0.127)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 2.667) (end 0 2.413)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 5.207) (end 0 4.953)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 7.747) (end 0 7.493)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 8.89) (end 1.27 -8.89)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type background))
)
(pin passive line (at -5.08 7.62 0) (length 3.81)
(name "Pin_1" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.08 5.08 0) (length 3.81)
(name "Pin_2" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.08 2.54 0) (length 3.81)
(name "Pin_3" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.08 0 0) (length 3.81)
(name "Pin_4" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.08 -2.54 0) (length 3.81)
(name "Pin_5" (effects (font (size 1.27 1.27))))
(number "5" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.08 -5.08 0) (length 3.81)
(name "Pin_6" (effects (font (size 1.27 1.27))))
(number "6" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.08 -7.62 0) (length 3.81)
(name "Pin_7" (effects (font (size 1.27 1.27))))
(number "7" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Device:Speaker" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
(property "Reference" "LS" (id 0) (at 1.27 5.715 0)
(effects (font (size 1.27 1.27)) (justify right))
)
(property "Value" "Speaker" (id 1) (at 1.27 3.81 0)
(effects (font (size 1.27 1.27)) (justify right))
)
(property "Footprint" "" (id 2) (at 0 -5.08 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at -0.254 -1.27 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "speaker sound" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Speaker" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "Speaker_0_0"
(rectangle (start -2.54 1.27) (end 1.016 -3.81)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 1.016 1.27)
(xy 3.556 3.81)
(xy 3.556 -6.35)
(xy 1.016 -3.81)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "Speaker_1_1"
(pin input 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 input line (at -5.08 -2.54 0) (length 2.54)
(name "2" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Seeeduino XIAO:SeeeduinoXIAO" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)
(property "Reference" "U" (id 0) (at -19.05 22.86 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "SeeeduinoXIAO" (id 1) (at -12.7 21.59 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at -8.89 5.08 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at -8.89 5.08 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "SeeeduinoXIAO_0_1"
(rectangle (start -19.05 20.32) (end 17.78 -19.05)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "SeeeduinoXIAO_1_1"
(pin unspecified line (at -21.59 11.43 0) (length 2.54)
(name "PA02_A0_D0" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 -3.81 180) (length 2.54)
(name "PA5_A9_D9_MISO" (effects (font (size 1.27 1.27))))
(number "10" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 0 180) (length 2.54)
(name "PA6_A10_D10_MOSI" (effects (font (size 1.27 1.27))))
(number "11" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 3.81 180) (length 2.54)
(name "3V3" (effects (font (size 1.27 1.27))))
(number "12" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 7.62 180) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "13" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 11.43 180) (length 2.54)
(name "5V" (effects (font (size 1.27 1.27))))
(number "14" (effects (font (size 1.27 1.27))))
)
(pin input line (at -2.54 -21.59 90) (length 2.54)
(name "5V" (effects (font (size 1.27 1.27))))
(number "15" (effects (font (size 1.27 1.27))))
)
(pin input line (at 2.54 -21.59 90) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "16" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 22.86 270) (length 2.54)
(name "PA31_SWDIO" (effects (font (size 1.27 1.27))))
(number "17" (effects (font (size 1.27 1.27))))
)
(pin input line (at -1.27 22.86 270) (length 2.54)
(name "PA30_SWCLK" (effects (font (size 1.27 1.27))))
(number "18" (effects (font (size 1.27 1.27))))
)
(pin input line (at 2.54 22.86 270) (length 2.54)
(name "RESET" (effects (font (size 1.27 1.27))))
(number "19" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 7.62 0) (length 2.54)
(name "PA4_A1_D1" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin input line (at 6.35 22.86 270) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "20" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 3.81 0) (length 2.54)
(name "PA10_A2_D2" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 0 0) (length 2.54)
(name "PA11_A3_D3" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 -3.81 0) (length 2.54)
(name "PA8_A4_D4_SDA" (effects (font (size 1.27 1.27))))
(number "5" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 -7.62 0) (length 2.54)
(name "PA9_A5_D5_SCL" (effects (font (size 1.27 1.27))))
(number "6" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 -11.43 0) (length 2.54)
(name "PB08_A6_D6_TX" (effects (font (size 1.27 1.27))))
(number "7" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 -11.43 180) (length 2.54)
(name "PB09_A7_D7_RX" (effects (font (size 1.27 1.27))))
(number "8" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 -7.62 180) (length 2.54)
(name "PA7_A8_D8_SCK" (effects (font (size 1.27 1.27))))
(number "9" (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 180.34 85.09) (diameter 0) (color 0 0 0 0)
(uuid 084fc4af-5da9-4744-9421-9f5976edf8a5)
)
(junction (at 113.03 72.39) (diameter 0) (color 0 0 0 0)
(uuid 2c6ead75-a187-44e6-8b37-e219f665420d)
)
(junction (at 176.53 71.12) (diameter 0) (color 0 0 0 0)
(uuid 6baae593-302d-4f4f-9c6a-6a59a40c92db)
)
(junction (at 114.3 74.93) (diameter 0) (color 0 0 0 0)
(uuid f37864ef-8d23-4680-b7f7-803df460cbeb)
)
(wire (pts (xy 184.15 80.01) (xy 175.26 80.01))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 03f5d05a-2e67-47b9-9914-27f26ba34652)
)
(wire (pts (xy 180.34 85.09) (xy 180.34 97.79))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 045872e1-f559-4243-9f62-30e6a4434026)
)
(wire (pts (xy 166.37 82.55) (xy 172.72 82.55))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 07655e39-81eb-4c05-86c6-28ffed1dec2a)
)
(wire (pts (xy 114.3 74.93) (xy 114.3 87.63))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 08fde1ec-0633-4751-a690-b4aab38a8073)
)
(wire (pts (xy 111.76 82.55) (xy 111.76 67.31))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 0ace4b93-dddc-4522-b4cd-910ddb3153f3)
)
(wire (pts (xy 113.03 85.09) (xy 113.03 72.39))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 150d7c20-3e9e-4d6f-88e8-b550531c78f2)
)
(wire (pts (xy 171.45 87.63) (xy 184.15 87.63))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 170446fd-ddfb-4b97-85a9-8abb5f3fc6c2)
)
(wire (pts (xy 107.95 82.55) (xy 111.76 82.55))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 179cb9ec-5d63-48dd-9f3d-e8f8a64b8155)
)
(wire (pts (xy 176.53 71.12) (xy 176.53 77.47))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 23e7a9ac-41e2-4131-aedc-1d25fab0c71e)
)
(wire (pts (xy 107.95 59.69) (xy 107.95 69.85))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 2841f63e-3b89-419b-8017-1e4c3f74bf89)
)
(wire (pts (xy 119.38 97.79) (xy 107.95 97.79))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 2d099013-b695-4612-896c-c4aa053f291f)
)
(wire (pts (xy 116.84 82.55) (xy 116.84 92.71))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 309e0e09-af40-47ed-9339-040cf1eb037c)
)
(wire (pts (xy 166.37 71.12) (xy 176.53 71.12))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 3324635b-f409-43a5-9606-5d60853fd59c)
)
(wire (pts (xy 177.8 67.31) (xy 166.37 67.31))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 38094a9a-cfd6-4ef4-9943-735fd69d7832)
)
(wire (pts (xy 184.15 74.93) (xy 177.8 74.93))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 42c3e427-dd59-4d8e-bfca-f6ee28fc29a8)
)
(wire (pts (xy 119.38 71.12) (xy 119.38 72.39))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 45f9117b-7cf7-42b7-92d4-677c4a3d9270)
)
(wire (pts (xy 171.45 86.36) (xy 171.45 87.63))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 47ae642d-04ee-428a-8a81-144f97db0d16)
)
(wire (pts (xy 173.99 82.55) (xy 184.15 82.55))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 4ad864e9-de0d-4297-b71f-920b6385b5f8)
)
(wire (pts (xy 172.72 85.09) (xy 180.34 85.09))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 54c5d04a-b56e-4a2e-91af-53823da80098)
)
(wire (pts (xy 166.37 78.74) (xy 173.99 78.74))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 58ea7ef0-c068-419c-a4cd-dbe0bd17f840)
)
(wire (pts (xy 124.46 82.55) (xy 116.84 82.55))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 5b9c964c-7155-46b4-9d32-396753e7c4fb)
)
(wire (pts (xy 176.53 77.47) (xy 184.15 77.47))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 5f70c145-5e9b-4d4b-ad7d-db677d0408b6)
)
(wire (pts (xy 107.95 85.09) (xy 113.03 85.09))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 77cd570f-cad9-48c6-a48b-368c571f4645)
)
(wire (pts (xy 124.46 71.12) (xy 119.38 71.12))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 7b6c330d-c698-4b2f-8119-f9e532686b95)
)
(wire (pts (xy 119.38 90.17) (xy 124.46 90.17))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 88d19543-1cfe-4048-b1fa-b6ff80cefb7c)
)
(wire (pts (xy 107.95 95.25) (xy 118.11 95.25))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 8ec729a7-f18f-4542-9a20-5656e95b1726)
)
(wire (pts (xy 118.11 86.36) (xy 124.46 86.36))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 97d1edcf-2713-473e-ade6-433efe5f56c2)
)
(wire (pts (xy 115.57 78.74) (xy 124.46 78.74))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid a562eb29-7bfb-4f37-a508-9ecae3d3f393)
)
(wire (pts (xy 116.84 92.71) (xy 107.95 92.71))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid a9b1895c-852e-448c-97ca-ffca0a6f3779)
)
(wire (pts (xy 177.8 74.93) (xy 177.8 67.31))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid b0ea0c3f-cb59-4d6e-aac8-5969de62f990)
)
(wire (pts (xy 173.99 78.74) (xy 173.99 82.55))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid b712124b-3cff-42d8-a287-697e33369538)
)
(wire (pts (xy 175.26 74.93) (xy 166.37 74.93))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid b9aaa0e9-d870-4e3d-ba68-ca48b5272d06)
)
(wire (pts (xy 176.53 60.96) (xy 176.53 71.12))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid c66d5ae3-6daa-453f-9e65-81a3554d17fc)
)
(wire (pts (xy 115.57 90.17) (xy 115.57 78.74))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid cca31ece-ca60-4090-a4ad-ba920ffba004)
)
(wire (pts (xy 107.95 90.17) (xy 115.57 90.17))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid cfc52bfd-d6f6-43a1-b8a0-f2361f8c9a21)
)
(wire (pts (xy 180.34 100.33) (xy 180.34 106.68))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid d0487122-a514-43ac-97f7-62dc2f11addd)
)
(wire (pts (xy 119.38 90.17) (xy 119.38 97.79))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid d7b056b3-9bc6-4e05-a3b4-b63cb4b0295d)
)
(wire (pts (xy 107.95 74.93) (xy 114.3 74.93))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid da7d7d83-ff45-418d-a1b5-bfd4c0f5f8ec)
)
(wire (pts (xy 119.38 72.39) (xy 113.03 72.39))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid e3dba68b-cffd-4e5b-a758-b141366a28e2)
)
(wire (pts (xy 118.11 95.25) (xy 118.11 86.36))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid e41d66ff-6983-40fd-b899-d7fa51441ef8)
)
(wire (pts (xy 107.95 87.63) (xy 114.3 87.63))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid ef4335b7-d678-4dc8-858d-22e8c5b856b2)
)
(wire (pts (xy 113.03 72.39) (xy 107.95 72.39))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid f0fd723e-37d2-4157-b59d-3ce316fdd7d2)
)
(wire (pts (xy 166.37 86.36) (xy 171.45 86.36))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid f1251488-bf1e-476e-a2a1-f51b9f1ce712)
)
(wire (pts (xy 114.3 74.93) (xy 124.46 74.93))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid f3896771-c250-4df5-9cb6-0ad3845d0a97)
)
(wire (pts (xy 111.76 67.31) (xy 124.46 67.31))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid f7342045-f390-4108-b26a-5d1f69c59042)
)
(wire (pts (xy 180.34 85.09) (xy 184.15 85.09))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid f9dca0e8-8e56-4445-8c20-7b014de27ccb)
)
(wire (pts (xy 166.37 90.17) (xy 184.15 90.17))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid fb1f6fdc-3e4c-4162-9e98-3737648d8ef0)
)
(wire (pts (xy 175.26 80.01) (xy 175.26 74.93))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid fb4a203b-9fec-4f46-abc4-17b902b0dede)
)
(wire (pts (xy 172.72 82.55) (xy 172.72 85.09))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid fb5d45e9-cda6-4e99-96b2-1b64e4600161)
)
(symbol (lib_id "Seeeduino XIAO:SeeeduinoXIAO") (at 146.05 78.74 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 09be1eba-cac4-4f6b-8eb4-87d819840140)
(property "Reference" "U1" (id 0) (at 150.6094 99.6934 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "SeeeduinoXIAO" (id 1) (at 150.6094 102.2303 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Seeeduino XIAO:Seeeduino XIAO Sides Only" (id 2) (at 137.16 73.66 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 137.16 73.66 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid fa8ff7bd-280a-430a-90ce-4566eeaa888e))
(pin "10" (uuid bafa1981-6fa5-42d5-a6e9-bf4d117a6565))
(pin "11" (uuid e163a356-5a18-4550-b2f8-04426edfa537))
(pin "12" (uuid 645209ba-000d-4161-8079-a90c48f21972))
(pin "13" (uuid de14dca8-bf3f-497e-816c-11f9cf81219b))
(pin "14" (uuid a4692f34-d532-4459-88e3-b0550c8a2eee))
(pin "15" (uuid 496a7bd6-ee6c-43c8-8ebc-939c96d755f3))
(pin "16" (uuid 1284f43c-755b-46d4-8f24-a61527f2e347))
(pin "17" (uuid 50f5671f-9d26-467f-bcde-f5b9d8fc54df))
(pin "18" (uuid d372df45-d835-49ee-b010-2ee64c196b50))
(pin "19" (uuid 8dfae23e-614b-46bb-bdae-f341197dce2f))
(pin "2" (uuid 97a9a8d0-7188-48a2-8c2f-46c8abe86dd6))
(pin "20" (uuid bec1f1dd-62f3-4b41-b807-7d06f8d6cd2a))
(pin "3" (uuid 6417cc3b-7235-4a80-a2c1-d13faf64b1d7))
(pin "4" (uuid 9ed46697-310b-4a89-9326-ff97b2100523))
(pin "5" (uuid c40c67a9-b68b-499e-ab8a-2d082d8d0b7d))
(pin "6" (uuid 17515fd1-db3b-40e0-9d89-f8de0bd2313d))
(pin "7" (uuid 6be5e90f-7745-4b4f-a246-cdf69a470372))
(pin "8" (uuid ad72a37e-a57a-4468-bc8e-2de8107460b1))
(pin "9" (uuid 7b7ef057-2eaa-4d86-af51-083f44f7903a))
)
(symbol (lib_id "power:GND") (at 107.95 59.69 180) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 21b4a75e-d3ec-42e3-bfa0-19b1fa944cd6)
(property "Reference" "#PWR0104" (id 0) (at 107.95 53.34 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 107.95 56.1142 0))
(property "Footprint" "" (id 2) (at 107.95 59.69 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 107.95 59.69 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid ab5f9a41-c6e0-47f7-af1b-c452558850d3))
)
(symbol (lib_id "Connector:AudioJack3") (at 102.87 72.39 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 66e3c996-db8e-4fb7-b48f-190d0be3430a)
(property "Reference" "J1" (id 0) (at 100.965 64.8802 0))
(property "Value" "AudioJack3" (id 1) (at 100.965 67.4171 0))
(property "Footprint" "Connector_Audio:Jack_3.5mm_CUI_SJ1-3525N_Horizontal" (id 2) (at 102.87 72.39 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 102.87 72.39 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "R" (uuid 1f358e15-8af1-422d-a4f1-73d4459d5b34))
(pin "S" (uuid dd9803db-3066-463d-b9f3-9e0b09258ada))
(pin "T" (uuid a2d42b71-084c-49a4-a6a7-eaa1d4b040f2))
)
(symbol (lib_id "Connector_Generic:Conn_01x07") (at 189.23 82.55 0) (mirror x) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 6ddba0b4-09e4-4218-aa23-b39343c58838)
(property "Reference" "J3" (id 0) (at 189.23 69.9602 0))
(property "Value" "Conn_01x07" (id 1) (at 189.23 72.4971 0))
(property "Footprint" "Connector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_Vertical" (id 2) (at 189.23 82.55 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 189.23 82.55 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 14449507-ba74-434c-97a9-bbcfc4d41422))
(pin "2" (uuid 8056644d-5cfd-4076-a5f7-925fc1b945b6))
(pin "3" (uuid 9e200d0e-b83b-4ef6-b229-6bff9c2cae0a))
(pin "4" (uuid 656bbe56-cd16-40b7-b22b-b0bd1fbdbdce))
(pin "5" (uuid 18e2f97c-e3d7-4499-b00e-10b4faf69a23))
(pin "6" (uuid ffa353cc-31a9-4f5e-a03b-c234e97737c4))
(pin "7" (uuid 81c975eb-562d-40df-8f8d-6259365b3484))
)
(symbol (lib_id "Device:Speaker") (at 185.42 97.79 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 85704c39-8f35-45e4-95cf-ea16ee5c0860)
(property "Reference" "LS1" (id 0) (at 189.738 98.2253 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Speaker" (id 1) (at 189.738 100.7622 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_Vertical" (id 2) (at 185.42 102.87 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 185.166 99.06 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 813e4983-7b04-43c6-b38f-2d76d19ec428))
(pin "2" (uuid bccb7013-a3a3-48ae-859c-0a59dd6bcac1))
)
(symbol (lib_id "Connector_Generic:Conn_01x07") (at 102.87 90.17 0) (mirror y) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 96d69c74-79ae-4be9-99d2-edfcdd09150d)
(property "Reference" "J2" (id 0) (at 102.87 77.5802 0))
(property "Value" "Conn_01x07" (id 1) (at 102.87 80.1171 0))
(property "Footprint" "Connector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_Vertical" (id 2) (at 102.87 90.17 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 102.87 90.17 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid f9788d94-dec9-4f07-89de-917bc35fe8f1))
(pin "2" (uuid 13a1eabc-ebaa-4abb-895d-8a5fcf92e067))
(pin "3" (uuid 8155024f-df34-462b-a524-5ead19c137fc))
(pin "4" (uuid a9644733-65d3-4973-b1af-1b3defb75e35))
(pin "5" (uuid 4482b972-9159-4a23-b4d4-60bf038ce55e))
(pin "6" (uuid e9941b45-1988-4a1f-853b-630b38ce85a9))
(pin "7" (uuid 95da1020-b34c-4f6d-96c8-c6b7c8005abf))
)
(symbol (lib_id "power:GND") (at 180.34 106.68 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid a69e29d8-5334-451c-95e1-f992c3760df5)
(property "Reference" "#PWR0102" (id 0) (at 180.34 113.03 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 182.245 108.3838 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "" (id 2) (at 180.34 106.68 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 180.34 106.68 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 69c80634-4750-4ba2-b01d-0068da082d57))
)
(symbol (lib_id "power:GND") (at 176.53 60.96 180) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid ab9d761d-b0f1-4c22-9cdb-400dd650d660)
(property "Reference" "#PWR0101" (id 0) (at 176.53 54.61 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 178.435 60.1238 0)
(effects (font (size 1.27 1.27)) (justify right))
)
(property "Footprint" "" (id 2) (at 176.53 60.96 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 176.53 60.96 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 109d9911-9f94-43d0-8fbd-c2bd6d14d4a8))
)
(sheet_instances
(path "/" (page "1"))
)
(symbol_instances
(path "/ab9d761d-b0f1-4c22-9cdb-400dd650d660"
(reference "#PWR0101") (unit 1) (value "GND") (footprint "")
)
(path "/a69e29d8-5334-451c-95e1-f992c3760df5"
(reference "#PWR0102") (unit 1) (value "GND") (footprint "")
)
(path "/21b4a75e-d3ec-42e3-bfa0-19b1fa944cd6"
(reference "#PWR0104") (unit 1) (value "GND") (footprint "")
)
(path "/66e3c996-db8e-4fb7-b48f-190d0be3430a"
(reference "J1") (unit 1) (value "AudioJack3") (footprint "Connector_Audio:Jack_3.5mm_CUI_SJ1-3525N_Horizontal")
)
(path "/96d69c74-79ae-4be9-99d2-edfcdd09150d"
(reference "J2") (unit 1) (value "Conn_01x07") (footprint "Connector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_Vertical")
)
(path "/6ddba0b4-09e4-4218-aa23-b39343c58838"
(reference "J3") (unit 1) (value "Conn_01x07") (footprint "Connector_PinSocket_2.54mm:PinSocket_1x07_P2.54mm_Vertical")
)
(path "/85704c39-8f35-45e4-95cf-ea16ee5c0860"
(reference "LS1") (unit 1) (value "Speaker") (footprint "Connector_PinSocket_2.54mm:PinSocket_1x02_P2.54mm_Vertical")
)
(path "/09be1eba-cac4-4f6b-8eb4-87d819840140"
(reference "U1") (unit 1) (value "SeeeduinoXIAO") (footprint "Seeeduino XIAO:Seeeduino XIAO Sides Only")
)
)
)

559
pcb/pcb.kicad_sch-bak Normal file
View File

@ -0,0 +1,559 @@
(kicad_sch (version 20211123) (generator eeschema)
(uuid bc199109-bc84-4207-bd79-7d43ff8dd6f2)
(paper "A4")
(lib_symbols
(symbol "Connector:AudioJack3" (in_bom yes) (on_board yes)
(property "Reference" "J" (id 0) (at 0 8.89 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "AudioJack3" (id 1) (at 0 6.35 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" "audio jack receptacle stereo headphones phones TRS connector" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Audio Jack, 3 Poles (Stereo / TRS)" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "Jack*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "AudioJack3_0_1"
(rectangle (start -5.08 -5.08) (end -6.35 -2.54)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type outline))
)
(polyline
(pts
(xy 0 -2.54)
(xy 0.635 -3.175)
(xy 1.27 -2.54)
(xy 2.54 -2.54)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy -1.905 -2.54)
(xy -1.27 -3.175)
(xy -0.635 -2.54)
(xy -0.635 0)
(xy 2.54 0)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 2.54 2.54)
(xy -2.54 2.54)
(xy -2.54 -2.54)
(xy -3.175 -3.175)
(xy -3.81 -2.54)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start 2.54 3.81) (end -5.08 -5.08)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type background))
)
)
(symbol "AudioJack3_1_1"
(pin passive line (at 5.08 0 180) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "R" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 5.08 2.54 180) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "S" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 5.08 -2.54 180) (length 2.54)
(name "~" (effects (font (size 1.27 1.27))))
(number "T" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Connector_Generic:Conn_01x03" (pin_names (offset 1.016) hide) (in_bom yes) (on_board yes)
(property "Reference" "J" (id 0) (at 0 5.08 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "Conn_01x03" (id 1) (at 0 -5.08 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" "connector" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Generic connector, single row, 01x03, script generated (kicad-library-utils/schlib/autogen/connector/)" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "Connector*:*_1x??_*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "Conn_01x03_1_1"
(rectangle (start -1.27 -2.413) (end 0 -2.667)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 0.127) (end 0 -0.127)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 2.667) (end 0 2.413)
(stroke (width 0.1524) (type default) (color 0 0 0 0))
(fill (type none))
)
(rectangle (start -1.27 3.81) (end 1.27 -3.81)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type background))
)
(pin passive line (at -5.08 2.54 0) (length 3.81)
(name "Pin_1" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.08 0 0) (length 3.81)
(name "Pin_2" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -5.08 -2.54 0) (length 3.81)
(name "Pin_3" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Device:Speaker" (pin_names (offset 0) hide) (in_bom yes) (on_board yes)
(property "Reference" "LS" (id 0) (at 1.27 5.715 0)
(effects (font (size 1.27 1.27)) (justify right))
)
(property "Value" "Speaker" (id 1) (at 1.27 3.81 0)
(effects (font (size 1.27 1.27)) (justify right))
)
(property "Footprint" "" (id 2) (at 0 -5.08 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at -0.254 -1.27 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "speaker sound" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "Speaker" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "Speaker_0_0"
(rectangle (start -2.54 1.27) (end 1.016 -3.81)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
(polyline
(pts
(xy 1.016 1.27)
(xy 3.556 3.81)
(xy 3.556 -6.35)
(xy 1.016 -3.81)
)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "Speaker_1_1"
(pin input 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 input line (at -5.08 -2.54 0) (length 2.54)
(name "2" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
)
)
(symbol "Seeeduino XIAO:SeeeduinoXIAO" (pin_names (offset 1.016)) (in_bom yes) (on_board yes)
(property "Reference" "U" (id 0) (at -19.05 22.86 0)
(effects (font (size 1.27 1.27)))
)
(property "Value" "SeeeduinoXIAO" (id 1) (at -12.7 21.59 0)
(effects (font (size 1.27 1.27)))
)
(property "Footprint" "" (id 2) (at -8.89 5.08 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at -8.89 5.08 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "SeeeduinoXIAO_0_1"
(rectangle (start -19.05 20.32) (end 17.78 -19.05)
(stroke (width 0) (type default) (color 0 0 0 0))
(fill (type none))
)
)
(symbol "SeeeduinoXIAO_1_1"
(pin unspecified line (at -21.59 11.43 0) (length 2.54)
(name "PA02_A0_D0" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 -3.81 180) (length 2.54)
(name "PA5_A9_D9_MISO" (effects (font (size 1.27 1.27))))
(number "10" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 0 180) (length 2.54)
(name "PA6_A10_D10_MOSI" (effects (font (size 1.27 1.27))))
(number "11" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 3.81 180) (length 2.54)
(name "3V3" (effects (font (size 1.27 1.27))))
(number "12" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 7.62 180) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "13" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 11.43 180) (length 2.54)
(name "5V" (effects (font (size 1.27 1.27))))
(number "14" (effects (font (size 1.27 1.27))))
)
(pin input line (at -2.54 -21.59 90) (length 2.54)
(name "5V" (effects (font (size 1.27 1.27))))
(number "15" (effects (font (size 1.27 1.27))))
)
(pin input line (at 2.54 -21.59 90) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "16" (effects (font (size 1.27 1.27))))
)
(pin input line (at -5.08 22.86 270) (length 2.54)
(name "PA31_SWDIO" (effects (font (size 1.27 1.27))))
(number "17" (effects (font (size 1.27 1.27))))
)
(pin input line (at -1.27 22.86 270) (length 2.54)
(name "PA30_SWCLK" (effects (font (size 1.27 1.27))))
(number "18" (effects (font (size 1.27 1.27))))
)
(pin input line (at 2.54 22.86 270) (length 2.54)
(name "RESET" (effects (font (size 1.27 1.27))))
(number "19" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 7.62 0) (length 2.54)
(name "PA4_A1_D1" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin input line (at 6.35 22.86 270) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "20" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 3.81 0) (length 2.54)
(name "PA10_A2_D2" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 0 0) (length 2.54)
(name "PA11_A3_D3" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 -3.81 0) (length 2.54)
(name "PA8_A4_D4_SDA" (effects (font (size 1.27 1.27))))
(number "5" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 -7.62 0) (length 2.54)
(name "PA9_A5_D5_SCL" (effects (font (size 1.27 1.27))))
(number "6" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at -21.59 -11.43 0) (length 2.54)
(name "PB08_A6_D6_TX" (effects (font (size 1.27 1.27))))
(number "7" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 -11.43 180) (length 2.54)
(name "PB09_A7_D7_RX" (effects (font (size 1.27 1.27))))
(number "8" (effects (font (size 1.27 1.27))))
)
(pin unspecified line (at 20.32 -7.62 180) (length 2.54)
(name "PA7_A8_D8_SCK" (effects (font (size 1.27 1.27))))
(number "9" (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 179.07 71.12) (diameter 0) (color 0 0 0 0)
(uuid 96702e3d-509f-4a69-ac95-a9b197fc14de)
)
(wire (pts (xy 179.07 64.77) (xy 184.15 64.77))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 11ab5539-9afc-424d-a214-d23a8391cc2e)
)
(wire (pts (xy 176.53 92.71) (xy 176.53 110.49))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 259e20f0-df3e-4bdb-a78f-e183d985aa97)
)
(wire (pts (xy 115.57 71.12) (xy 124.46 71.12))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 42fa935b-b02e-446c-867d-a2a4383098a5)
)
(wire (pts (xy 115.57 66.04) (xy 115.57 58.42))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 5d9d222f-5c52-4809-8ee3-d095863a93b7)
)
(wire (pts (xy 119.38 67.31) (xy 119.38 68.58))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 78ce755e-88f6-4ea7-9add-f1f118d33ce9)
)
(wire (pts (xy 166.37 78.74) (xy 179.07 78.74))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 820fc704-964e-4f67-8158-e70a72bf2047)
)
(wire (pts (xy 119.38 90.17) (xy 124.46 90.17))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 88d19543-1cfe-4048-b1fa-b6ff80cefb7c)
)
(wire (pts (xy 173.99 87.63) (xy 182.88 87.63))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 9aee4852-816c-460e-b2ee-62fcf3d5cc6e)
)
(wire (pts (xy 166.37 86.36) (xy 173.99 86.36))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 9c196354-4c24-4cfb-9763-670e19c76460)
)
(wire (pts (xy 179.07 76.2) (xy 179.07 71.12))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 9eed885e-c80c-4839-a800-4fa88c39e5c3)
)
(wire (pts (xy 166.37 71.12) (xy 179.07 71.12))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid a2c04bf2-9ffb-49fd-a19d-c8bf1403cb15)
)
(wire (pts (xy 115.57 58.42) (xy 120.65 58.42))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid a9121f20-eef1-4824-a5a7-97be54cf7b03)
)
(wire (pts (xy 179.07 71.12) (xy 179.07 64.77))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid c87486aa-c692-42aa-9b06-8f3cc9614c1d)
)
(wire (pts (xy 166.37 90.17) (xy 182.88 90.17))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid cde43b1a-0a41-4215-9117-85257cc02e6c)
)
(wire (pts (xy 119.38 110.49) (xy 119.38 90.17))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid d7b056b3-9bc6-4e05-a3b4-b63cb4b0295d)
)
(wire (pts (xy 119.38 68.58) (xy 115.57 68.58))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid ee72e577-6a60-4cf3-8fdb-1a6ff0fae0c0)
)
(wire (pts (xy 124.46 67.31) (xy 119.38 67.31))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid f43e0a7c-e10c-4a2a-966d-dcfa64c28cc0)
)
(wire (pts (xy 173.99 86.36) (xy 173.99 87.63))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid f544b0d7-a59d-4d16-874a-887827d61d81)
)
(wire (pts (xy 176.53 110.49) (xy 119.38 110.49))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid fdc06068-6d59-4d1e-ab39-15e6bceaed6b)
)
(wire (pts (xy 182.88 92.71) (xy 176.53 92.71))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid fee40df5-d1e4-4668-80b3-be2cfdc5df44)
)
(symbol (lib_id "Seeeduino XIAO:SeeeduinoXIAO") (at 146.05 78.74 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 09be1eba-cac4-4f6b-8eb4-87d819840140)
(property "Reference" "U1" (id 0) (at 150.6094 99.6934 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "SeeeduinoXIAO" (id 1) (at 150.6094 102.2303 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Seeeduino XIAO:Seeeduino XIAO-MOUDLE14P-2.54-21X17.8MM" (id 2) (at 137.16 73.66 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 137.16 73.66 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid fa8ff7bd-280a-430a-90ce-4566eeaa888e))
(pin "10" (uuid bafa1981-6fa5-42d5-a6e9-bf4d117a6565))
(pin "11" (uuid e163a356-5a18-4550-b2f8-04426edfa537))
(pin "12" (uuid 645209ba-000d-4161-8079-a90c48f21972))
(pin "13" (uuid de14dca8-bf3f-497e-816c-11f9cf81219b))
(pin "14" (uuid a4692f34-d532-4459-88e3-b0550c8a2eee))
(pin "15" (uuid 496a7bd6-ee6c-43c8-8ebc-939c96d755f3))
(pin "16" (uuid 1284f43c-755b-46d4-8f24-a61527f2e347))
(pin "17" (uuid 50f5671f-9d26-467f-bcde-f5b9d8fc54df))
(pin "18" (uuid d372df45-d835-49ee-b010-2ee64c196b50))
(pin "19" (uuid 8dfae23e-614b-46bb-bdae-f341197dce2f))
(pin "2" (uuid 97a9a8d0-7188-48a2-8c2f-46c8abe86dd6))
(pin "20" (uuid bec1f1dd-62f3-4b41-b807-7d06f8d6cd2a))
(pin "3" (uuid 6417cc3b-7235-4a80-a2c1-d13faf64b1d7))
(pin "4" (uuid 9ed46697-310b-4a89-9326-ff97b2100523))
(pin "5" (uuid c40c67a9-b68b-499e-ab8a-2d082d8d0b7d))
(pin "6" (uuid 17515fd1-db3b-40e0-9d89-f8de0bd2313d))
(pin "7" (uuid 6be5e90f-7745-4b4f-a246-cdf69a470372))
(pin "8" (uuid ad72a37e-a57a-4468-bc8e-2de8107460b1))
(pin "9" (uuid 7b7ef057-2eaa-4d86-af51-083f44f7903a))
)
(symbol (lib_id "power:GND") (at 120.65 58.42 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 21b4a75e-d3ec-42e3-bfa0-19b1fa944cd6)
(property "Reference" "#PWR0104" (id 0) (at 120.65 64.77 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 120.65 62.8634 0))
(property "Footprint" "" (id 2) (at 120.65 58.42 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 120.65 58.42 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid ab5f9a41-c6e0-47f7-af1b-c452558850d3))
)
(symbol (lib_id "power:GND") (at 184.15 64.77 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 523cd503-035b-4793-9ef9-a9ffc5f08847)
(property "Reference" "#PWR0102" (id 0) (at 184.15 71.12 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Value" "GND" (id 1) (at 184.15 69.2134 0))
(property "Footprint" "" (id 2) (at 184.15 64.77 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "" (id 3) (at 184.15 64.77 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 8a4098fa-48a9-49ec-80d8-dec1073eed68))
)
(symbol (lib_id "Device:Speaker") (at 184.15 76.2 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 950312c9-0e5c-4da0-91fd-b7338a801460)
(property "Reference" "LS1" (id 0) (at 188.468 76.6353 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "Speaker" (id 1) (at 188.468 79.1722 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Connector_Wire:SolderWire-1sqmm_1x02_P5.4mm_D1.4mm_OD2.7mm" (id 2) (at 184.15 81.28 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 183.896 77.47 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid cb10816e-6377-4a4b-b040-bd2614edb9b9))
(pin "2" (uuid 10868984-bd98-4ad9-8184-0bb81f331140))
)
(symbol (lib_id "Connector:AudioJack3") (at 110.49 68.58 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid e3e5b867-9078-406e-a424-61c9632af7f6)
(property "Reference" "J1" (id 0) (at 108.585 61.0702 0))
(property "Value" "AudioJack3" (id 1) (at 108.585 63.6071 0))
(property "Footprint" "Connector_Audio:Jack_3.5mm_PJ320D_Horizontal" (id 2) (at 110.49 68.58 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 110.49 68.58 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "R" (uuid fabe6c60-bf57-479b-a5cc-b51e4ab4f9ab))
(pin "S" (uuid 8df3a703-5274-4af0-8e99-d46d16dd32b2))
(pin "T" (uuid 44db45bf-8f3e-43c3-a852-3c688a22c4a9))
)
(symbol (lib_id "Connector_Generic:Conn_01x03") (at 187.96 90.17 0) (mirror x) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid ea989905-0b3c-45d4-b789-9cb8ba99b588)
(property "Reference" "J?" (id 0) (at 187.96 82.6602 0))
(property "Value" "Conn_01x03" (id 1) (at 187.96 85.1971 0))
(property "Footprint" "Connector_Wire:SolderWire-0.5sqmm_1x03_P4.8mm_D0.9mm_OD2.3mm" (id 2) (at 187.96 90.17 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "Datasheet" "~" (id 3) (at 187.96 90.17 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid a7cb4827-649e-4a1f-b100-7bc64f6b49b3))
(pin "2" (uuid 8592b91a-c3a1-459e-a8f5-48b29ec88b66))
(pin "3" (uuid 8dedf67b-e6ba-4f01-84b9-4abd8a8a6d94))
)
(sheet_instances
(path "/" (page "1"))
)
(symbol_instances
(path "/523cd503-035b-4793-9ef9-a9ffc5f08847"
(reference "#PWR0102") (unit 1) (value "GND") (footprint "")
)
(path "/21b4a75e-d3ec-42e3-bfa0-19b1fa944cd6"
(reference "#PWR0104") (unit 1) (value "GND") (footprint "")
)
(path "/e3e5b867-9078-406e-a424-61c9632af7f6"
(reference "J1") (unit 1) (value "AudioJack3") (footprint "Connector_Audio:Jack_3.5mm_PJ320D_Horizontal")
)
(path "/ea989905-0b3c-45d4-b789-9cb8ba99b588"
(reference "J?") (unit 1) (value "Conn_01x03") (footprint "Connector_Wire:SolderWire-0.5sqmm_1x03_P4.8mm_D0.9mm_OD2.3mm")
)
(path "/950312c9-0e5c-4da0-91fd-b7338a801460"
(reference "LS1") (unit 1) (value "Speaker") (footprint "Connector_Wire:SolderWire-1sqmm_1x02_P5.4mm_D1.4mm_OD2.7mm")
)
(path "/09be1eba-cac4-4f6b-8eb4-87d819840140"
(reference "U1") (unit 1) (value "SeeeduinoXIAO") (footprint "Seeeduino XIAO:Seeeduino XIAO-MOUDLE14P-2.54-21X17.8MM")
)
)
)

3
pcb/sym-lib-table Normal file
View File

@ -0,0 +1,3 @@
(sym_lib_table
(lib (name "Seeeduino XIAO")(type "Legacy")(uri "/home/dartcatcher/.var/app/org.kicad.KiCad/data/kicad/6.0/symbols/Seeeduino XIAO.lib")(options "")(descr ""))
)

View File

@ -1,5 +1,6 @@
#include <Arduino.h> #include <Arduino.h>
#include "polybuzzer.h" #include "polybuzzer.h"
#include "equal_temperament.h"
PolyBuzzer::PolyBuzzer(uint8_t pin) { PolyBuzzer::PolyBuzzer(uint8_t pin) {
for (int i = 0; i < POLYBUZZER_MAX_TONES; i++) { for (int i = 0; i < POLYBUZZER_MAX_TONES; i++) {
@ -12,10 +13,10 @@ PolyBuzzer::PolyBuzzer(uint8_t pin) {
void PolyBuzzer::update() { void PolyBuzzer::update() {
for (int i = 0; i < POLYBUZZER_MAX_TONES; i++) { for (int i = 0; i < POLYBUZZER_MAX_TONES; i++) {
if (tones[i]) { if (this->tones[i]) {
if (playing != tones[i]) { if (this->playing != this->tones[i]) {
playing = tones[i]; this->playing = this->tones[i];
tone(this->pin, tones[i]); tone(this->pin, this->tones[i]);
} }
return; return;
} }
@ -25,16 +26,15 @@ void PolyBuzzer::update() {
} }
void PolyBuzzer::Tone(int slot, unsigned int frequency) { void PolyBuzzer::Tone(int slot, unsigned int frequency) {
tones[slot] = frequency; this->tones[slot] = frequency;
this->update(); this->update();
} }
void PolyBuzzer::Note(int slot, int note) { void PolyBuzzer::Note(int slot, uint8_t note) {
unsigned int frequency = 8.18; // MIDI note 0 if (note > 127) {
for (int i = 0; i < note; i++) { note = 127;
frequency *= 1.0594630943592953; // equal temperament half step
} }
this->Tone(slot, frequency); this->Tone(slot, equalTemperamentNote[note]);
} }
void PolyBuzzer::NoTone(int slot) { void PolyBuzzer::NoTone(int slot) {

View File

@ -15,6 +15,6 @@ public:
PolyBuzzer(uint8_t pin); PolyBuzzer(uint8_t pin);
void update(); void update();
void Tone(int slot, unsigned int frequency); void Tone(int slot, unsigned int frequency);
void Note(int slot, int note); void Note(int slot, uint8_t note);
void NoTone(int slot); void NoTone(int slot);
}; };

View File

@ -27,7 +27,6 @@
#define MILLISECOND 1 #define MILLISECOND 1
#define SECOND (1 * MILLISECOND) #define SECOND (1 * MILLISECOND)
bool keyboard = true;
bool trs = false; // true if a TRS plug is in a TRRS jack bool trs = false; // true if a TRS plug is in a TRRS jack
uint16_t iambicDelay = 80 * MILLISECOND; uint16_t iambicDelay = 80 * MILLISECOND;
Bounce dit = Bounce(); Bounce dit = Bounce();
@ -69,7 +68,7 @@ void setup() {
void setLED() { void setLED() {
static bool beepin = false; static bool beepin = false;
int beat = millis() / iambicDelay; int beat = millis() / iambicDelay;
bool on = keyboard; // If we're not in intro, display status of keyboard bool on = adapter.KeyboardMode(); // If we're not in intro, display status of keyboard
if (beat < 16) { if (beat < 16) {
on = HELLO_BITS & (1 << (15-beat)); on = HELLO_BITS & (1 << (15-beat));