Skip to the content
4 layers67 × 98 mmSJ-201-R6, the printed circuit board in 3D

Mycroft's Mark II Rpi mechanical, electrical and industrial designs

Size
67 × 98 mm
Copper layers
4
Thickness
1.6 mm
Parts
235
Nets
172
Pads
897
Tracks, vias
2,927, 573
Pours
21
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
9 Sep 2019
Updated
13 Jun 2023

Overview

SJ-201-R6 is an open-source printed circuit board by MycroftAI, from the MycroftAI/hardware-mycroft-mark-II repository on GitHub. It is a 4-layer board of 67 × 98 mm with 235 parts on 172 nets, routed with 2,927 tracks and 573 vias.

It is built around the ATTINY1614-SSN, SPK0641HT4H-1 and AMS1117-3.3, with the WS2812B, 330UF 25V 8*12 and AO3401A among its other parts. Its parts include 69 capacitors, 64 resistors, 16 diodes, 8 ICs and 8 connectors. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

8

README

mark-II-Rpi-devkit/KiCAD/SJ201-Raspberry Pi 4 Daughterboard/README.md

SJ201 Datasheet - Rev 8

This board interfaces directly to the Raspberry Pi 4 via the 40-pin GPIO adding a high-quality speaker and microphone array, as well as LEDs and hardware inputs for non-voice interaction and feedback.

The part number SJ201 is derived from Mike’s “Simon Jester” alias in “The Moon is a Harsh Mistress”.

About this Document

This Datasheet will contain all the relevant information for the manufacturing of the SJ201 including information about PCB design, PCB manufacturing process.

Major Components

  • Audio Front End (XMOS XVF3510) - for Microphone input processing
  • 23W I2S Digital Amplifier (Texas Instruments TAS5806MD)
  • 2 Digital MEMS Microphones (Knowles SPK0641HT4H-1)
  • 12 RGB LEDs (WorldSemi WS2812B-MINI)
  • 3 momentary buttons (volume up, volume down, action)
  • 1 toggle switch (mic mute)
  • ATtiny1614 - control LEDs, other I/O

Hardware Notes

  • The SJ201 is plugged into the GPIO header of the Raspberry Pi 4 board.
  • The pins required for the operation of the Raspberry Pi 4 MIPI and CSI are not used on the SJ201 GPIO header. The display and camera do not connect to the SJ201.
  • The barrel jack on the SJ201 requires a 12V, 3A regulated DC input.

Software Notes

  • SHTDN (GPIO pin GPIO5) must be set high to enable the audio amplifier.
  • The TAS5806 outputs I2S to the XMOS chip.

Configuration options

Default Use Case

The SJ201 is connected to a Raspberry Pi4 via the header. 

12V is supplied to the SJ201 via the barrel jack.

The SJ201 creates 5V using a 3A buck converter, which powers the Raspberry Pi.

The SJ201 creates 3.3V using a linear regulator, which powers the on-board devices.

4.4ohm, 5W speakers are connected to the JST connectors. [Note, in the current implementation the amplifier is capable of supplying 13W to each speaker, so volume must be limited in software to avoid damage.]

Test Configuration Options

The J5 header serves as a test point for the 3.3V, 5V and 12V supplies. 

The J5 header can also be used to bypass the on-board buck converter and/or linear regulator.

The buck converter does not need to be turned off - it can tolerate an external supply. To completely disable it, lift the appropriate pin.

The 1.0V supply can be tested using Test Point TP1_0V1 near the XMOS IC.

Design Notes

Power Domains

The SJ201 is powered by an external 12V 3A DC supply (wall wart) via a barrel connector. The SJ201 has 4 voltage domains:

  • VDD 12V externally supplied power

  • PVDD 12V Analog Audio Power

  • 5V 5V derived from VDD

  • 3V 3.3V derived from 5V

  • 1V 1.0V derived from 5V for the XMOS core

All power domains share a common ground.

  • GND Ground

Microphone DSP

Audio Amplifier

Filterless modulation
We are using the TAS5806, in a "filterless amplifier" design. This is lower cost than using a true LC filter for each output, but can be susceptible to large EMI output if not done properly. This can lead to failure to meet FCC and other standards required for consumer electronics. The following design rules are intended to minimize EMI in the system.

Speaker power
With a 4ohm speaker and a 12V supply, each channel can achieve ~13W. The speaker we're using is 4.4ohm, 5W max. The volume must be limited in software to avoid damaging the speaker.

PCB Layout Checklist

Boxes marked 🗹 are for version 6.02 (also labeled R6 v2) of the KiCAD files.

Layers - PCB checklist

Layer 1: Main ICs, connectors and signal routing - Power (1.0v, PVDD 12v)

Layer 2: GND

Layer 3: Power (12V, 5V, 3V3)

Layer 4: Buttons, LEDs, signal routing (this layer faces upwards on device) 

Power - PCB checklist

External Power Supply (VDD)
  1. Barrel jack is centered on 10.6mm from the board edge.

  2. Ferrite bead close to barrel jack to reduce EMI transmission along power cord to wall

    • Spec'd to handle 12V 3A
  3. AO3401A MOSFET to protect against reverse voltage (i.e. user plugs in a non-standard external power supply with GND on the center pin instead of on the outside of the barrel connector.)

  4. Low resistance traces for VDD and GND connecting to power planes.

Analog Audio Power (PVDD)
  1. PVDD does not contain loops (areas of PVDD that enclose non-PVDD areas)

  2. PVDD does not contain narrow antenna-like features.

  3. PVDD is primarily located on layer 3

  4. PVDD connects to layer 1 traces through multiple vias for lower resistance

  5. See Audio Amplifier for additional considerations

5V power

XL Semiconductor's XL4015 buck converter is used to generate 5V at up to 5A from the barrel jack power. This part supports a minimum input voltage of 8V and a max of 36V. 

🗹 http://www.xlsemi.com/datasheet/XL4015%20datasheet.pdf

🗹 R1 and R8 are 1% tolerance (these set the output voltage. 10% resistors could result in an output range of 4.4V - 5.9V.)

3.3V power

A linear regulator is used to derive 3.3V from 5V.

Microphones (MP34DT05-A)- PCB checklist

🗹 https://www.st.com/content/ccc/resource/technical/document/datasheet/group3/c7/90/d3/f6/b7/e7/40/c8/DM00415595/files/DM00415595.pdf/jcr:content/translations/en.DM00415595.pdf 

🗹 Power supply decoupling capacitors (100 nF ceramic, 1 μF ceramic) should be placed as near as possible to pin 1 of the device (common design practice). 

🗹 The L/R pin must be connected to Vdd or GND (refer to Table 6. L/R channel selection).

LED (WS2812B-Mini)- PCB checklist

🗹 https://datasheet.lcsc.com/szlcsc/2005251033_Worldsemi-WS2812B-Mini_C527089.pdf

Power on Reset - PCB checklist

  • https://www.onsemi.com/pub/Collateral/NCP302-D.PDF 

  • This circuit monitors multiple power supply rails for undervoltage conditions. If any of the three power supplies are in an undervoltage condition, the NCP302 reset output will be immediately set to an active low level. All three power supplies must be above their minimum voltage levels for the NCP302 reset output to generate a "Power Good" level (Reset Output = Power Supply 1 or VP). Replaced by Raspberry Pi control for startup routine.

SG-210STF 24MHz clock - PCB checklist

🗹 Use recommended pad layout per datasheet.

XMOS XVF3510 - PCB checklist 

Datasheets:

From page 26-27 of the XMOS VocalFusion XVF3510 datasheet (dated 2019-10-22).

10.1 SCHEMATICS DESIGN CHECK LIST

10.1.1. POWER SUPPLIES

🗹 The VDD (core) supply ramps monotonically (rises constantly) from 0V to its final value (0.95V - 1.05V) within 10ms (Section 6.1).

🗹 The VDD (core) supply is capable of supplying 1400mA (Section 6.1).

🗹 PLL_AVDD is filtered with a low pass filter, for example an RC filter, (Section 6.1)

10.1.2. POWER SUPPLY DECOUPLING

🗹 The design has multiple decoupling capacitors per supply, for example less than 12 402 or 0603 size surface mount capacitors of 100nF in value, per supply (Section 6.1).

🗹 A bulk decoupling capacitor of at least 10uF is placed on each supply (Section 6.1).

10.1.3. POWER ON RESET

🗹 The RST_N pins are asserted (low) until all supplies are good. There is enough time between VDDIO power good and RST_N to allow any boot flash to settle (Section 6.1).

10.1.4. CLOCKS

🗹 The CLK input pin is supplied with a clock with monotonic rising edges and low jitter.

🗹 A 24MHz reference clock must be connected to the CLK pin for all implementations.

🗹 MCLK_INOUT is connected to MCLK_IN via a PCB trace outside the device

🗹 All clock signals (CLK, MIC_CLK, QSPI_CLK, SPI_CLK, MCLK_IN, MCLK_INOUT, BCLK, LRCLK) and other audio signals must be routed well following high speed digital design guidelines, and may need buffering.

10.1.5. BOOT

🗹 To boot from QSPI flash, QSPI_CS_N, QSPI_D0 .. QSPI_D3, QSPI_D1_BOOTSEL, QSPI_CLK are connected and QSPI_D1_BOOTSEL is connected to QSPI D1 pin on flash device or pulled low/left floating (Section 6.4). Boot from Raspi

🗹 To boot from the local host processor through SPI, QSPI_D1_BOOTSEL must be pulled high and SPI_CS_N, SPI_MOSI and SPI_MISO must be connected.

10.1.6. MICROPHONES

🗹 Both MIC_DATA pins are connected to the PCB (Section 4.4).

10.1.7. JTAG AND DEBUGGING

🗹 You have decided as to whether you need an XSYS header or not (Section 7)

🗹 If you have not included an XSYS header, you have devised a method to program the SPI-flash (Section 7).

10.2 PCB LAYOUT DESIGN CHECK LIST

10.2.1. GROUND PLANE

🗹 Multiple vias (eg, 16) have been used to connect the ground paddle to the PCB ground plane. These minimize impedance and conduct heat away from the device. (Section 6.1)

🗹 Other than ground vias, there are no (or only a few) vias underneath or closely around the device. This creates a good, solid, ground plane.

10.2.2. POWER SUPPLY DECOUPLING

🗹 The decoupling capacitors are all placed close to a supply pin (Section 6.1).

🗹 The decoupling capacitors are spaced around the device (Section 6.1).

🗹 The ground side of each decoupling capacitor has a direct path back to the center ground of the device.

10.2.3. PLL_AVDD

🗹 The PLL_AVDD filter (especially the capacitor) is placed close to the PLL_AVDD pin (Section 6.1).

Audio Amplifier - PCB checklist

The following notes are related to the PCB layout wrt the TAS5806. We also used the MAX9744 design notes, as that was the amplifier for the first iteration and the notes are generally applicable.

  1. 🗹 Ferrite bead close to 12V barrel connector

    • "It is sometimes helpful to insert RF chokes in series with the power supplies for the amplifier. Properly placed, they can confine high-frequency transient currents to local loops near the amplifier, instead of being conducted for long distances down the power supply wires." [Ref 1]
  2. 🗹 Compact LC circuit from output of amplifier to JST speaker connectors

    • "the entire LC filter (including the speaker wiring) should be laid out as compactly as possible, and kept close to the amplifier." [Ref 1]
  3. 🗹 Make speaker connections parallel and close to minimize area and therefore the "antenna" created

    • "Traces for current drive and return paths should be kept together to minimize loop areas." [Ref 1]
  4. 🗹 Speaker wires from JST to speaker element are twisted pair and less than 10cm long.

    • "to minimize loop areas ... using twisted pairs for the speaker wires is helpful)" [Ref 1]
  5. 🗹 Connect PGND to GND at a single point on the PCB. [Ref 3, p23]

  6. 🗹 Connect all VDD power supplies together and bypass with a 1uF cap to GND. [Ref 3, p23]

  7. 🗹 Place a bulk capacitor between PVDD and PGND. [Ref 3, p23]

  8. 🗹 Use large, low-resistance output traces to speaker filters and JST connectors. [Ref 3, p23]

  9. 🗹 Use large traces for the power-supply to PVDD and PGND. [Ref 3, p23]

  10. 🗹 Thermal pad (area fill exposed copper) under amplifier on layer 1. [Ref 3, p23]

  • There should be no solder-mask in this area. [TODO: verify]
  1. 🗹 Connect thermal pad on layer 1 to PGND on layer 2 using multiple vias. PGND area as large as practical for better heat dissipation. [Ref 3, p23]

Production Checklist

WS2812 Mini

  • [] This has to be baked for 48 hours at the baking temperature of 70-75℃ before being used. 

  • [] Use up with 2 hours after taking out from oven.

  • [] Please replace the unused LEDs into oven.

References

1. Texas Instruments Class D Thermal Considerations

2. TAS5806MD data sheet

Parts

235
QtyValueFootprintReferences
24100NFCapacitor_SMD:C_0402_1005MetricC11, C12, C28, C35, C36, C40, C41, C42, C43, C44, C45, C46, C47, C48, C49, C50 +8
21TestPointTestPoint:TestPoint_Pad_D2.0mmGI_1, GI_2, GO_1, GO_2, OutL1, OutR1, RST_N1, TP1, TP1V0, TP1v8, TP3, TP4, TP10, TP11, TP12v0, TP18 +5
12WS2812BMycroft:LED_WS2812_Mini_3.5x3.5mm_P1.1mmD2, D3, D4, D5, D6, D7, D8, D9, D10, D11, D12, D13
111uFCapacitor_SMD:C_0402_1005MetricC3, C4, C15, C16, C21, C24, C29, C30, C55, C56, C61
1010kResistor_SMD:R_0402_1005MetricR1, R11, R17, R21, R25, R38, R39, R48, R49, R50
1033RResistor_SMD:R_0402_1005MetricR16, R31, R32, R33, R34, R35, R36, R64, R65, R66
810k-DNPResistor_SMD:R_0402_1005MetricR29, R37, R54, R55, R56, R58, R59, R60
8TestPointTestPoint:TestPoint_Pad_D1.0mmDN0, DN1, TCK1, TD0, TDI1, TMS1, UP0, UP1
6100RResistor_SMD:R_0402_1005MetricR43, R44, R45, R46, R68, R69
622UFCapacitor_SMD:C_0603_1608MetricC13, C14, C19, C20, C37, C60
6FBResistor_SMD:R_1206_3216MetricFB1, FB2, FB3, FB4, FB7, FB8
54.7kResistor_SMD:R_0402_1005MetricR2, R9, R18, R41, R42
5470RResistor_SMD:R_0603_1608MetricR12, R13, R14, R15, R19
41NFCapacitor_SMD:C_0402_1005MetricC27, C38, C39, C62
4220nFCapacitor_SMD:C_0603_1608MetricC22, C23, C25, C26
4BSS138-DNPPackage_TO_SOT_SMD:SOT-23Q2, Q4, Q5, Q6
4MountingHoleMountingHole:MountingHole_3mm_PadH1, H2, H3, H4
310UFCapacitor_SMD:C_0402_1005MetricC5, C59, C73
310nFCapacitor_SMD:C_0402_1005MetricC7, C74, C75
3ButtonButton_Switch_SMD:SW_SPST_TL3342S1, S2, S3
21000RResistor_SMD:R_0805_2012MetricFB5, FB6
2100NFCapacitor_SMD:C_0603_1608MetricC17, C18
2100NF-DNPCapacitor_SMD:C_0402_1005MetricC2, C9
2220kResistor_SMD:R_0402_1005MetricR61, R67
233R-DNPResistor_SMD:R_0402_1005MetricR23, R30
247KResistor_SMD:R_0402_1005MetricR26, R40
2SPKConnector_JST:JST_PH_B2B-PH-K_1x02_P2.00mm_VerticalJ3, J4
2SPK0641HT4H-1Mycroft:HCLGA-MP34DT05U10, U11
10RResistor_SMD:R_0603_1608MetricR7
10R - DNPResistor_SMD:R_0603_1608MetricR57
10R-DNPResistor_SMD:R_0603_1608MetricR10
11.8UH ±30% 2.35AInductor_SMD:L_Bourns-SRN4018L2
1100kResistor_SMD:R_0402_1005MetricR27
110RResistor_SMD:R_0402_1005MetricR5
110UF-DNPCapacitor_SMD:C_0402_1005MetricC65
110uF-DNPCapacitor_SMD:C_0402_1005MetricC68
1120kResistor_SMD:R_0402_1005MetricR6
11uF-DNPCapacitor_Tantalum_SMD:CP_EIA-3216-10_Kemet-IC66
1200kResistor_SMD:R_0402_1005MetricR4
1220uF/50VCapacitor_SMD:CP_Elec_10x10C1
122UF-DNPCapacitor_SMD:C_0603_1608MetricC69
1250mA/100VDiode_SMD:D_SOD-323FD1
127kResistor_SMD:R_0402_1005MetricR20
13.3KResistor_SMD:R_0402_1005MetricR8
13.3K-DNPResistor_SMD:R_0402_1005MetricR51
1330RResistor_SMD:R_0402_1005MetricR22
1330uF/25VCapacitor_SMD:CP_Elec_8x10.5C6
133NFCapacitor_SMD:C_0402_1005MetricC8
14.7UFCapacitor_SMD:C_0402_1005MetricC10
1470UF/16VCapacitor_SMD:CP_Elec_8x10.5C64
1470uF-DNPCapacitor_Tantalum_SMD:CP_EIA-7343-15_Kemet-WC67
147kResistor_SMD:R_0402_1005MetricR3
147uHInductor_SMD:L_Wuerth_HCI-1365L1
14R7Resistor_SMD:R_0603_1608MetricR24
1680RResistor_SMD:R_0402_1005MetricR28
1AMS1117-1.8-DNPPackage_TO_SOT_SMD:SOT-223-3_TabPin2U15
1AMS1117-3.3Package_TO_SOT_SMD:SOT-223-3_TabPin2U4
1AO3401APackage_TO_SOT_SMD:SOT-23Q3
1ATTinyProgTestPoint:TestPoint_Pad_D2.0mmTP2
1ATtiny1614-SSPackage_SO:SOIC-14_3.9x8.7mm_P1.27mmU13
1AudioJack2_GroundMycroft:Jack_3.5mm_PJ-3210J2
1BAT54APackage_TO_SOT_SMD:SOT-23D20
1Barrel_JackConnector_BarrelJack:BarrelJack_HorizontalJ1
1Conn_01x04Connector_PinHeader_2.54mm:PinHeader_1x04_P2.54mm_VerticalJ10
1CoralTPU-DNPCoralTPU:CoralTPUU2
1DNP - AT25SFxx 16mb or greaterPackage_SO:SOIC-8_5.23x5.23mm_P1.27mmU9
1D_SchottkyDiode_SMD:D_SOD-123D15
1D_SchottkyDiode_SMD:D_SMAD14
1FanConnectorMycroft:FanPinHeader_1x04_P2.54mm_VerticalJ7
1LED_GREENLED_SMD:LED_0603_1608MetricPWR1
1Logo_Open_Hardware_SmallSymbol:OSHW-Logo2_14.6x12mm_SilkScreenOpenHardware1
1MMBT3904Package_TO_SOT_SMD:SOT-23Q1
1MP2359Package_TO_SOT_SMD:TSOT-23-6U7
1MountingHoleLogos:mycroft_logo_wordsH7
1MountingHoleLogos:simon-jester-logoH6
1MountingHoleLogos:mycroft_logo_graphicH5
1MuteMicButton_Switch_SMD:SW_SPDT_PCM12SW1
1Net-Tie_2NetTie:NetTie-2_SMD_Pad0.5mmNT1
1PWRConnector_PinHeader_2.54mm:PinHeader_1x02_P2.54mm_VerticalJ8
1PowerTPConnector_PinHeader_1.27mm:PinHeader_1x06_P1.27mm_Vertical_SMD_Pin1LeftJ5

The 225 most common of 235 parts.

More from MycroftAI/hardware-mycroft-mark-II

1
  • 4 layers78 × 86 mmSJ-201-R10, the printed circuit board in 3D

    SJ-201-R10

    MycroftAI/hardware-mycroft-mark-II

    Mycroft's Mark II Rpi mechanical, electrical and industrial designs

    185 parts113

Similar boards

  • 2 layers148.6 × 192.2 mmBadge, the printed circuit board in 3D

    Badge

    NuttyShell/NuttyBadge

    NuttyBadge: A NuttyShell crafted multi-tool. Opensourced Hardawre and Software

    169 parts31GPL-3.0
  • 2 layers76 × 45.2 mmMasjid2, the printed circuit board in 3D

    Masjid2

    Mahmoud1205/AthanLamp

    Hardware, software, and devlog of the Athan Lamp project.

    60 partsMIT
  • 2 layers121.5 × 92.5 mm50W 24-5V Buck OMER 260720V1, the printed circuit board in 3D

    50W 24-5V Buck OMER 260720V1

    yukselturkomer/50w-buck-converter-stm32

    Bu proje, STM32 mikrodenetleyici kullanılarak geliştirilmiş 50W kapasiteli bir Buck (Düşürücü) Konvertör sistemini ve bu sistemin kontrolünü sağlayan Nextion HMI (İnsan-Makine Arayüzü) tasarımını içermektedir.

    89 parts
  • 4 layers100 × 70 mmZSWatch Watch DevKit, the printed circuit board in 3D

    ZSWatch Watch DevKit

    ZSWatch/Watch-DevKit-HW

    The hardware repo for the ZSWatch Development Kit.

    132 parts188GPL-3.0
  • 4 layers73.4 × 72.7 mmAwatch2, the printed circuit board in 3D

    Awatch2

    jwise/aWatch2-hw

    hardware for aWatch2

    177 parts18
  • 2 layers76 × 113.8 mmEu sensor board, the printed circuit board in 3D

    Eu sensor board

    antevens/sladdseg

    Smart Wallplate/Switch for IKEA Bilresa E2490

    20 parts3
  • 4 layers96.8 × 72.3 mmNucleo audio shield 1, the printed circuit board in 3D

    Nucleo audio shield 1

    dwight9339/nucleo_h755_audio_shield

    KiCad PCB design files for a custom audio shield for the Nucleo H755ZI-Q dev board. Features an SGTL5000 audio codec, SD card slot, SPK0641HT4H-1 PDM mic, audio I/O headers and jacks, and a wheel-style volume pot.

    105 parts
  • 4 layers42.7 × 48.1 mmWCAM BREAKOUT PCB R03, the printed circuit board in 3D

    WCAM BREAKOUT PCB R03

    OV-Tech-GmbH/OVT13

    Open-source thin-and-light 13" laptop

    120 parts79CERN-OHL-S-2.0

Questions

How big is the SJ-201-R6 PCB?

It measures 67 × 98 mm and has 4 copper layers, 1.6 mm thick.

What parts does the SJ-201-R6 use?

235 parts, built around the ATTINY1614-SSN, SPK0641HT4H-1, AMS1117-3.3 and WS2812B. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the SJ-201-R6 KiCad files?

From the MycroftAI/hardware-mycroft-mark-II repository on GitHub, at the commit this page was made from: the board is mark-II-Rpi-devkit/KiCAD/SJ201-Raspberry Pi 4 Daughterboard/SJ-201-R6.kicad_pcb and its schematic mark-II-production/AudioAmp.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SJ-201-R6 design in my own project?

Its repository states no licence, so its author keeps all rights: ask MycroftAI before reusing the design.