. Hello, I’m French. I have very little—or rather, zero—experience with electronics. I am a musician, and I would like to add MIDI capabilities to an accordina. I have all the necessary data and space constraints, and I generally know which components to use; however, I am not proficient with Fritzing for designing the printed circuit board (PCB). If anyone could help me, I can provide all the relevant information. Thank you!
Hello @absynth !
Can you explain a bit your “MIDI” project ? What is exactly this “instrument” do, what is the PCB (resistors…) for ? Do you have any references, links… ?
Many people here will help you but with more details
![]()
Cheers !
Hello, thank you. Here is an overview of the project, along with some photos and the specifications. It is a complex undertaking, given the limited space inside the resonance chamber and the requirement that I preserve the instrument’s original acoustics.
..===============================================================================
FULL TECHNICAL SPECIFICATIONS (v5 - EXACT C-GRIFF KEYBOARD LAYOUT)
ACOUSTIC & MIDI CONVERSION FOR AN ACCORDINA (44 KEYS: F3 TO C7)
- PROJECT OVERVIEW & MECHANICAL CONSTRAINTS (RESONANCE CHAMBER)
Design of a custom rigid PCB fitting at the bottom of the resonance chamber of
a chromatic C-Griff accordina (44 round buttons across 3 staggered rows:
15 notes on Row 3, 14 notes on Row 2, 15 notes on Row 1).
- Chamber depth: ~14.00 mm (subject to warm breath, condensation, saliva).
- Piston mechanics: White stop washer + slotted screw on the inner end.
- Key travel: 6.00 mm downward stroke when pressed.
- Magnets: 44x Neodymium magnets Dia. 4 mm x 2 mm thick (moisture-coated),
glued flat onto the tip of each screw head. - Remaining vertical clearance: ~6.00 mm max at the bottom of the chamber.
- Internal PCB Specifications:
- Overall dimensions: 284.00 mm (Length X) x 42.00 mm (Width Y).
- Clearance & Standoffs: 2 mm perimeter play for fine alignment. Mounted
elevated on 4 corner standoffs (keep copper traces >= 3 mm clear of all
4 corners) so condensation drains underneath and allowing dry-fit alignment. - Mandatory Half-Moon Cutout (Drain Valve): 5 mm radius semicircular cutout
on the right edge (X = 284.00 mm), centered on Row 2 axis (Y = 21.00 mm),
providing clearance for the water-drain valve piston. - Thickness & Finish: 0.80 mm rigid FR4, ENIG (Gold) anti-oxidation finish
- conformal moisture coating after soldering.
- COMPONENT INVENTORY (100% TOP LAYER INTERNALLY)
Mandatory rule: Because moisture and saliva drain along the bottom floor of the
chamber toward the purge valve, ALL internal components must be placed
exclusively on the TOP layer (facing the magnets). The Bottom layer remains
100% smooth.
A. INTERNAL BLOCK (On the 284 x 42 mm PCB - TOP Layer Only)
- 44x CMOS Hall-Effect Magnetic Sensors: SOT-23 package (e.g., AH1806 /
DRV5032), centered directly beneath the 44 piston screws. - 44x Anti-Ghosting Diodes: SMD 1N4148 (SOD-123 or MiniMELF), TOP layer.
- 1x Ribbon Connector: Horizontal SMD FPC/ZIF connector (0.5 or 1.0 mm pitch,
height < 2 mm, 16 pins), placed along the exit edge. - Optional: SMD 0603 decoupling capacitors (100 nF) on TOP layer (guidance
requested from Fritzing contributors on quantity and placement).
B. EXTERNAL BLOCK (Matte black ABS enclosure ~125 x 45 x 24 mm under body)
- Microcontroller: Teensy board (matrix scanning, breath sensing, MIDI).
- Multiplexers: 2x CD74HC4067 (16-channel) to scan matrix rows/columns.
- Breath Pressure Sensor: NXP MPXV7002DP connected via thin silicone tube
(2-3 mm) converting breath pressure into MIDI CC#2 / Velocity. - Connectivity & Power: Wired MIDI out (3.5 mm TRS Jack or 5-pin DIN),
Bluetooth MIDI (BLE-MIDI) module, and USB-C rechargeable 3.7 V LiPo battery.
- INTERNAL MATRIX & RIBBON EXIT THROUGH GASKET
- 6 Rows x 8 Columns matrix (48 intersections for 44 active notes) with
1N4148 anti-ghosting diodes. - 16-pin flexible flat cable FFC/FPC (~0.30 mm thick): sandwiched directly
between the two body halves at the gasket seam (preserving airtightness),
routed flat along ~16 mm of the outer wall into the bottom enclosure. - Standard 16-pin FPC Pinout: Pin 1 = VCC (+3.3V) | Pins 2-7 = Rows 1-6 |
Pins 8-15 = Columns 1-8 | Pin 16 = GND.
- COMPLETE 44-SENSOR COORDINATE TABLE (EXACT C-GRIFF: F3 TO C7)
Verified C-Griff Layout:
- Row 1 (Bottom, thumb side, 15 notes): Carries C notes (F#3, A3, C4, …, C7).
- Row 2 (Middle, +9.50 mm offset, 14 notes): Carries C# notes (G3, A#3, C#4, …, A#6).
- Row 3 (Top, starts at F3 top-left, 15 notes): Carries F notes (F3, G#3, B3, …, B6).
- Horizontal Pitch X: 19.00 mm | Vertical Pitch Y: 14.25 mm.
ID | Row | Col | C-Griff Note | X (mm) | Y Front| Y Mirror
----±-------------------±----±---------------±-------±-------±--------
S01 | Row 3 (Top) | 1 | F3 | 9.00 | 6.75 | 35.25
S02 | Row 3 (Top) | 2 | G#3 / Ab3 | 28.00 | 6.75 | 35.25
S03 | Row 3 (Top) | 3 | B3 | 47.00 | 6.75 | 35.25
S04 | Row 3 (Top) | 4 | D4 | 66.00 | 6.75 | 35.25
S05 | Row 3 (Top) | 5 | F4 | 85.00 | 6.75 | 35.25
S06 | Row 3 (Top) | 6 | G#4 / Ab4 | 104.00 | 6.75 | 35.25
S07 | Row 3 (Top) | 7 | B4 | 123.00 | 6.75 | 35.25
S08 | Row 3 (Top) | 8 | D5 | 142.00 | 6.75 | 35.25
S09 | Row 3 (Top) | 9 | F5 | 161.00 | 6.75 | 35.25
S10 | Row 3 (Top) | 10 | G#5 / Ab5 | 180.00 | 6.75 | 35.25
S11 | Row 3 (Top) | 11 | B5 | 199.00 | 6.75 | 35.25
S12 | Row 3 (Top) | 12 | D6 | 218.00 | 6.75 | 35.25
S13 | Row 3 (Top) | 13 | F6 | 237.00 | 6.75 | 35.25
S14 | Row 3 (Top) | 14 | G#6 / Ab6 | 256.00 | 6.75 | 35.25
S15 | Row 3 (Top) | 15 | B6 | 275.00 | 6.75 | 35.25
S16 | Row 2 (Middle) | 1 | G3 | 18.50 | 21.00 | 21.00
S17 | Row 2 (Middle) | 2 | A#3 / Bb3 | 37.50 | 21.00 | 21.00
S18 | Row 2 (Middle) | 3 | C#4 / Db4 | 56.50 | 21.00 | 21.00
S19 | Row 2 (Middle) | 4 | E4 | 75.50 | 21.00 | 21.00
S20 | Row 2 (Middle) | 5 | G4 | 94.50 | 21.00 | 21.00
S21 | Row 2 (Middle) | 6 | A#4 / Bb4 | 113.50 | 21.00 | 21.00
S22 | Row 2 (Middle) | 7 | C#5 / Db5 | 132.50 | 21.00 | 21.00
S23 | Row 2 (Middle) | 8 | E5 | 151.50 | 21.00 | 21.00
S24 | Row 2 (Middle) | 9 | G5 | 170.50 | 21.00 | 21.00
S25 | Row 2 (Middle) | 10 | A#5 / Bb5 | 189.50 | 21.00 | 21.00
S26 | Row 2 (Middle) | 11 | C#6 / Db6 | 208.50 | 21.00 | 21.00
S27 | Row 2 (Middle) | 12 | E6 | 227.50 | 21.00 | 21.00
S28 | Row 2 (Middle) | 13 | G6 | 246.50 | 21.00 | 21.00
S29 | Row 2 (Middle) | 14 | A#6 / Bb6 | 265.50 | 21.00 | 21.00
S30 | Row 1 (Bottom) | 1 | F#3 / Gb3 | 9.00 | 35.25 | 6.75
S31 | Row 1 (Bottom) | 2 | A3 | 28.00 | 35.25 | 6.75
S32 | Row 1 (Bottom) | 3 | C4 | 47.00 | 35.25 | 6.75
S33 | Row 1 (Bottom) | 4 | D#4 / Eb4 | 66.00 | 35.25 | 6.75
S34 | Row 1 (Bottom) | 5 | F#4 / Gb4 | 85.00 | 35.25 | 6.75
S35 | Row 1 (Bottom) | 6 | A4 | 104.00 | 35.25 | 6.75
S36 | Row 1 (Bottom) | 7 | C5 | 123.00 | 35.25 | 6.75
S37 | Row 1 (Bottom) | 8 | D#5 / Eb5 | 142.00 | 35.25 | 6.75
S38 | Row 1 (Bottom) | 9 | F#5 / Gb5 | 161.00 | 35.25 | 6.75
S39 | Row 1 (Bottom) | 10 | A5 | 180.00 | 35.25 | 6.75
S40 | Row 1 (Bottom) | 11 | C6 | 199.00 | 35.25 | 6.75
S41 | Row 1 (Bottom) | 12 | D#6 / Eb6 | 218.00 | 35.25 | 6.75
S42 | Row 1 (Bottom) | 13 | F#6 / Gb6 | 237.00 | 35.25 | 6.75
S43 | Row 1 (Bottom) | 14 | A6 | 256.00 | 35.25 | 6.75
S44 | Row 1 (Bottom) | 15 | C7 | 275.00 | 35.25 | 6.75
one other picture . This is exactly the same keyboard, with the notes arranged correctly from left to right—from low to high, spanning F3 to C7.
Waoooouh ! Nice project to make, big challenge ! ![]()
I’m not musician (may be I start harmonica long time ago), my “idea” is to separate this big project in small ones : midi interface (with micro-controllers, prototypes, breadboards, codes), mechanical (with PCB, electronic components) ? Step by step ?
Hello, my name is Philippe and I am 68 years old! I don’t know much about electronics, but I have previously worked on a project to add MIDI capabilities to an accordion. I believe the best place to start is with the printed circuit board (PCB). There is no point in working on the external circuitry—which would include the Teensy 4.1, multiplexing components, and so on—until this step is completed. I have prepared a precise template showing the reference points where all the CMOS sensors should be centered. Each sensor will be aligned with a corresponding neodymium magnet. These 4 x 2 mm neodymium magnets will be glued underneath each key. The principle is relatively simple: when a key is pressed, the piston descends into the resonance chamber and approaches its sensor, which then transmits a “note-on” signal. As soon as the key is released, a “note-off” signal is triggered. That is the basic concept; however, one must also account for “bouncing” (contact chatter), which is why a diode is included for each CMOS sensor. To be honest, I don’t know how to design a PCB in Fritzing. I’ve been trying to get help from an AI, but it isn’t very reliable—it often makes mistakes—and I much prefer interacting with a human!
“I completely agree with splitting the project into two steps! Quick mechanical update
on the drain valve cutout for extra safety clearance: let’s make the half-moon cutout
on the right edge 10 mm in diameter (5 mm radius), centered on the middle row axis
(X = 284 mm, Y = 21 mm).
Step 1: If you can first set up the PCB outline (284 × 42 mm + 10 mm cutout) and
place the 44 SOT-23 footprints on the TOP layer without routing any traces yet, I can
print it at 1:1 scale and check it against my physical pinhole template without having
to reopen the accordina. Once confirmed, we can move on to Step 2 (1N4148 diodes,
decoupling capacitors, FPC connector, and matrix routing). Thanks again for your
help!”
I could help with the layout, but believe it’s not going to be reliable for very long. I sometimes play melodica, a similar thing and the amount of humidity would fairly quickly lead to corrosion and odd electrical behavior. The only way to get the circuit board to behave would be if the surface and all contact points were sealed. One could coat the exposed circuit parts in latex paint. I’ll have a look at the circuit sometime this week.
Thank you for your proposal. I am aware of the issues related to humidity; I have considered using a protective varnish. I don’t have any background in electronics, so I am using an AI to help me develop the technical specifications. As a first step, I would like to verify that each CMOS sensor aligns correctly with its corresponding neodymium magnet—which will also be protected from moisture. Given the limited space—282 mm x 42 mm, with a notch at the bottom—simply getting the (very tiny) CMOS sensors mounted would be a great start. With a 1:1 scale sample, I could perform a dry run using the screws as reference points to check the alignment. Once that’s confirmed, we can look into the diodes, the other components, and the output pinout. In any case, thank you for your collaboration and assistance.
There are a number of things one can disregard from the LLM, like einig finish since it needs more protection, like latex or silicon. Still, the challenge is probably best me by having a manufacturer like jlcpcb do surface mount. To have this produced will not be so cheap, though.
Could you make a quick sketch of the board outline with the cut out? I see all the measurements but would like to see a sketch.
Good evening; your reply ended up in my spam folder. I don’t really have a sketch, but I do have a scan of the back of the accordina; once opened, you can clearly see the placement of the magnets on the screw heads. I created my template by inserting a needle into the center of each screw, directly on the back of my accordina. The circuit must not exceed 9–10 mm along the x and y axes.
https://drive.google.com/file/d/1raOmHYHfwQGiMUSItyL1syS8dVQy3yWk/view?usp=drive_link
Hello, I have revised the project files and updated the layout diagrams, as there was an offset issue with the SOT-23 components. I’ve placed everything in a Google Drive folder. Thank you for your help.e_link
Footnotes ↩︎






















