Compare commits
11 Commits
Author | SHA1 | Date |
---|---|---|
Neale Pickett | bc1f181963 | |
Neale Pickett | 0f59df655f | |
Neale Pickett | d1066752be | |
Neale Pickett | 533dd49bdc | |
Neale Pickett | 36cc138443 | |
Neale Pickett | 31bfadd71d | |
Neale Pickett | b04428276d | |
Neale Pickett | e95233c120 | |
Neale Pickett | 1f61b21051 | |
Neale Pickett | 94b4c7f917 | |
Neale Pickett | 9aed973bb5 |
|
@ -1,2 +1,3 @@
|
|||
build/
|
||||
case/adapter-case.stl
|
||||
pcb/pcb-backups
|
||||
|
|
6
Makefile
6
Makefile
|
@ -5,8 +5,12 @@ ARDUINO_DIR = /app/Arduino
|
|||
BUILDER = flatpak run --command ${ARDUINO_DIR}/arduino-builder cc.arduino.arduinoide
|
||||
|
||||
default: build/vail-adapter.qtpy.uf2 build/vail-adapter.xiao.uf2
|
||||
install: build/vail-adapter.xiao.uf2
|
||||
|
||||
install: install-xiao
|
||||
install-xiao: build/vail-adapter.xiao.uf2
|
||||
./install.sh $< $(UF2_MOUNT)
|
||||
install-qtpy: build/vail-adapter.qtpy.uf2
|
||||
./install.sh $< /mnt/chromeos/removable/QTPY_BOOT
|
||||
|
||||
clean:
|
||||
rm -rf build/*
|
||||
|
|
14
README.md
14
README.md
|
@ -13,8 +13,10 @@ License: MIT
|
|||
|
||||
* Lets you key even if you move focus to another window
|
||||
* Works with [Vail](https://vail.woozle.org/)
|
||||
* Works with [VBand](https://hamradio.solutions/vband/)
|
||||
* Optional sidetone generator for straight keying, which helps with latency
|
||||
* Works with [VBand](https://hamradio.solutions/vband/), but the window has to remain focused
|
||||
* Optional sidetone generator, which helps with latency
|
||||
* Implements all nine keyer modes from Vail, in the adapter, so you lunatics can try to key at 50WPM with no latency issues
|
||||
* Plays received signals in the adapter, so you can turn off your computer speaker
|
||||
* Free firmware updates for life
|
||||
* Can be wired up in about 5 minutes
|
||||
|
||||
|
@ -30,10 +32,10 @@ License: MIT
|
|||
|
||||
Things I plan to add:
|
||||
|
||||
* Local keyer logic for Ultimatic, Iambic, etc.
|
||||
* Local keyer generating sidetones
|
||||
* Vail site sends MIDI note events to the adapter,
|
||||
so you don't need your computer speaker on to listen.
|
||||
* [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
|
||||
|
|
11
adapter.cpp
11
adapter.cpp
|
@ -10,9 +10,11 @@
|
|||
#define SECOND (1000 * MILLISECOND)
|
||||
|
||||
VailAdapter::VailAdapter(unsigned int PiezoPin) {
|
||||
this->keyboardMode = true;
|
||||
this->buzzer = new PolyBuzzer(PiezoPin);
|
||||
this->txToneFrequency = 440;
|
||||
}
|
||||
|
||||
bool VailAdapter::KeyboardMode() {
|
||||
return this->keyboardMode;
|
||||
}
|
||||
|
||||
// Send a MIDI Key Event
|
||||
|
@ -33,7 +35,7 @@ void VailAdapter::keyboardKey(uint8_t key, bool down) {
|
|||
|
||||
// Begin transmitting
|
||||
void VailAdapter::BeginTx() {
|
||||
this->buzzer->Tone(0, this->txToneFrequency);
|
||||
this->buzzer->Note(0, this->txNote);
|
||||
if (this->keyboardMode) {
|
||||
this->keyboardKey(KEY_LEFT_CTRL, true);
|
||||
} else {
|
||||
|
@ -102,6 +104,9 @@ void VailAdapter::HandleMIDI(midiEventPacket_t event) {
|
|||
this->keyer->SetDitDuration(this->ditDuration);
|
||||
}
|
||||
break;
|
||||
case 2: // set tx note
|
||||
this->txNote = event.byte3;
|
||||
break;
|
||||
}
|
||||
break;
|
||||
case 0xC0: // Program Change
|
||||
|
|
|
@ -6,9 +6,9 @@
|
|||
|
||||
class VailAdapter: public Transmitter {
|
||||
private:
|
||||
unsigned int txToneFrequency;
|
||||
unsigned int txNote = 69;
|
||||
unsigned int ditDuration = 100;
|
||||
bool keyboardMode = false;
|
||||
bool keyboardMode = true;
|
||||
Keyer *keyer = NULL;
|
||||
PolyBuzzer *buzzer = NULL;
|
||||
|
||||
|
@ -18,6 +18,7 @@ private:
|
|||
|
||||
public:
|
||||
VailAdapter(unsigned int PiezoPin);
|
||||
bool KeyboardMode();
|
||||
void HandlePaddle(Paddle key, bool pressed);
|
||||
void HandleMIDI(midiEventPacket_t event);
|
||||
void BeginTx();
|
||||
|
|
|
@ -11,8 +11,8 @@ Then compile and upload the sketch.
|
|||
|
||||
## Works with no source code changes
|
||||
|
||||
* Seeeduino Xiao
|
||||
* Adafruit Qt Py
|
||||
* Seeeduino Xiao SAMD21
|
||||
* Adafruit Qt Py SAMD21
|
||||
|
||||
## Known to work with source code changes
|
||||
|
||||
|
@ -24,6 +24,18 @@ Then compile and upload the sketch.
|
|||
* Adafruit GEMMA M0
|
||||
* Adafruit Feather M0
|
||||
|
||||
## Will Not Work!
|
||||
|
||||
The RP2040 chip will not work, because it lacks a USB MCU,
|
||||
needed by the MIDIUSB library.
|
||||
I'm listing specific devices here
|
||||
in the hopes that seeing them crossed out will prevent people from
|
||||
making a purchasing mistake!
|
||||
|
||||
* ~~Seeeduino Xiao RP2040~~ Will not work!
|
||||
* ~~Adafruit Qt Pi RP2040~~ Will not work!
|
||||
* ~~Any RP2040 Device~~ Will not work!
|
||||
|
||||
|
||||
# Advanced Wiring
|
||||
|
||||
|
|
|
@ -1,10 +1,10 @@
|
|||
# Easy Installation
|
||||
|
||||
1. Get a Seeeduino XIAO
|
||||
2. Download the most recent xiao firmware from
|
||||
1. Get a Seeeduino XIAO SAMD21
|
||||
2. Download the most recent XIAO SAMD21 firmware from
|
||||
[releases](https://github.com/nealey/vail-adapter/releases)
|
||||
3. [Enter bootloader mode](https://wiki.seeedstudio.com/Seeeduino-XIAO/#enter-bootloader-mode)
|
||||
4. Copy the firmware onto the XIAO
|
||||
4. Copy the firmware onto the XIAO SAMD21
|
||||
|
||||
[Wideo walkthrough of firmware upload](https://www.youtube.com/watch?v=IgOdkUe5SMY) (3:07)
|
||||
|
||||
|
|
|
@ -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
|
||||
};
|
File diff suppressed because it is too large
Load Diff
|
@ -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 ""))
|
||||
)
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,83 @@
|
|||
{
|
||||
"board": {
|
||||
"active_layer": 33,
|
||||
"active_layer_preset": "",
|
||||
"auto_track_width": true,
|
||||
"hidden_netclasses": [],
|
||||
"hidden_nets": [],
|
||||
"high_contrast_mode": 0,
|
||||
"net_color_mode": 1,
|
||||
"opacity": {
|
||||
"images": 0.6,
|
||||
"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
|
||||
},
|
||||
"git": {
|
||||
"repo_password": "",
|
||||
"repo_type": "",
|
||||
"repo_username": "",
|
||||
"ssh_key": ""
|
||||
},
|
||||
"meta": {
|
||||
"filename": "pcb.kicad_prl",
|
||||
"version": 3
|
||||
},
|
||||
"project": {
|
||||
"files": []
|
||||
}
|
||||
}
|
|
@ -0,0 +1,652 @@
|
|||
{
|
||||
"board": {
|
||||
"3dviewports": [],
|
||||
"design_settings": {
|
||||
"defaults": {
|
||||
"apply_defaults_to_fp_fields": false,
|
||||
"apply_defaults_to_fp_shapes": false,
|
||||
"apply_defaults_to_fp_text": false,
|
||||
"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",
|
||||
"connection_width": "warning",
|
||||
"copper_edge_clearance": "error",
|
||||
"copper_sliver": "warning",
|
||||
"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": "error",
|
||||
"footprint_symbol_mismatch": "warning",
|
||||
"footprint_type_mismatch": "error",
|
||||
"hole_clearance": "error",
|
||||
"hole_near_hole": "error",
|
||||
"invalid_outline": "error",
|
||||
"isolated_copper": "warning",
|
||||
"item_on_disabled_layer": "error",
|
||||
"items_not_allowed": "error",
|
||||
"length_out_of_range": "error",
|
||||
"lib_footprint_issues": "warning",
|
||||
"lib_footprint_mismatch": "warning",
|
||||
"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_edge_clearance": "warning",
|
||||
"silk_over_copper": "warning",
|
||||
"silk_overlap": "warning",
|
||||
"skew_out_of_range": "error",
|
||||
"solder_mask_bridge": "error",
|
||||
"starved_thermal": "error",
|
||||
"text_height": "warning",
|
||||
"text_thickness": "warning",
|
||||
"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_connection": 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_resolved_spokes": 2,
|
||||
"min_silk_clearance": 0.0,
|
||||
"min_text_height": 0.7999999999999999,
|
||||
"min_text_thickness": 0.08,
|
||||
"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,
|
||||
"solder_mask_to_copper_clearance": 0.0,
|
||||
"use_height_for_length_calcs": true
|
||||
},
|
||||
"teardrop_options": [
|
||||
{
|
||||
"td_onpadsmd": true,
|
||||
"td_onroundshapesonly": false,
|
||||
"td_ontrackend": false,
|
||||
"td_onviapad": true
|
||||
}
|
||||
],
|
||||
"teardrop_parameters": [
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_round_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_rect_shape",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
},
|
||||
{
|
||||
"td_allow_use_two_tracks": true,
|
||||
"td_curve_segcount": 0,
|
||||
"td_height_ratio": 1.0,
|
||||
"td_length_ratio": 0.5,
|
||||
"td_maxheight": 2.0,
|
||||
"td_maxlen": 1.0,
|
||||
"td_on_pad_in_zone": false,
|
||||
"td_target_name": "td_track_end",
|
||||
"td_width_to_size_filter_ratio": 0.9
|
||||
}
|
||||
],
|
||||
"track_widths": [
|
||||
0.0
|
||||
],
|
||||
"tuning_pattern_settings": {
|
||||
"diff_pair_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 1.0
|
||||
},
|
||||
"diff_pair_skew_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
},
|
||||
"single_track_defaults": {
|
||||
"corner_radius_percentage": 80,
|
||||
"corner_style": 1,
|
||||
"max_amplitude": 1.0,
|
||||
"min_amplitude": 0.2,
|
||||
"single_sided": false,
|
||||
"spacing": 0.6
|
||||
}
|
||||
},
|
||||
"via_dimensions": [
|
||||
{
|
||||
"diameter": 0.0,
|
||||
"drill": 0.0
|
||||
}
|
||||
],
|
||||
"zones_allow_external_fillets": false,
|
||||
"zones_use_no_outline": true
|
||||
},
|
||||
"ipc2581": {
|
||||
"dist": "",
|
||||
"distpn": "",
|
||||
"internal_id": "",
|
||||
"mfg": "",
|
||||
"mpn": ""
|
||||
},
|
||||
"layer_presets": [],
|
||||
"viewports": []
|
||||
},
|
||||
"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",
|
||||
"conflicting_netclasses": "error",
|
||||
"different_unit_footprint": "error",
|
||||
"different_unit_net": "error",
|
||||
"duplicate_reference": "error",
|
||||
"duplicate_sheet_names": "error",
|
||||
"endpoint_off_grid": "warning",
|
||||
"extra_units": "error",
|
||||
"global_label_dangling": "warning",
|
||||
"hier_label_mismatch": "error",
|
||||
"label_dangling": "error",
|
||||
"lib_symbol_issues": "warning",
|
||||
"missing_bidi_pin": "warning",
|
||||
"missing_input_pin": "warning",
|
||||
"missing_power_pin": "error",
|
||||
"missing_unit": "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",
|
||||
"simulation_model_issue": "ignore",
|
||||
"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,
|
||||
"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
|
||||
},
|
||||
{
|
||||
"bus_width": 12,
|
||||
"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",
|
||||
"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
|
||||
},
|
||||
{
|
||||
"bus_width": 12,
|
||||
"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",
|
||||
"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
|
||||
}
|
||||
],
|
||||
"meta": {
|
||||
"version": 3
|
||||
},
|
||||
"net_colors": null,
|
||||
"netclass_assignments": null,
|
||||
"netclass_patterns": [
|
||||
{
|
||||
"netclass": "Power",
|
||||
"pattern": "GND"
|
||||
}
|
||||
]
|
||||
},
|
||||
"pcbnew": {
|
||||
"last_paths": {
|
||||
"gencad": "",
|
||||
"idf": "",
|
||||
"netlist": "",
|
||||
"plot": "",
|
||||
"pos_files": "",
|
||||
"specctra_dsn": "",
|
||||
"step": "",
|
||||
"svg": "",
|
||||
"vrml": ""
|
||||
},
|
||||
"page_layout_descr_file": ""
|
||||
},
|
||||
"schematic": {
|
||||
"annotate_start_num": 0,
|
||||
"bom_fmt_presets": [],
|
||||
"bom_fmt_settings": {
|
||||
"field_delimiter": ",",
|
||||
"keep_line_breaks": false,
|
||||
"keep_tabs": false,
|
||||
"name": "CSV",
|
||||
"ref_delimiter": ",",
|
||||
"ref_range_delimiter": "",
|
||||
"string_delimiter": "\""
|
||||
},
|
||||
"bom_presets": [],
|
||||
"bom_settings": {
|
||||
"exclude_dnp": false,
|
||||
"fields_ordered": [
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Reference",
|
||||
"name": "Reference",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": true,
|
||||
"label": "Value",
|
||||
"name": "Value",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Datasheet",
|
||||
"name": "Datasheet",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Footprint",
|
||||
"name": "Footprint",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": false,
|
||||
"label": "Qty",
|
||||
"name": "${QUANTITY}",
|
||||
"show": true
|
||||
},
|
||||
{
|
||||
"group_by": true,
|
||||
"label": "DNP",
|
||||
"name": "${DNP}",
|
||||
"show": true
|
||||
}
|
||||
],
|
||||
"filter_string": "",
|
||||
"group_symbols": true,
|
||||
"name": "Grouped By Value",
|
||||
"sort_asc": true,
|
||||
"sort_field": "Reference"
|
||||
},
|
||||
"connection_grid_size": 50.0,
|
||||
"drawing": {
|
||||
"dashed_lines_dash_length_ratio": 12.0,
|
||||
"dashed_lines_gap_length_ratio": 3.0,
|
||||
"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,
|
||||
"operating_point_overlay_i_precision": 3,
|
||||
"operating_point_overlay_i_range": "~A",
|
||||
"operating_point_overlay_v_precision": 3,
|
||||
"operating_point_overlay_v_range": "~V",
|
||||
"overbar_offset_ratio": 1.23,
|
||||
"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_current_sheet_as_root": false,
|
||||
"spice_external_command": "spice \"%I\"",
|
||||
"spice_model_current_sheet_as_root": true,
|
||||
"spice_save_all_currents": false,
|
||||
"spice_save_all_dissipations": false,
|
||||
"spice_save_all_voltages": false,
|
||||
"subpart_first_id": 65,
|
||||
"subpart_id_separator": 0
|
||||
},
|
||||
"sheets": [
|
||||
[
|
||||
"bc199109-bc84-4207-bd79-7d43ff8dd6f2",
|
||||
"Root"
|
||||
]
|
||||
],
|
||||
"text_variables": {}
|
||||
}
|
File diff suppressed because it is too large
Load Diff
|
@ -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")
|
||||
)
|
||||
)
|
||||
)
|
|
@ -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 ""))
|
||||
)
|
|
@ -1,5 +1,6 @@
|
|||
#include <Arduino.h>
|
||||
#include "polybuzzer.h"
|
||||
#include "equal_temperament.h"
|
||||
|
||||
PolyBuzzer::PolyBuzzer(uint8_t pin) {
|
||||
for (int i = 0; i < POLYBUZZER_MAX_TONES; i++) {
|
||||
|
@ -12,10 +13,10 @@ PolyBuzzer::PolyBuzzer(uint8_t pin) {
|
|||
|
||||
void PolyBuzzer::update() {
|
||||
for (int i = 0; i < POLYBUZZER_MAX_TONES; i++) {
|
||||
if (tones[i]) {
|
||||
if (playing != tones[i]) {
|
||||
playing = tones[i];
|
||||
tone(this->pin, tones[i]);
|
||||
if (this->tones[i]) {
|
||||
if (this->playing != this->tones[i]) {
|
||||
this->playing = this->tones[i];
|
||||
tone(this->pin, this->tones[i]);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
@ -25,16 +26,15 @@ void PolyBuzzer::update() {
|
|||
}
|
||||
|
||||
void PolyBuzzer::Tone(int slot, unsigned int frequency) {
|
||||
tones[slot] = frequency;
|
||||
this->tones[slot] = frequency;
|
||||
this->update();
|
||||
}
|
||||
|
||||
void PolyBuzzer::Note(int slot, int note) {
|
||||
unsigned int frequency = 8.18; // MIDI note 0
|
||||
for (int i = 0; i < note; i++) {
|
||||
frequency *= 1.0594630943592953; // equal temperament half step
|
||||
void PolyBuzzer::Note(int slot, uint8_t note) {
|
||||
if (note > 127) {
|
||||
note = 127;
|
||||
}
|
||||
this->Tone(slot, frequency);
|
||||
this->Tone(slot, equalTemperamentNote[note]);
|
||||
}
|
||||
|
||||
void PolyBuzzer::NoTone(int slot) {
|
||||
|
|
|
@ -15,6 +15,6 @@ public:
|
|||
PolyBuzzer(uint8_t pin);
|
||||
void update();
|
||||
void Tone(int slot, unsigned int frequency);
|
||||
void Note(int slot, int note);
|
||||
void Note(int slot, uint8_t note);
|
||||
void NoTone(int slot);
|
||||
};
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
#define MILLISECOND 1
|
||||
#define SECOND (1 * MILLISECOND)
|
||||
|
||||
bool keyboard = true;
|
||||
bool trs = false; // true if a TRS plug is in a TRRS jack
|
||||
uint16_t iambicDelay = 80 * MILLISECOND;
|
||||
Bounce dit = Bounce();
|
||||
|
@ -69,7 +68,7 @@ void setup() {
|
|||
void setLED() {
|
||||
static bool beepin = false;
|
||||
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) {
|
||||
on = HELLO_BITS & (1 << (15-beat));
|
||||
|
|
Loading…
Reference in New Issue