added random chance, some progress on pcb

This commit is contained in:
--global
2023-02-12 00:58:04 +02:00
parent 6b190610f2
commit 6cc7bccc9e
9 changed files with 3191 additions and 18 deletions

1
.gitignore vendored
View File

@ -5,3 +5,4 @@ Hardware/gtoe/fp-info-cache
Hardware/gtoe/#auto_saved_files# Hardware/gtoe/#auto_saved_files#
README.MD.backup README.MD.backup
Hardware/gtoe/_autosave-gtoe.kicad_pcb

View File

@ -1,3 +1,4 @@
(fp_lib_table (fp_lib_table
(lib (name "SDD1360 I2C")(type "KiCad")(uri "/Users/oleksiy/Downloads/KiCad-I2C-SSD1306-128x64/library/SSD1306.pretty")(options "")(descr "")) (lib (name "SDD1360 I2C")(type "KiCad")(uri "/Users/oleksiy/Downloads/KiCad-I2C-SSD1306-128x64/library/SSD1306.pretty")(options "")(descr ""))
(lib (name "gtoe")(type "KiCad")(uri "${KIPRJMOD}/gtoe.pretty")(options "")(descr ""))
) )

File diff suppressed because it is too large Load Diff

View File

@ -1,7 +1,7 @@
{ {
"board": { "board": {
"active_layer": 0, "active_layer": 40,
"active_layer_preset": "All Layers", "active_layer_preset": "",
"auto_track_width": true, "auto_track_width": true,
"hidden_nets": [], "hidden_nets": [],
"high_contrast_mode": 0, "high_contrast_mode": 0,
@ -62,7 +62,7 @@
35, 35,
36 36
], ],
"visible_layers": "fffffff_ffffffff", "visible_layers": "ffd7355_ffffffff",
"zone_display_mode": 0 "zone_display_mode": 0
}, },
"meta": { "meta": {

View File

@ -2,26 +2,135 @@
"board": { "board": {
"design_settings": { "design_settings": {
"defaults": { "defaults": {
"board_outline_line_width": 0.1, "board_outline_line_width": 0.09999999999999999,
"copper_line_width": 0.2, "copper_line_width": 0.19999999999999998,
"copper_text_italic": false,
"copper_text_size_h": 1.5, "copper_text_size_h": 1.5,
"copper_text_size_v": 1.5, "copper_text_size_v": 1.5,
"copper_text_thickness": 0.3, "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_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.762,
"height": 1.524,
"width": 1.524
},
"silk_line_width": 0.15, "silk_line_width": 0.15,
"silk_text_italic": false,
"silk_text_size_h": 1.0, "silk_text_size_h": 1.0,
"silk_text_size_v": 1.0, "silk_text_size_v": 1.0,
"silk_text_thickness": 0.15 "silk_text_thickness": 0.15,
"silk_text_upright": false,
"zones": {
"45_degree_only": false,
"min_clearance": 0.508
}
}, },
"diff_pair_dimensions": [], "diff_pair_dimensions": [
{
"gap": 0.0,
"via_gap": 0.0,
"width": 0.0
}
],
"drc_exclusions": [], "drc_exclusions": [],
"rules": { "meta": {
"min_copper_edge_clearance": 0.0, "version": 2
"solder_mask_clearance": 0.0,
"solder_mask_min_width": 0.0
}, },
"track_widths": [], "rule_severities": {
"via_dimensions": [] "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,
0.5,
1.0
],
"via_dimensions": [
{
"diameter": 0.0,
"drill": 0.0
}
],
"zones_allow_external_fillets": false,
"zones_use_no_outline": true
}, },
"layer_presets": [] "layer_presets": []
}, },

View File

@ -3127,7 +3127,7 @@
(property "Value" "BAT43" (id 1) (at 149.86 167.3224 90) (property "Value" "BAT43" (id 1) (at 149.86 167.3224 90)
(effects (font (size 1.27 1.27)) (justify left)) (effects (font (size 1.27 1.27)) (justify left))
) )
(property "Footprint" "Connector_Audio:Jack_3.5mm_QingPu_WQP-PJ398SM_Vertical_CircularHoles" (id 2) (at 147.32 166.37 0) (property "Footprint" "Diode_THT:D_T-1_P10.16mm_Horizontal" (id 2) (at 147.32 166.37 0)
(effects (font (size 1.27 1.27)) hide) (effects (font (size 1.27 1.27)) hide)
) )
(property "Datasheet" "~" (id 3) (at 147.32 166.37 0) (property "Datasheet" "~" (id 3) (at 147.32 166.37 0)
@ -3735,7 +3735,7 @@
(reference "D10") (unit 1) (value "BAT43") (footprint "Diode_THT:D_T-1_P10.16mm_Horizontal") (reference "D10") (unit 1) (value "BAT43") (footprint "Diode_THT:D_T-1_P10.16mm_Horizontal")
) )
(path "/afc078cf-7bf0-4fa4-9cf9-0941ed6bd739" (path "/afc078cf-7bf0-4fa4-9cf9-0941ed6bd739"
(reference "D11") (unit 1) (value "BAT43") (footprint "Connector_Audio:Jack_3.5mm_QingPu_WQP-PJ398SM_Vertical_CircularHoles") (reference "D11") (unit 1) (value "BAT43") (footprint "Diode_THT:D_T-1_P10.16mm_Horizontal")
) )
(path "/070c4b9a-144a-46b4-9868-f12213eed226" (path "/070c4b9a-144a-46b4-9868-f12213eed226"
(reference "J1") (unit 1) (value "AudioJack2_SwitchT") (footprint "Connector_Audio:Jack_3.5mm_QingPu_WQP-PJ398SM_Vertical_CircularHoles") (reference "J1") (unit 1) (value "AudioJack2_SwitchT") (footprint "Connector_Audio:Jack_3.5mm_QingPu_WQP-PJ398SM_Vertical_CircularHoles")

View File

@ -0,0 +1,69 @@
(footprint "2x5-eurorack-power" (version 20211014) (generator pcbnew)
(layer "F.Cu")
(tedit 5EAC9A07)
(descr "Through hole IDC box header, 2x05, 2.54mm pitch, DIN 41651 / IEC 60603-13, double rows, https://docs.google.com/spreadsheets/d/16SsEcesNF15N3Lb4niX7dcUr-NY5_MFPQhobNuNppn4/edit#gid=0")
(tags "Through hole vertical IDC box header THT 2x05 2.54mm double row")
(attr through_hole)
(fp_text reference "REF**" (at 0 -11.18) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 4b62872f-167e-4a94-97c3-5c2039995b9a)
)
(fp_text value "Eurorack power" (at 0 11.18) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 40812787-ba6f-414e-8cc7-a883444bd88f)
)
(fp_text user "${REFERENCE}" (at -6.604 -0.508 90) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 1382685e-9122-4fde-8a24-5ee95c76e707)
)
(fp_rect (start -2.286 4.064) (end 2.286 6.096) (layer "F.Cu") (width 0.2) (fill solid) (tstamp 676a06f9-0372-49eb-a0f7-92df53feff92))
(fp_rect (start 2.286 -4.064) (end -2.286 -6.096) (layer "F.Cu") (width 0.2) (fill solid) (tstamp a9132d2f-cfa4-4791-8f92-245d2f5e5f29))
(fp_rect (start -2.286 -3.556) (end 2.286 3.556) (layer "F.Cu") (width 0.2) (fill solid) (tstamp d1d38393-9b1c-48be-846b-15d9a242b70f))
(fp_line (start -4.56 10.29) (end -4.56 -10.29) (layer "F.SilkS") (width 0.12) (tstamp 11b5ea71-2fce-4185-9e85-4f83d08167a7))
(fp_line (start -4.56 -2.05) (end -3.25 -2.05) (layer "F.SilkS") (width 0.12) (tstamp 268bb1a3-c405-496c-bb18-8cb0dac524c6))
(fp_line (start 3.25 -8.99) (end 3.25 8.99) (layer "F.SilkS") (width 0.12) (tstamp 379fc7b8-3811-410d-bb51-99464381830a))
(fp_line (start 3.25 8.99) (end -3.25 8.99) (layer "F.SilkS") (width 0.12) (tstamp 4ece52b9-b2d5-4ab3-b8d4-a4abe732071a))
(fp_line (start -3.25 2.05) (end -3.25 2.05) (layer "F.SilkS") (width 0.12) (tstamp 5a314abb-fbd7-4d93-b6e3-4a37fe8fbe92))
(fp_line (start -3.25 -8.99) (end 3.25 -8.99) (layer "F.SilkS") (width 0.12) (tstamp 7aa7a88e-4704-4a8d-aa52-ab2f79a5cc20))
(fp_line (start -3.25 2.05) (end -4.56 2.05) (layer "F.SilkS") (width 0.12) (tstamp 8083abb9-efec-4400-89d8-eb8aab45ad77))
(fp_line (start 4.56 10.29) (end -4.56 10.29) (layer "F.SilkS") (width 0.12) (tstamp b638eacf-48a5-4da5-93a7-4a4cdec1ec75))
(fp_line (start -3.25 -2.05) (end -3.25 -8.99) (layer "F.SilkS") (width 0.12) (tstamp c72c846e-3b30-4a1f-a967-16a766da234d))
(fp_line (start -3.25 8.99) (end -3.25 2.05) (layer "F.SilkS") (width 0.12) (tstamp cebfee80-9112-42fe-a753-5a1248eb7d5b))
(fp_line (start 4.56 -10.29) (end 4.56 10.29) (layer "F.SilkS") (width 0.12) (tstamp e7122811-b7c9-4748-9ea4-80cdec94702f))
(fp_line (start -4.56 -10.29) (end 4.56 -10.29) (layer "F.SilkS") (width 0.12) (tstamp f4e9c7e5-5f13-4ea7-bf43-b28c01f78126))
(fp_rect (start -2.032 -5.334) (end -4.064 -4.826) (layer "F.SilkS") (width 0.12) (fill solid) (tstamp 152bcbfe-b4d4-4b8e-b6d2-c48f4ae03faa))
(fp_rect (start 0.381 -5.334) (end -0.381 -4.826) (layer "F.SilkS") (width 0.12) (fill solid) (tstamp 4c83a7b5-afa1-4c07-a2e5-044ce0ba6619))
(fp_rect (start 4.191 -5.334) (end 2.159 -4.826) (layer "F.SilkS") (width 0.12) (fill solid) (tstamp ed10ef19-ff55-4ee5-aeb2-5d9f9708246e))
(fp_line (start -4.95 10.68) (end 4.95 10.68) (layer "F.CrtYd") (width 0.05) (tstamp 003dfe94-2403-42f4-9f58-360fa281dfdd))
(fp_line (start -4.95 -10.68) (end -4.95 10.68) (layer "F.CrtYd") (width 0.05) (tstamp 0d2cb909-206c-49aa-b582-1400cbccac3f))
(fp_line (start 4.95 10.68) (end 4.95 -10.68) (layer "F.CrtYd") (width 0.05) (tstamp 576f8eb1-40be-48d7-b114-e602fddf6aa5))
(fp_line (start 4.95 -10.68) (end -4.95 -10.68) (layer "F.CrtYd") (width 0.05) (tstamp 748beb52-36d8-481d-abba-34ad7e758cd5))
(fp_line (start -3.25 -8.99) (end 3.25 -8.99) (layer "F.Fab") (width 0.1) (tstamp 0fa80a98-a7aa-49ed-8b5f-f02d1b942521))
(fp_line (start 3.25 -8.99) (end 3.25 8.99) (layer "F.Fab") (width 0.1) (tstamp 119e075a-b068-4a51-ab00-2662c941e323))
(fp_line (start -4.45 10.18) (end -4.45 -9.18) (layer "F.Fab") (width 0.1) (tstamp 24ef5994-8594-4247-bebb-fbbb7243b0f5))
(fp_line (start -4.45 -2.05) (end -3.25 -2.05) (layer "F.Fab") (width 0.1) (tstamp 37f3754e-9e7c-4811-9704-eb35a77d5226))
(fp_line (start -4.45 -9.18) (end -3.45 -10.18) (layer "F.Fab") (width 0.1) (tstamp 55128d1d-bdf9-4b15-bf86-0ed5ee4a14ba))
(fp_line (start -3.45 -10.18) (end 4.45 -10.18) (layer "F.Fab") (width 0.1) (tstamp 853f550e-92a8-413a-9ecd-c10fe63aa3c4))
(fp_line (start -3.25 -2.05) (end -3.25 -8.99) (layer "F.Fab") (width 0.1) (tstamp 9396e21e-4964-403b-b2de-c96b6accb7ce))
(fp_line (start -3.25 2.05) (end -3.25 2.05) (layer "F.Fab") (width 0.1) (tstamp 99c60341-5645-4e34-a58c-a323643e930d))
(fp_line (start -3.25 8.99) (end -3.25 2.05) (layer "F.Fab") (width 0.1) (tstamp b1040177-47e1-4af9-9c77-cea59095791f))
(fp_line (start 4.45 -10.18) (end 4.45 10.18) (layer "F.Fab") (width 0.1) (tstamp bb20ca82-5204-4022-aa43-2cfa6bf822c2))
(fp_line (start -3.25 2.05) (end -4.45 2.05) (layer "F.Fab") (width 0.1) (tstamp c32389b5-382f-4a98-8f79-afc5d9aa3f56))
(fp_line (start 4.45 10.18) (end -4.45 10.18) (layer "F.Fab") (width 0.1) (tstamp f61d5921-12e5-4cc8-b5d5-7daebced27ac))
(fp_line (start 3.25 8.99) (end -3.25 8.99) (layer "F.Fab") (width 0.1) (tstamp f666883c-f564-457f-92db-496193af6ff3))
(pad "1" thru_hole roundrect (at -1.27 -5.08) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (roundrect_rratio 0.147059) (tstamp 74355ac3-08d5-49b6-97b7-af3d0fbf9814))
(pad "2" thru_hole circle (at 1.27 -5.08) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (tstamp abe37bb7-7815-49c4-b663-6938e2ad7d87))
(pad "3" thru_hole circle (at -1.27 -2.54) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (tstamp d6da5c94-e624-4d28-a5e2-58274310e86e))
(pad "4" thru_hole circle (at 1.27 -2.54) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (tstamp a64a3cf4-678a-49f1-bea3-fefdf0f2d951))
(pad "5" thru_hole circle (at -1.27 0) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (tstamp 315c6c5e-8b4c-4f6a-9c25-0f74a4e6f4c1))
(pad "6" thru_hole circle (at 1.27 0) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (tstamp 06b54da4-8c97-454c-81b9-d6c8534c8fae))
(pad "7" thru_hole circle (at -1.27 2.54) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (tstamp 8cc27556-6b75-43da-90de-aca0a59ce491))
(pad "8" thru_hole circle (at 1.27 2.54) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (tstamp 8245daf0-b718-423a-aab5-43c5351fa098))
(pad "9" thru_hole circle (at -1.27 5.08) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (tstamp b33d36ee-9383-4e0a-97fa-8ebe6a554b99))
(pad "10" thru_hole circle (at 1.27 5.08) (size 1.7 1.7) (drill 1) (layers *.Cu *.Mask) (tstamp 9b999f4e-48b7-48e9-9916-ad90401c64fc))
(model "${KICAD6_3DMODEL_DIR}/Connector_IDC.3dshapes/IDC-Header_2x05_P2.54mm_Vertical.wrl"
(offset (xyz -1.27 5.08 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)

View File

@ -0,0 +1,99 @@
(footprint "thonkiconn" (version 20211014) (generator pcbnew)
(layer "F.Cu")
(tedit 61FECFD2)
(descr "TRS 3.5mm, vertical, Thonkiconn, PCB mount, (http://www.qingpu-electronics.com/en/products/WQP-PJ398SM-362.html)")
(tags "WQP-PJ398SM WQP-PJ301M-12 TRS 3.5mm mono vertical jack thonkiconn qingpu")
(attr through_hole)
(fp_text reference "REF**" (at -4.03 -5.4 180) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp ff79a596-1913-4551-9f28-0f12a44b1cd7)
)
(fp_text value "thonkiconn" (at 0 -8.89 180) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 464b1a29-49d5-4249-ad50-092cf78383c9)
)
(fp_text user "KEEPOUT" (at 0 0) (layer "Cmts.User")
(effects (font (size 0.4 0.4) (thickness 0.051)))
(tstamp 7315ea65-45ec-4b6d-ae3c-5d071a2927f1)
)
(fp_text user "${REFERENCE}" (at 0 1.52 180) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp 102a9c00-053f-46d1-a5d5-528ae70b297c)
)
(fp_line (start -4.5 -4.5) (end -4.5 6) (layer "F.SilkS") (width 0.12) (tstamp 100b5f99-ad6e-406a-bbbc-244f7d189042))
(fp_line (start -0.72 -4.5) (end -4.5 -4.5) (layer "F.SilkS") (width 0.12) (tstamp 1eaaae8d-b4e4-4131-90b3-97de4c74d4ed))
(fp_line (start 4.5 6) (end 0.8 6) (layer "F.SilkS") (width 0.12) (tstamp 36cd35a5-9839-4718-8d92-225de83519d0))
(fp_line (start 4.5 -4.5) (end 0.72 -4.5) (layer "F.SilkS") (width 0.12) (tstamp 81fd6856-4251-417c-b7d0-87fc59a1eec3))
(fp_line (start 4.5 -4.5) (end 4.5 6) (layer "F.SilkS") (width 0.12) (tstamp 8e50786a-6262-48a6-8aa3-0d45ee4ebddb))
(fp_line (start -1.23 -7.65) (end -1.23 -6.85) (layer "F.SilkS") (width 0.12) (tstamp a0b6b62f-56a0-48b4-9432-afa3dfe977b9))
(fp_line (start -1.23 -7.65) (end -0.37 -7.65) (layer "F.SilkS") (width 0.12) (tstamp a117fcdd-651d-424b-8f53-beba942d51c3))
(fp_line (start -0.8 6) (end -4.5 6) (layer "F.SilkS") (width 0.12) (tstamp dc3e03c3-e1e1-43c0-a5a5-25ed70fe63c2))
(fp_circle (center 0 0) (end 1.8 0) (layer "F.SilkS") (width 0.12) (fill none) (tstamp 717c5284-d869-48f4-9891-62c3fdfe0914))
(fp_line (start 4.8 6.3) (end 4.8 -7.8) (layer "F.CrtYd") (width 0.05) (tstamp 74789408-4dcf-417c-8e0a-3256d868d63a))
(fp_line (start -4.8 6.3) (end -4.8 -7.8) (layer "F.CrtYd") (width 0.05) (tstamp 7a9773d3-207e-42fb-9250-a02b5a70b81b))
(fp_line (start 4.8 -7.8) (end -4.8 -7.8) (layer "F.CrtYd") (width 0.05) (tstamp aa48ad06-7097-4b1b-bdff-f94770fb746d))
(fp_line (start 4.8 6.3) (end -4.8 6.3) (layer "F.CrtYd") (width 0.05) (tstamp ec93b8a0-a081-4dd8-bbcf-a88864cdef88))
(fp_line (start 0 -6.48) (end 0 -4.45) (layer "F.Fab") (width 0.1) (tstamp 1a09691a-94fb-4f1c-9b4f-11fb466abbe8))
(fp_line (start 4.5 6) (end 4.5 -4.4) (layer "F.Fab") (width 0.1) (tstamp 4e4173cb-53df-408a-95a6-89de39d88a5b))
(fp_line (start 4.5 -4.45) (end -4.5 -4.45) (layer "F.Fab") (width 0.1) (tstamp 5ad77acd-08d1-4c0f-8930-9f31dd603090))
(fp_line (start 4.5 6) (end -4.5 6) (layer "F.Fab") (width 0.1) (tstamp 87120475-974a-4d70-9dbf-33e4d8e4177e))
(fp_line (start -4.5 6) (end -4.5 -4.4) (layer "F.Fab") (width 0.1) (tstamp ba5783c7-f7ef-45ab-a8a5-e5f697c2dfe0))
(fp_circle (center 0 0) (end 1.8 0) (layer "F.Fab") (width 0.1) (fill none) (tstamp 26bdea80-10b0-4fb9-ae7b-b2c233c959f0))
(pad "S" thru_hole rect (at 0 -6.48 180) (size 1.93 1.83) (drill 1.22) (layers *.Cu *.Mask) (tstamp 0b67ef7d-aa07-468b-8b69-dc9882e360cd))
(pad "T" thru_hole circle (at 0 4.92 180) (size 2.13 2.13) (drill 1.43) (layers *.Cu *.Mask) (tstamp 4f738bd3-724e-4772-9327-aecaf3c20e94))
(pad "TN" thru_hole circle (at 0 -3.38 180) (size 2.13 2.13) (drill 1.42) (layers *.Cu *.Mask) (tstamp d4c5c408-d503-4605-8374-886fbb668ae0))
(zone (net 0) (net_name "") (layer "F.Cu") (tstamp 3f12b4ee-7fc8-413a-b4de-1610080175dc) (hatch full 0.508)
(connect_pads (clearance 0))
(min_thickness 0.254)
(keepout (tracks not_allowed) (vias not_allowed) (pads not_allowed) (copperpour not_allowed) (footprints not_allowed))
(fill (thermal_gap 0.508) (thermal_bridge_width 0.508))
(polygon
(pts
(xy 1.505141 0)
(xy 1.48493 -0.245829)
(xy 1.424841 -0.485055)
(xy 1.326486 -0.711256)
(xy 1.192508 -0.918355)
(xy 1.026504 -1.10079)
(xy 0.832932 -1.253664)
(xy 0.616992 -1.372869)
(xy 0.384482 -1.455206)
(xy 0.141646 -1.498461)
(xy -0.104993 -1.501475)
(xy -0.348813 -1.464165)
(xy -0.583266 -1.387534)
(xy -0.802054 -1.27364)
(xy -0.999303 -1.125542)
(xy -1.169714 -0.947216)
(xy -1.308712 -0.743452)
(xy -1.412564 -0.519722)
(xy -1.478481 -0.282035)
(xy -1.504692 -0.036774)
(xy -1.490493 0.209475)
(xy -1.436266 0.450099)
(xy -1.343468 0.678634)
(xy -1.214589 0.888945)
(xy -1.053092 1.075382)
(xy -0.863313 1.232939)
(xy -0.65035 1.357385)
(xy -0.419921 1.445377)
(xy -0.178215 1.494553)
(xy 0.068278 1.503592)
(xy 0.312936 1.47225)
(xy 0.549191 1.40137)
(xy 0.770697 1.292856)
(xy 0.971505 1.149621)
(xy 1.146223 0.975512)
(xy 1.290158 0.775205)
(xy 1.399445 0.554079)
(xy 1.471149 0.318074)
(xy 1.503344 0.073526)
)
)
)
(model "${KICAD6_3DMODEL_DIR}/Connector_Audio.3dshapes/Jack_3.5mm_QingPu_WQP-PJ398SM_Vertical.wrl"
(offset (xyz 0 6.48 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)

View File

@ -8,7 +8,7 @@
#define SCREEN_ADDRESS 0x3C #define SCREEN_ADDRESS 0x3C
#define PPQN 24 #define PPQN 24
#define PULSE_LENGTH 5 //ms #define PULSE_LENGTH 15 //ms
#define MAXBPM 250 //250 at 24ppqn with 5ms pulse will be 50/50 square wave #define MAXBPM 250 //250 at 24ppqn with 5ms pulse will be 50/50 square wave
#define MINBPM 20 #define MINBPM 20
@ -28,7 +28,7 @@ unsigned int bpm = 130;
struct channel { struct channel {
unsigned int mode; unsigned int mode;
int random; unsigned int random;
bool modulationChannel; //0 - A1, 1 - A2 bool modulationChannel; //0 - A1, 1 - A2
int modulationRange; int modulationRange;
}; };
@ -76,6 +76,7 @@ RotaryEncoder encoder(ENC_D1_PIN, ENC_D2_PIN, RotaryEncoder::LatchMode::TWO03);
void setup() { void setup() {
Serial.begin(9600); Serial.begin(9600);
//saveState(); //for cases when structure is updated in the code
EEPROM.get(0, bpm); EEPROM.get(0, bpm);
EEPROM.get(sizeof(int), channels); EEPROM.get(sizeof(int), channels);
@ -126,7 +127,7 @@ void internalClock() {
playingModes[i] = clockModes[channels[i].mode]; //updated here to prevent sync problems for multipliers playingModes[i] = clockModes[channels[i].mode]; //updated here to prevent sync problems for multipliers
if (playingModes[i] > 0) { if (playingModes[i] > 0) {
if (outsClocksCounts[i] == 0) { //Pulse on 0 if (outsClocksCounts[i] == 0) { //Pulse on 0
if (channels[i].random == 0 || (channels[i].random == 1 && random(2))) { //random if (channels[i].random == 0 || random(channels[i].random) == 0) { //random
digitalWrite(outsPins[i], HIGH); digitalWrite(outsPins[i], HIGH);
} }
} }