Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
MAMI - Matrix Mixer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
sdiy
MAMI - Matrix Mixer
Commits
bbee7f1b
Commit
bbee7f1b
authored
5 years ago
by
David Huss
Browse files
Options
Downloads
Patches
Plain Diff
Update Output module BOM with 10 Ω
parent
262ddc56
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
calculate-parts.ipynb
+2
-1
2 additions, 1 deletion
calculate-parts.ipynb
with
2 additions
and
1 deletion
calculate-parts.ipynb
+
2
−
1
View file @
bbee7f1b
...
...
@@ -21,7 +21,8 @@
" \"parts\": [\n",
" {\"MPN\": \"LME49720\", \"n\": 2},\n",
" {\"MPN\": \"100nF 0605 25V\", \"n\": 4},\n",
" {\"MPN\": \"100k 0805\", \"n\": 8},\n",
" {\"MPN\": \"100k 0805\", \"n\": 6},\n",
" {\"MPN\": \"100R 0805\", \"n\": 2},\n",
" {\"MPN\": \"PJ301M-12\", \"n\": 2}\n",
" ]\n",
" },\n",
...
...
%% Cell type:code id: tags:
```
python
# Change these values to calculate the needed values
requirements
=
{
"
inputs
"
:
8
,
"
outputs
"
:
8
}
# Do not edit below this Point unless you know what you are doing
data
=
{
"
mami-input
"
:
{
"
input-channels
"
:
2
,
"
parts
"
:
[
{
"
MPN
"
:
"
PJ301M-12
"
,
"
n
"
:
2
},
{
"
MPN
"
:
"
Subminiature On-Off-(On) Toggle switch
"
,
"
n
"
:
2
},
]
},
"
mami-output
"
:
{
"
output-channels
"
:
2
,
"
parts
"
:
[
{
"
MPN
"
:
"
LME49720
"
,
"
n
"
:
2
},
{
"
MPN
"
:
"
100nF 0605 25V
"
,
"
n
"
:
4
},
{
"
MPN
"
:
"
100k 0805
"
,
"
n
"
:
8
},
{
"
MPN
"
:
"
100k 0805
"
,
"
n
"
:
6
},
{
"
MPN
"
:
"
100R 0805
"
,
"
n
"
:
2
},
{
"
MPN
"
:
"
PJ301M-12
"
,
"
n
"
:
2
}
]
},
"
mami-quad
"
:
{
"
input-channels
"
:
2
,
"
output-channels
"
:
2
,
"
parts
"
:
[
{
"
MPN
"
:
"
P0915N-FC15BR100K
"
,
"
n
"
:
4
},
{
"
MPN
"
:
"
Knob
"
,
"
n
"
:
4
},
{
"
MPN
"
:
"
100k 0805
"
,
"
n
"
:
4
}
]
}
}
# Calculate how many PCBs are needed
n_input_modules
=
int
(
requirements
[
"
inputs
"
]
/
data
[
"
mami-input
"
][
"
input-channels
"
])
n_output_modules
=
int
(
requirements
[
"
outputs
"
]
/
data
[
"
mami-output
"
][
"
output-channels
"
])
n_quad_modules
=
int
((
requirements
[
"
inputs
"
]
*
requirements
[
"
outputs
"
])
/
(
data
[
"
mami-output
"
][
"
output-channels
"
]
*
data
[
"
mami-input
"
][
"
input-channels
"
]))
Print
the
PCB
print
(
"
Needed for a {}x{} Matrix Mixer
"
.
format
(
requirements
[
"
inputs
"
],
requirements
[
"
outputs
"
]))
print
(
"
{}
"
.
format
(
"
=
"
*
50
))
print
(
"
{0:>5}x MAMI-INPUT-Module
"
.
format
(
n_input_modules
))
print
(
"
{0:>5}x MAMI-OUTPUT-Module
"
.
format
(
n_output_modules
))
print
(
"
{0:>5}x MAMI-QUAD-Module
\n
"
.
format
(
n_quad_modules
))
# Collect all the parts
bom
=
{}
for
part
in
data
[
"
mami-input
"
][
"
parts
"
]
*
n_input_modules
+
data
[
"
mami-quad
"
][
"
parts
"
]
*
n_quad_modules
+
data
[
"
mami-output
"
][
"
parts
"
]
*
n_output_modules
:
if
part
[
"
MPN
"
]
in
bom
:
bom
[
part
[
"
MPN
"
]]
+=
part
[
"
n
"
]
else
:
bom
[
part
[
"
MPN
"
]]
=
part
[
"
n
"
]
# Print the BOM
print
(
"
Parts
\n
{}
"
.
format
(
"
=
"
*
50
))
for
key
,
value
in
bom
.
items
():
print
(
"
{:>5}x {}
"
.
format
(
value
,
key
))
```
%% Output
Needed for a 8x8 Matrix Mixer:
==================================================
4x MAMI-INPUT-Module
4x MAMI-OUTPUT-Module
16x MAMI-QUAD-Module
Parts
==================================================
16x PJ301M-12
8x Subminiature On-Off-(On) Toggle switch
64x P0915N-FC15BR100K
64x Knob
96x 100k 0805
8x LME49720
16x 100nF 0605 25V
%% Cell type:code id: tags:
```
python
```
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment