diverse changes, cleanup

This commit is contained in:
BlubbFish Work 2025-12-14 15:03:54 +01:00
parent 0f3fff60e4
commit 0e92f8cd36
19 changed files with 86754 additions and 10 deletions

4
.gitignore vendored
View File

@ -1,8 +1,10 @@
/Platine/BackupFiles /Platine/BackupFiles
/Platine/*.T3000OPEN /Platine/*.T3000OPEN
/Aisler /Aisler
/Gehäuse/PCB /Gehaeuse/PCB
/Programm/Audio-Switch/Audio-Switch.componentinfo.xml /Programm/Audio-Switch/Audio-Switch.componentinfo.xml
/Verkabelung/BackupFiles /Verkabelung/BackupFiles
/Programm/.vs /Programm/.vs
/Programm/Audio-Switch/Debug /Programm/Audio-Switch/Debug
*.STL
Platine/Audio-Switch/Audio-Switch-backups/

BIN
Gehaeuse/Housing-Top.SLDPRT Normal file

Binary file not shown.

BIN
Gehaeuse/Housing.SLDASM Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,220 @@
(kicad_pcb (version 20211014) (generator pcbnew)
(general
(thickness 1.6)
)
(paper "A4")
(layers
(0 "F.Cu" signal)
(31 "B.Cu" signal)
(32 "B.Adhes" user "B.Adhesive")
(33 "F.Adhes" user "F.Adhesive")
(34 "B.Paste" user)
(35 "F.Paste" user)
(36 "B.SilkS" user "B.Silkscreen")
(37 "F.SilkS" user "F.Silkscreen")
(38 "B.Mask" user)
(39 "F.Mask" user)
(40 "Dwgs.User" user "User.Drawings")
(41 "Cmts.User" user "User.Comments")
(42 "Eco1.User" user "User.Eco1")
(43 "Eco2.User" user "User.Eco2")
(44 "Edge.Cuts" user)
(45 "Margin" user)
(46 "B.CrtYd" user "B.Courtyard")
(47 "F.CrtYd" user "F.Courtyard")
(48 "B.Fab" user)
(49 "F.Fab" user)
(50 "User.1" user)
(51 "User.2" user)
(52 "User.3" user)
(53 "User.4" user)
(54 "User.5" user)
(55 "User.6" user)
(56 "User.7" user)
(57 "User.8" user)
(58 "User.9" user)
)
(setup
(pad_to_mask_clearance 0)
(pcbplotparams
(layerselection 0x00010fc_ffffffff)
(disableapertmacros false)
(usegerberextensions false)
(usegerberattributes true)
(usegerberadvancedattributes true)
(creategerberjobfile true)
(svguseinch false)
(svgprecision 6)
(excludeedgelayer true)
(plotframeref false)
(viasonmask false)
(mode 1)
(useauxorigin false)
(hpglpennumber 1)
(hpglpenspeed 20)
(hpglpendiameter 15.000000)
(dxfpolygonmode true)
(dxfimperialunits true)
(dxfusepcbnewfont true)
(psnegative false)
(psa4output false)
(plotreference true)
(plotvalue true)
(plotinvisibletext false)
(sketchpadsonfab false)
(subtractmaskfromsilk false)
(outputformat 1)
(mirror false)
(drillshape 1)
(scaleselection 1)
(outputdirectory "")
)
)
(net 0 "")
(net 1 "unconnected-(U1-Pad1)")
(net 2 "unconnected-(U1-Pad2)")
(net 3 "Net-(U1-Pad21)")
(net 4 "Net-(U1-Pad4)")
(net 5 "unconnected-(U1-Pad7)")
(net 6 "unconnected-(U1-Pad8)")
(net 7 "unconnected-(U1-Pad9)")
(net 8 "unconnected-(U1-Pad10)")
(net 9 "unconnected-(U1-Pad11)")
(net 10 "a")
(net 11 "unconnected-(U1-Pad13)")
(net 12 "unconnected-(U1-Pad14)")
(net 13 "unconnected-(U1-Pad15)")
(net 14 "unconnected-(U1-Pad16)")
(net 15 "unconnected-(U1-Pad17)")
(net 16 "unconnected-(U1-Pad18)")
(net 17 "unconnected-(U1-Pad19)")
(net 18 "unconnected-(U1-Pad20)")
(net 19 "unconnected-(U1-Pad22)")
(net 20 "unconnected-(U1-Pad23)")
(net 21 "unconnected-(U1-Pad24)")
(net 22 "unconnected-(U1-Pad25)")
(net 23 "unconnected-(U1-Pad26)")
(net 24 "unconnected-(U1-Pad27)")
(net 25 "unconnected-(U1-Pad28)")
(net 26 "unconnected-(U1-Pad29)")
(net 27 "unconnected-(U1-Pad30)")
(net 28 "unconnected-(U1-Pad31)")
(net 29 "unconnected-(U1-Pad32)")
(footprint "Package_QFP:TQFP-32_7x7mm_P0.8mm" (layer "F.Cu")
(tedit 5A02F146) (tstamp fb2a0a7a-c349-4464-8b16-3cbd846ed75b)
(at 63.5 60.96)
(descr "32-Lead Plastic Thin Quad Flatpack (PT) - 7x7x1.0 mm Body, 2.00 mm [TQFP] (see Microchip Packaging Specification 00000049BS.pdf)")
(tags "QFP 0.8")
(property "Sheetfile" "Audio-Switch.kicad_sch")
(property "Sheetname" "")
(path "/287db51d-cf51-4686-af72-9857810a8ff3")
(attr smd)
(fp_text reference "U1" (at 0 -6.05) (layer "F.SilkS")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp c1e7ce47-433d-4e50-8904-dab98a7f7924)
)
(fp_text value "ATmega48-20A" (at 0 6.05) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp f760bfe5-53de-4c60-a906-c41942436bac)
)
(fp_text user "${REFERENCE}" (at 0 0) (layer "F.Fab")
(effects (font (size 1 1) (thickness 0.15)))
(tstamp b8cefbbc-ee25-40b1-a8ce-e0473339ce59)
)
(fp_line (start -3.625 -3.4) (end -5.05 -3.4) (layer "F.SilkS") (width 0.15) (tstamp 0413c8d9-0a8f-440c-9afb-e18ca96c2bd7))
(fp_line (start -3.625 3.625) (end -3.625 3.3) (layer "F.SilkS") (width 0.15) (tstamp 1216ce2a-3fc0-42fe-89c8-ff0d096f02a0))
(fp_line (start -3.625 -3.625) (end -3.625 -3.4) (layer "F.SilkS") (width 0.15) (tstamp 25232fb8-f276-43d2-a671-7a699d270fed))
(fp_line (start 3.625 3.625) (end 3.625 3.3) (layer "F.SilkS") (width 0.15) (tstamp 57fae76e-63c4-41a3-b523-d300389652f3))
(fp_line (start -3.625 3.625) (end -3.3 3.625) (layer "F.SilkS") (width 0.15) (tstamp 6135d3c1-4163-44bc-a930-7a0b04b421a8))
(fp_line (start 3.625 -3.625) (end 3.625 -3.3) (layer "F.SilkS") (width 0.15) (tstamp 7ac17266-7dcc-4692-b08e-09ea83b3226d))
(fp_line (start 3.625 -3.625) (end 3.3 -3.625) (layer "F.SilkS") (width 0.15) (tstamp 9522efed-3807-4bb7-8728-09757a98fd42))
(fp_line (start 3.625 3.625) (end 3.3 3.625) (layer "F.SilkS") (width 0.15) (tstamp ede07777-0167-4e1c-9421-710609ab2437))
(fp_line (start -3.625 -3.625) (end -3.3 -3.625) (layer "F.SilkS") (width 0.15) (tstamp f32952d9-7bf2-4e60-a5c5-8d683b67a637))
(fp_line (start -5.3 -5.3) (end -5.3 5.3) (layer "F.CrtYd") (width 0.05) (tstamp 858b9aad-dde0-447c-a3d2-6d55f95a5e37))
(fp_line (start -5.3 -5.3) (end 5.3 -5.3) (layer "F.CrtYd") (width 0.05) (tstamp 96a3b56c-3f51-41aa-a10e-bb8317d97790))
(fp_line (start -5.3 5.3) (end 5.3 5.3) (layer "F.CrtYd") (width 0.05) (tstamp c27a12f5-232b-47a3-a014-039cc40d56b3))
(fp_line (start 5.3 -5.3) (end 5.3 5.3) (layer "F.CrtYd") (width 0.05) (tstamp d9c5e2df-00c8-41ec-ada9-41a28c12eb4f))
(fp_line (start -3.5 -2.5) (end -2.5 -3.5) (layer "F.Fab") (width 0.15) (tstamp 29f7f4b7-4550-460b-bde1-f32f041d27d1))
(fp_line (start -2.5 -3.5) (end 3.5 -3.5) (layer "F.Fab") (width 0.15) (tstamp 807044f4-ac16-4903-8954-44a276f537a5))
(fp_line (start 3.5 -3.5) (end 3.5 3.5) (layer "F.Fab") (width 0.15) (tstamp c87145c7-6272-4b88-ac8a-02d5f2844067))
(fp_line (start -3.5 3.5) (end -3.5 -2.5) (layer "F.Fab") (width 0.15) (tstamp d8b1be8e-1efd-45bd-83e0-f7a4ab890f00))
(fp_line (start 3.5 3.5) (end -3.5 3.5) (layer "F.Fab") (width 0.15) (tstamp fe808171-5e14-41a8-aec3-b350c7ce0702))
(pad "1" smd rect (at -4.25 -2.8) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 1 "unconnected-(U1-Pad1)") (pinfunction "PD3") (pintype "bidirectional") (tstamp 82c60bcb-eb3f-44b1-8ee9-d21955bca34b))
(pad "2" smd rect (at -4.25 -2) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 2 "unconnected-(U1-Pad2)") (pinfunction "PD4") (pintype "bidirectional") (tstamp 2f28638f-a23f-4baa-bd09-38c8cce1c1f5))
(pad "3" smd rect (at -4.25 -1.2) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 3 "Net-(U1-Pad21)") (pinfunction "GND") (pintype "power_in") (tstamp 4f42c4a8-5db6-4946-8ac6-3e19c7255efc))
(pad "4" smd rect (at -4.25 -0.4) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 4 "Net-(U1-Pad4)") (pinfunction "VCC") (pintype "power_in") (tstamp dc6f0fc3-cb9d-4bac-a843-3be173b835a9))
(pad "5" smd rect (at -4.25 0.4) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 3 "Net-(U1-Pad21)") (pinfunction "GND") (pintype "passive") (tstamp cf012044-0c40-4386-a6d6-9bb75339d2b6))
(pad "6" smd rect (at -4.25 1.2) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 4 "Net-(U1-Pad4)") (pinfunction "VCC") (pintype "passive") (tstamp 17b1a6ef-567b-4386-adfd-7c37c15f75f1))
(pad "7" smd rect (at -4.25 2) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 5 "unconnected-(U1-Pad7)") (pinfunction "XTAL1/PB6") (pintype "bidirectional") (tstamp 8e30f59a-3817-4337-bdb4-9af487f750d6))
(pad "8" smd rect (at -4.25 2.8) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 6 "unconnected-(U1-Pad8)") (pinfunction "XTAL2/PB7") (pintype "bidirectional") (tstamp c5057109-2ae6-4830-8d78-b9a7abe0abfc))
(pad "9" smd rect (at -2.8 4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 7 "unconnected-(U1-Pad9)") (pinfunction "PD5") (pintype "bidirectional") (tstamp c49c937b-3d51-44a5-8c9f-86eb76ffcd28))
(pad "10" smd rect (at -2 4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 8 "unconnected-(U1-Pad10)") (pinfunction "PD6") (pintype "bidirectional") (tstamp 71f487e3-af46-4053-acfa-f51aa33eae50))
(pad "11" smd rect (at -1.2 4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 9 "unconnected-(U1-Pad11)") (pinfunction "PD7") (pintype "bidirectional") (tstamp 2d4d0067-e0db-460c-9c62-fe548adf672e))
(pad "12" smd rect (at -0.4 4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 10 "a") (pinfunction "PB0") (pintype "bidirectional") (tstamp 691701c0-2c81-4627-ab5e-620e941511d2))
(pad "13" smd rect (at 0.4 4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 11 "unconnected-(U1-Pad13)") (pinfunction "PB1") (pintype "bidirectional") (tstamp cc2c4c10-bf17-47da-9cb7-e03ed8e6159e))
(pad "14" smd rect (at 1.2 4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 12 "unconnected-(U1-Pad14)") (pinfunction "PB2") (pintype "bidirectional") (tstamp 469bae79-4f79-4ee1-af56-e56c0beeab8d))
(pad "15" smd rect (at 2 4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 13 "unconnected-(U1-Pad15)") (pinfunction "PB3") (pintype "bidirectional") (tstamp a5ccdcad-c3f1-4805-8a59-945e189d3e5e))
(pad "16" smd rect (at 2.8 4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 14 "unconnected-(U1-Pad16)") (pinfunction "PB4") (pintype "bidirectional") (tstamp 9acc0938-812e-40c2-b448-1000a913c48e))
(pad "17" smd rect (at 4.25 2.8) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 15 "unconnected-(U1-Pad17)") (pinfunction "PB5") (pintype "bidirectional") (tstamp c564988a-7add-4ce2-9d27-c6582bdb0b20))
(pad "18" smd rect (at 4.25 2) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 16 "unconnected-(U1-Pad18)") (pinfunction "AVCC") (pintype "power_in") (tstamp d69827c5-e820-4bc0-9fc1-998b353cbeb8))
(pad "19" smd rect (at 4.25 1.2) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 17 "unconnected-(U1-Pad19)") (pinfunction "ADC6") (pintype "input") (tstamp 993ad02e-4976-40e9-add6-c18bbcb3e27e))
(pad "20" smd rect (at 4.25 0.4) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 18 "unconnected-(U1-Pad20)") (pinfunction "AREF") (pintype "passive") (tstamp d114b0a2-7284-4f71-aedd-32e4a829ce9e))
(pad "21" smd rect (at 4.25 -0.4) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 3 "Net-(U1-Pad21)") (pinfunction "GND") (pintype "passive") (tstamp 857bcc8d-5c9c-40c0-99b3-5fbe7679053e))
(pad "22" smd rect (at 4.25 -1.2) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 19 "unconnected-(U1-Pad22)") (pinfunction "ADC7") (pintype "input") (tstamp fb418586-7aee-4482-a142-7db0f728d74f))
(pad "23" smd rect (at 4.25 -2) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 20 "unconnected-(U1-Pad23)") (pinfunction "PC0") (pintype "bidirectional") (tstamp 1f48de56-3901-4106-ab90-af8a5104e5cf))
(pad "24" smd rect (at 4.25 -2.8) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 21 "unconnected-(U1-Pad24)") (pinfunction "PC1") (pintype "bidirectional") (tstamp cef065b0-5d8d-4310-a559-533ce91ce585))
(pad "25" smd rect (at 2.8 -4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 22 "unconnected-(U1-Pad25)") (pinfunction "PC2") (pintype "bidirectional") (tstamp 2c9f98ff-cb0d-4383-9726-9f06712fefaf))
(pad "26" smd rect (at 2 -4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 23 "unconnected-(U1-Pad26)") (pinfunction "PC3") (pintype "bidirectional") (tstamp c9361f9f-f973-4830-8b77-6190ec514204))
(pad "27" smd rect (at 1.2 -4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 24 "unconnected-(U1-Pad27)") (pinfunction "PC4") (pintype "bidirectional") (tstamp fa862f35-6bb0-4bc5-886b-acfbb30c2c62))
(pad "28" smd rect (at 0.4 -4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 25 "unconnected-(U1-Pad28)") (pinfunction "PC5") (pintype "bidirectional") (tstamp 12088bb7-73f9-442a-99ac-46a985ccad9f))
(pad "29" smd rect (at -0.4 -4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 26 "unconnected-(U1-Pad29)") (pinfunction "~{RESET}/PC6") (pintype "bidirectional") (tstamp 7975dd76-b644-40f5-8511-65a81b48374d))
(pad "30" smd rect (at -1.2 -4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 27 "unconnected-(U1-Pad30)") (pinfunction "PD0") (pintype "bidirectional") (tstamp e79f30b9-a1d8-4751-95cf-da3ab4cda834))
(pad "31" smd rect (at -2 -4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 28 "unconnected-(U1-Pad31)") (pinfunction "PD1") (pintype "bidirectional") (tstamp c497b07c-aff3-4983-a111-cdb2a23ef0c6))
(pad "32" smd rect (at -2.8 -4.25 90) (size 1.6 0.55) (layers "F.Cu" "F.Paste" "F.Mask")
(net 29 "unconnected-(U1-Pad32)") (pinfunction "PD2") (pintype "bidirectional") (tstamp 8fe5ffb5-ce57-4bcf-a63d-f670c81df028))
(model "${KICAD6_3DMODEL_DIR}/Package_QFP.3dshapes/TQFP-32_7x7mm_P0.8mm.wrl"
(offset (xyz 0 0 0))
(scale (xyz 1 1 1))
(rotate (xyz 0 0 0))
)
)
(gr_rect (start 38.1 35.56) (end 111.76 83.82) (layer "Edge.Cuts") (width 0.2) (fill none) (tstamp fc9a7282-9f88-4031-90a9-07ad28c014a0))
)

View File

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

View File

@ -0,0 +1,420 @@
{
"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.762,
"height": 1.524,
"width": 1.524
},
"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": [],
"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": [],
"via_dimensions": [],
"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": "Audio-Switch.kicad_pro",
"version": 1
},
"net_settings": {
"classes": [
{
"bus_width": 12.0,
"clearance": 0.2,
"diff_pair_gap": 0.25,
"diff_pair_via_gap": 0.25,
"diff_pair_width": 0.2,
"line_style": 0,
"microvia_diameter": 0.3,
"microvia_drill": 0.1,
"name": "Default",
"pcb_color": "rgba(0, 0, 0, 0.000)",
"schematic_color": "rgba(0, 0, 0, 0.000)",
"track_width": 0.25,
"via_diameter": 0.8,
"via_drill": 0.4,
"wire_width": 6.0
}
],
"meta": {
"version": 2
},
"net_colors": null
},
"pcbnew": {
"last_paths": {
"gencad": "",
"idf": "",
"netlist": "",
"specctra_dsn": "",
"step": "",
"vrml": ""
},
"page_layout_descr_file": ""
},
"schematic": {
"annotate_start_num": 0,
"drawing": {
"default_line_thickness": 6.0,
"default_text_size": 50.0,
"field_names": [],
"intersheets_ref_own_page": false,
"intersheets_ref_prefix": "",
"intersheets_ref_short": false,
"intersheets_ref_show": false,
"intersheets_ref_suffix": "",
"junction_size_choice": 3,
"label_size_ratio": 0.375,
"pin_symbol_size": 25.0,
"text_offset_ratio": 0.15
},
"legacy_lib_dir": "",
"legacy_lib_list": [],
"meta": {
"version": 1
},
"net_format_name": "",
"ngspice": {
"fix_include_paths": true,
"fix_passive_vals": false,
"meta": {
"version": 0
},
"model_mode": 0,
"workbook_filename": ""
},
"page_layout_descr_file": "",
"plot_directory": "",
"spice_adjust_passive_values": false,
"spice_external_command": "spice \"%I\"",
"subpart_first_id": 65,
"subpart_id_separator": 0
},
"sheets": [
[
"9a09d4ab-4044-43d9-a595-7c395b3cdc4e",
""
]
],
"text_variables": {}
}

View File

@ -0,0 +1,241 @@
(kicad_sch (version 20211123) (generator eeschema)
(uuid 9a09d4ab-4044-43d9-a595-7c395b3cdc4e)
(paper "A4")
(lib_symbols
(symbol "MCU_Microchip_ATmega:ATmega48-20A" (in_bom yes) (on_board yes)
(property "Reference" "U" (id 0) (at -12.7 36.83 0)
(effects (font (size 1.27 1.27)) (justify left bottom))
)
(property "Value" "ATmega48-20A" (id 1) (at 2.54 -36.83 0)
(effects (font (size 1.27 1.27)) (justify left top))
)
(property "Footprint" "Package_QFP:TQFP-32_7x7mm_P0.8mm" (id 2) (at 0 0 0)
(effects (font (size 1.27 1.27) italic) hide)
)
(property "Datasheet" "http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2545-8-bit-AVR-Microcontroller-ATmega48-88-168_Datasheet.pdf" (id 3) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_keywords" "AVR 8bit Microcontroller MegaAVR" (id 4) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_description" "20MHz, 4kB Flash, 512B SRAM, 256B EEPROM, TQFP-32" (id 5) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(property "ki_fp_filters" "TQFP*7x7mm*P0.8mm*" (id 6) (at 0 0 0)
(effects (font (size 1.27 1.27)) hide)
)
(symbol "ATmega48-20A_0_1"
(rectangle (start -12.7 -35.56) (end 12.7 35.56)
(stroke (width 0.254) (type default) (color 0 0 0 0))
(fill (type background))
)
)
(symbol "ATmega48-20A_1_1"
(pin bidirectional line (at 15.24 -20.32 180) (length 2.54)
(name "PD3" (effects (font (size 1.27 1.27))))
(number "1" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -27.94 180) (length 2.54)
(name "PD6" (effects (font (size 1.27 1.27))))
(number "10" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -30.48 180) (length 2.54)
(name "PD7" (effects (font (size 1.27 1.27))))
(number "11" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 30.48 180) (length 2.54)
(name "PB0" (effects (font (size 1.27 1.27))))
(number "12" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 27.94 180) (length 2.54)
(name "PB1" (effects (font (size 1.27 1.27))))
(number "13" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 25.4 180) (length 2.54)
(name "PB2" (effects (font (size 1.27 1.27))))
(number "14" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 22.86 180) (length 2.54)
(name "PB3" (effects (font (size 1.27 1.27))))
(number "15" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 20.32 180) (length 2.54)
(name "PB4" (effects (font (size 1.27 1.27))))
(number "16" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 17.78 180) (length 2.54)
(name "PB5" (effects (font (size 1.27 1.27))))
(number "17" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 2.54 38.1 270) (length 2.54)
(name "AVCC" (effects (font (size 1.27 1.27))))
(number "18" (effects (font (size 1.27 1.27))))
)
(pin input line (at -15.24 25.4 0) (length 2.54)
(name "ADC6" (effects (font (size 1.27 1.27))))
(number "19" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -22.86 180) (length 2.54)
(name "PD4" (effects (font (size 1.27 1.27))))
(number "2" (effects (font (size 1.27 1.27))))
)
(pin passive line (at -15.24 30.48 0) (length 2.54)
(name "AREF" (effects (font (size 1.27 1.27))))
(number "20" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -38.1 90) (length 2.54) hide
(name "GND" (effects (font (size 1.27 1.27))))
(number "21" (effects (font (size 1.27 1.27))))
)
(pin input line (at -15.24 22.86 0) (length 2.54)
(name "ADC7" (effects (font (size 1.27 1.27))))
(number "22" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 7.62 180) (length 2.54)
(name "PC0" (effects (font (size 1.27 1.27))))
(number "23" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 5.08 180) (length 2.54)
(name "PC1" (effects (font (size 1.27 1.27))))
(number "24" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 2.54 180) (length 2.54)
(name "PC2" (effects (font (size 1.27 1.27))))
(number "25" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 0 180) (length 2.54)
(name "PC3" (effects (font (size 1.27 1.27))))
(number "26" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -2.54 180) (length 2.54)
(name "PC4" (effects (font (size 1.27 1.27))))
(number "27" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -5.08 180) (length 2.54)
(name "PC5" (effects (font (size 1.27 1.27))))
(number "28" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -7.62 180) (length 2.54)
(name "~{RESET}/PC6" (effects (font (size 1.27 1.27))))
(number "29" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 0 -38.1 90) (length 2.54)
(name "GND" (effects (font (size 1.27 1.27))))
(number "3" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -12.7 180) (length 2.54)
(name "PD0" (effects (font (size 1.27 1.27))))
(number "30" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -15.24 180) (length 2.54)
(name "PD1" (effects (font (size 1.27 1.27))))
(number "31" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -17.78 180) (length 2.54)
(name "PD2" (effects (font (size 1.27 1.27))))
(number "32" (effects (font (size 1.27 1.27))))
)
(pin power_in line (at 0 38.1 270) (length 2.54)
(name "VCC" (effects (font (size 1.27 1.27))))
(number "4" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 -38.1 90) (length 2.54) hide
(name "GND" (effects (font (size 1.27 1.27))))
(number "5" (effects (font (size 1.27 1.27))))
)
(pin passive line (at 0 38.1 270) (length 2.54) hide
(name "VCC" (effects (font (size 1.27 1.27))))
(number "6" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 15.24 180) (length 2.54)
(name "XTAL1/PB6" (effects (font (size 1.27 1.27))))
(number "7" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 12.7 180) (length 2.54)
(name "XTAL2/PB7" (effects (font (size 1.27 1.27))))
(number "8" (effects (font (size 1.27 1.27))))
)
(pin bidirectional line (at 15.24 -25.4 180) (length 2.54)
(name "PD5" (effects (font (size 1.27 1.27))))
(number "9" (effects (font (size 1.27 1.27))))
)
)
)
)
(wire (pts (xy 50.8 22.86) (xy 57.15 22.86))
(stroke (width 0) (type default) (color 0 0 0 0))
(uuid 497c5045-805c-4bbc-8f61-95dab0c34d23)
)
(global_label "a" (shape input) (at 57.15 22.86 0) (fields_autoplaced)
(effects (font (size 1.27 1.27)) (justify left))
(uuid 08c721f9-1395-4751-a754-ea21939c08f8)
(property "Intersheet References" "${INTERSHEET_REFS}" (id 0) (at 60.7121 22.7806 0)
(effects (font (size 1.27 1.27)) (justify left) hide)
)
)
(symbol (lib_id "MCU_Microchip_ATmega:ATmega48-20A") (at 35.56 53.34 0) (unit 1)
(in_bom yes) (on_board yes) (fields_autoplaced)
(uuid 287db51d-cf51-4686-af72-9857810a8ff3)
(property "Reference" "U1" (id 0) (at 37.5794 91.44 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Value" "ATmega48-20A" (id 1) (at 37.5794 93.98 0)
(effects (font (size 1.27 1.27)) (justify left))
)
(property "Footprint" "Package_QFP:TQFP-32_7x7mm_P0.8mm" (id 2) (at 35.56 53.34 0)
(effects (font (size 1.27 1.27) italic) hide)
)
(property "Datasheet" "http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-2545-8-bit-AVR-Microcontroller-ATmega48-88-168_Datasheet.pdf" (id 3) (at 35.56 53.34 0)
(effects (font (size 1.27 1.27)) hide)
)
(pin "1" (uuid 861e5cfa-323c-46b4-afef-207a2cb281ba))
(pin "10" (uuid 5c98c896-f753-4c25-b66c-175c8f298241))
(pin "11" (uuid a8731993-7515-46bb-8f79-fbdab8ace755))
(pin "12" (uuid 91caca2a-120e-4ae7-8bbb-253d4e267904))
(pin "13" (uuid bbe538a8-51e9-4d13-b61b-092abd83d180))
(pin "14" (uuid 6accc607-4fd2-450a-ac12-187747ff212f))
(pin "15" (uuid f792ed06-65a9-4491-bb59-6d04586a3a16))
(pin "16" (uuid 837570cf-f7bc-4fd6-95dd-a55ce5261aec))
(pin "17" (uuid 81ed93b4-bd0b-4c85-8967-ce3c4aabd08c))
(pin "18" (uuid a6b541e6-95be-4ddc-8dc4-6e3d03e1a9d4))
(pin "19" (uuid b4c88960-3f84-4943-90cf-d5b86553603c))
(pin "2" (uuid e66204f7-1eb6-47e2-aef5-8deed8d368ca))
(pin "20" (uuid 0959d653-6d1d-4b80-8219-a3b895b8c5eb))
(pin "21" (uuid 9f426a7d-12eb-469f-a3b3-2ebd7ebee135))
(pin "22" (uuid 57817647-0544-4313-9b3d-28b1a142118c))
(pin "23" (uuid d1cab8d6-f1f3-425a-8217-2a575ae49738))
(pin "24" (uuid ce65b953-b538-4853-b28d-f0488621aac4))
(pin "25" (uuid 4749ced0-e334-4966-845d-46e8f19cbe1a))
(pin "26" (uuid 0c1c632f-bb0f-4104-b53f-233fc300e2f5))
(pin "27" (uuid 40a43999-7cc9-4be7-b850-e1cb13c41993))
(pin "28" (uuid c01ec65a-4abb-46d1-9248-2e725c6600ce))
(pin "29" (uuid 124aedf1-24b5-4875-a400-84236e60a9ae))
(pin "3" (uuid f2fd67e8-c597-492e-82e5-748e0fc07a13))
(pin "30" (uuid e232286e-df89-4f4c-8920-1a4e34cd88c9))
(pin "31" (uuid 5c379d8e-fee6-4ab9-83fc-63f1b37787bc))
(pin "32" (uuid 3b690496-a740-4050-baab-e411cde54b78))
(pin "4" (uuid 380dc63e-56ee-484b-868b-50cb4946f996))
(pin "5" (uuid bb2039a0-c4e4-4eee-a2dc-9219d91b6e09))
(pin "6" (uuid 01f9884e-5fcd-4704-b70e-de5f56d55d0c))
(pin "7" (uuid 337fb28f-4213-4e26-8ff2-4cfc237e895f))
(pin "8" (uuid a19f22f3-f8bf-4c3b-bc2b-34dd8524ff3d))
(pin "9" (uuid 8732dde3-2ff1-41d5-9f63-a3b0530e8599))
)
(sheet_instances
(path "/" (page "1"))
)
(symbol_instances
(path "/287db51d-cf51-4686-af72-9857810a8ff3"
(reference "U1") (unit 1) (value "ATmega48-20A") (footprint "Package_QFP:TQFP-32_7x7mm_P0.8mm")
)
)
)

File diff suppressed because it is too large Load Diff

View File

@ -40,6 +40,44 @@
</dependencies> </dependencies>
</framework-data> </framework-data>
</AsfFrameworkConfig> </AsfFrameworkConfig>
<avrtool>com.atmel.avrdbg.tool.ispmk2</avrtool>
<avrtoolserialnumber>0000000000000</avrtoolserialnumber>
<avrdeviceexpectedsignature>0x1E920A</avrdeviceexpectedsignature>
<avrtoolinterface>ISP</avrtoolinterface>
<avrtoolinterfaceclock>125000</avrtoolinterfaceclock>
<com_atmel_avrdbg_tool_ispmk2>
<ToolOptions>
<InterfaceProperties>
<IspClock>125000</IspClock>
</InterfaceProperties>
<InterfaceName>ISP</InterfaceName>
</ToolOptions>
<ToolType>com.atmel.avrdbg.tool.ispmk2</ToolType>
<ToolNumber>0000000000000</ToolNumber>
<ToolName>AVRISP mkII</ToolName>
</com_atmel_avrdbg_tool_ispmk2>
<custom>
<ToolOptions xmlns="">
<InterfaceProperties>
</InterfaceProperties>
<InterfaceName>ISP</InterfaceName>
</ToolOptions>
<ToolType xmlns="">custom</ToolType>
<ToolNumber xmlns="">
</ToolNumber>
<ToolName xmlns="">Custom Programming Tool</ToolName>
</custom>
<com_atmel_avrdbg_tool_simulator>
<ToolOptions xmlns="">
<InterfaceProperties>
</InterfaceProperties>
<InterfaceName>ISP</InterfaceName>
</ToolOptions>
<ToolType xmlns="">com.atmel.avrdbg.tool.simulator</ToolType>
<ToolNumber xmlns="">
</ToolNumber>
<ToolName xmlns="">Simulator</ToolName>
</com_atmel_avrdbg_tool_simulator>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)' == 'Release' "> <PropertyGroup Condition=" '$(Configuration)' == 'Release' ">
<ToolchainSettings> <ToolchainSettings>

View File

@ -17,18 +17,24 @@
class Programm { class Programm {
private: private:
void ResetTimer() { void ResetTimer() {
led.SetColor(Led::CYAN); if(this->reset_running) {
//timer.Reset(); return;
}
this->reset_running = true;
led.SetColor(Led::RED);
timer.Reset();
if(!this->timer_running) { if(!this->timer_running) {
audio.SetFunk(); audio.SetFunk();
//timer.Start(); timer.Start();
} }
_delay_ms(1);
this->timer_running = true; this->timer_running = true;
this->reset_running = false;
} }
void TimerEnd() { void TimerEnd() {
audio.SetRadio(); audio.SetRadio();
//timer.Stop(); timer.Stop();
this->timer_running = false; this->timer_running = false;
} }
public: public:
@ -37,7 +43,7 @@ class Programm {
} }
void Setup() { void Setup() {
led.SetColor(Led::RED); led.SetColor(Led::BLUE);
_delay_ms(500); _delay_ms(500);
} }
@ -71,8 +77,9 @@ class Programm {
Led led; Led led;
Comperator comp; Comperator comp;
Ptt ptt; Ptt ptt;
//Timer timer; Timer timer;
protected: protected:
bool timer_running; bool timer_running;
bool reset_running;
public: public:
}; };

View File

@ -11,7 +11,7 @@
#include <avr/io.h> #include <avr/io.h>
template <long int timer_count_till, int timer_prescaler> template <int timer_count_till, int timer_prescaler>
class TimerT { class TimerT {
// Methods // Methods
private: private:
@ -24,8 +24,12 @@ class TimerT {
TCNT1 = 0; TCNT1 = 0;
OCR1AH = (timer_count_till<<8); //OCR1AH = (uint8_t)(timer_count_till<<8);
OCR1AL = timer_count_till; //OCR1AL = (uint8_t)timer_count_till;
//OCR1A = 39062;
OCR1A = timer_count_till;
TIMSK1 = (1<<ICIE1) | (1<<OCIE1A); TIMSK1 = (1<<ICIE1) | (1<<OCIE1A);
} }