aj0070/epaper-badge
A 90×55 mm conference e-paper badge PCB combining an RF-BM-ND05 MCU module, 24-pin e-paper FPC interface with boost circuitry, USB-C/battery power OR-ing, buttons, status LED, SWD header, and an integrated NFC antenna loop.
- Version
- 1.0.0
- License
- unset
- Stars
- 0
Use with the tscircuit CLI
tsci is the tscircuit CLI. Install it with npm install -g tscircuit.
tsci clone aj0070/epaper-badge # download the package files into ./epaper-badge
tsci add aj0070/epaper-badge # add it to your project as @tsci/aj0070.epaper-badgeIn a cloned or new (tsci init) project: tsci dev starts a local preview, tsci build outputs Circuit JSON, and tsci push publishes to tscircuit.com.
index.circuit.tsx
PCB
Schematic
import { RF_BM_ND05 } from "./imports/RF_BM_ND05"
import { EPD_FPC } from "./imports/EPD_FPC"
import { BS_02_A1AJ010 } from "./imports/BS_02_A1AJ010"
// pcbPath entries on a <trace> are resolved in the from-port component frame
// (U1 sits at 12,-2 rotated 180), so these are the board points mapped through
// x' = 12 - x, y' = -2 - y. Feed is P0.09, return is P0.10.
const NFC_PATH = [
{ x: 3.81, y: -7.925 },
{ x: 3.81, y: -9.8 },
{ x: 1.8, y: -9.8 },
{ x: 1.8, y: -16.0 },
{ x: -28.0, y: -16.0 },
{ x: -28.0, y: -27.5 },
{ x: 16.0, y: -27.5 },
{ x: 16.0, y: -17.7 },
{ x: -26.3, y: -17.7 },
{ x: -26.3, y: -25.8 },
{ x: 14.3, y: -25.8 },
{ x: 14.3, y: -19.4 },
{ x: -24.6, y: -19.4 },
{ x: -24.6, y: -24.1 },
{ x: 12.6, y: -24.1 },
{ x: 12.6, y: -21.1 },
{ x: -22.9, y: -21.1 },
{ x: -22.9, y: -21.1, via: true, toLayer: "bottom" },
{ x: -22.9, y: -11.0 },
{ x: 7.0, y: -11.0 },
{ x: 7.0, y: -11.0, via: true, toLayer: "top" },
{ x: 7.0, y: -9.8 },
{ x: 5.08, y: -9.8 },
{ x: 5.08, y: -7.925 },
]
export default () => (
<board
title="Conference e-paper badge"
width="90mm"
height="55mm"
layers={2}
borderRadius="3mm"
minTraceWidth="0.15mm"
defaultTraceWidth="0.25mm"
>
<net name="GND" isGroundNet nominalTraceWidth="0.5mm" />
<net name="VSYS" isPowerNet nominalTraceWidth="0.5mm" />
<net name="VBUS" isPowerNet nominalTraceWidth="0.5mm" />
<net name="VUSB33" isPowerNet nominalTraceWidth="0.4mm" />
<net name="VBAT" isPowerNet nominalTraceWidth="0.4mm" />
<net name="NRST" nominalTraceWidth="0.2mm" />
<net name="NFC_COIL" nominalTraceWidth="0.5mm" />
{/* ---------------- schematic pages ---------------- */}
<schematicsheet name="Power" displayName="Power and USB" sheetIndex={0} />
<schematicsheet name="Panel" displayName="E-paper panel" sheetIndex={1} />
<schematicsheet name="Mcu" displayName="MCU and UI" sheetIndex={2} />
<schematicsection name="SecPower" displayName="USB and power path" />
<schematicsection name="SecPanel" displayName="E-paper boost" />
<schematicsection name="SecMcu" displayName="MCU and user IO" />
{/* ---------------- power entry ---------------- */}
<connector
name="J2"
standard="usb_c"
pcbX={-39.51}
pcbY={12}
pcbRotation={270}
schSheetName="Power"
schSectionName="SecPower"
schWidth={1.575}
schX={-4}
schY={6}
/>
<resistor
name="R2"
resistance="5.1k"
footprint="0402"
pcbX={-38}
pcbY={22}
schSheetName="Power"
schSectionName="SecPower"
schX={-2.4}
schY={8}
schRotation={270}
/>
<resistor
name="R3"
resistance="5.1k"
footprint="0402"
pcbX={-34.63}
pcbY={22}
schSheetName="Power"
schSectionName="SecPower"
schX={-1.2}
schY={8}
schRotation={270}
/>
<capacitor
name="C8"
capacitance="1uF"
footprint="0603"
pcbX={-34}
pcbY={4}
schSheetName="Power"
schSectionName="SecPower"
schX={-3.8}
schY={3.6}
schRotation={270}
/>
<chip
name="U2"
footprint="sot23_5"
pinLabels={{
pin1: "VIN",
pin2: "GND",
pin3: "EN",
pin4: "NC",
pin5: "VOUT",
}}
pinAttributes={{ VIN: { requiresPower: true }, VOUT: { providesPower: true } }}
manufacturerPartNumber="AP2112K-3.3"
pcbX={-30}
pcbY={4}
schSheetName="Power"
schSectionName="SecPower"
schX={-1.8}
schY={3.6}
/>
<capacitor
name="C9"
capacitance="1uF"
footprint="0603"
pcbX={-25}
pcbY={4}
schSheetName="Power"
schSectionName="SecPower"
schX={0.2}
schY={3.6}
schRotation={270}
/>
<diode
name="D2"
variant="schottky"
footprint="sod323"
manufacturerPartNumber="MBR0530"
pcbX={-21}
pcbY={4}
schSheetName="Power"
schSectionName="SecPower"
schX={2.2}
schY={4.6}
/>
<diode
name="D3"
variant="schottky"
footprint="sod323"
manufacturerPartNumber="MBR0530"
pcbX={-15}
pcbY={4}
schSheetName="Power"
schSectionName="SecPower"
schX={2.2}
schY={2.6}
/>
<capacitor
name="C10"
capacitance="1uF"
footprint="0603"
pcbX={-11}
pcbY={4}
schSheetName="Power"
schSectionName="SecPower"
schX={4}
schY={3.6}
schRotation={270}
/>
<BS_02_A1AJ010
name="BT1"
pcbX={-27}
pcbY={-18}
schSheetName="Power"
schSectionName="SecPower"
schX={-4}
schY={1.4}
schRotation={270}
/>
{/* ---------------- e-paper connector and boost ---------------- */}
<EPD_FPC
name="J1"
pcbX={-25}
pcbY={25.2}
schSheetName="Panel"
schSectionName="SecPanel"
schWidth={2.554}
schPinArrangement={{
topSide: {
pins: ["VDD", "VDD2", "VDDIO", "GND", "BS1", "SHIELD1", "SHIELD2"],
direction: "left-to-right",
},
leftSide: {
pins: ["RESE", "VSH2", "VSH1", "VGH", "VGL", "VCOM", "VPP"],
direction: "top-to-bottom",
},
rightSide: {
pins: ["BUSY", "RST", "DC", "CS", "SCL", "SDA"],
direction: "top-to-bottom",
},
bottomSide: {
pins: ["NC1", "NC4", "TSCL", "TSDA", "GDR", "NC24"],
direction: "left-to-right",
},
}}
schX={0}
schY={6}
/>
<inductor
name="L1"
inductance="10uH"
footprint="0603"
pcbX={-35}
pcbY={19}
schSheetName="Panel"
schSectionName="SecPanel"
schX={-4.6}
schY={2.0}
/>
<diode
name="D1"
variant="schottky"
footprint="sod323"
manufacturerPartNumber="MBR0530"
pcbX={-31}
pcbY={19}
schSheetName="Panel"
schSectionName="SecPanel"
schX={-3.0}
schY={1.0}
schRotation={180}
/>
<resistor
name="R1"
resistance="0.47"
footprint="0603"
pcbX={-35}
pcbY={16}
schSheetName="Panel"
schSectionName="SecPanel"
schX={-4.6}
schY={9.2}
schRotation={270}
/>
<capacitor
name="C1"
capacitance="1uF"
footprint="0603"
pcbX={-32}
pcbY={16}
pcbRotation={180}
schSheetName="Panel"
schSectionName="SecPanel"
schX={0.8}
schY={10.6}
schRotation={270}
/>
<capacitor
name="C2"
capacitance="1uF"
footprint="0603"
pcbX={-29}
pcbY={16}
schSheetName="Panel"
schSectionName="SecPanel"
schX={2.0}
schY={10.6}
schRotation={270}
/>
<capacitor
name="C3"
capacitance="1uF"
footprint="0603"
pcbX={-24}
pcbY={19}
schSheetName="Panel"
schSectionName="SecPanel"
schX={-4.6}
schY={5.6}
schRotation={270}
/>
<capacitor
name="C4"
capacitance="1uF"
footprint="0603"
pcbX={-21}
pcbY={19}
schSheetName="Panel"
schSectionName="SecPanel"
schX={-4.6}
schY={4.4}
schRotation={270}
/>
<capacitor
name="C5"
capacitance="1uF"
footprint="0603"
pcbX={-26}
pcbY={16}
schSheetName="Panel"
schSectionName="SecPanel"
schX={-4.6}
schY={6.8}
schRotation={270}
/>
<capacitor
name="C6"
capacitance="1uF"
footprint="0603"
pcbX={-23}
pcbY={16}
schSheetName="Panel"
schSectionName="SecPanel"
schX={-4.6}
schY={8.0}
schRotation={270}
/>
<capacitor
name="C7"
capacitance="1uF"
footprint="0603"
pcbX={-20}
pcbY={16}
schSheetName="Panel"
schSectionName="SecPanel"
schX={-4.6}
schY={3.2}
schRotation={270}
/>
{/* ---------------- MCU ---------------- */}
<RF_BM_ND05
name="U1"
pcbX={12}
pcbY={-2}
pcbRotation={180}
schSheetName="Mcu"
schSectionName="SecMcu"
schWidth={5.024}
schPinArrangement={{
topSide: { pins: ["GND", "3_3V"], direction: "left-to-right" },
leftSide: {
pins: ["P02", "P03", "P04", "P05", "P06", "P07"],
direction: "top-to-bottom",
},
rightSide: {
pins: ["P11", "P12", "P13", "RST", "SWDIO", "SWCLK", "P17"],
direction: "top-to-bottom",
},
bottomSide: {
pins: [
"P08",
"P09",
"P10",
"P14",
"P15",
"P16",
"P19",
"P20",
"P21",
"P22",
"P23",
"P24",
"P25",
"P26",
"P27",
"P28",
"P29",
"P30",
],
direction: "left-to-right",
},
}}
schX={0}
schY={6}
/>
<pinheader
name="J3"
pinCount={4}
pitch="2.54mm"
pinLabels={["SWDIO", "SWCLK", "V33", "GND"]}
schWidth={0.675}
pcbX={30}
pcbY={3}
schSheetName="Mcu"
schSectionName="SecMcu"
schX={4.5}
schY={8.5}
/>
<pushbutton
name="SW1"
footprint="smdpushbutton"
pcbX={-2}
pcbY={-23}
schSheetName="Mcu"
schSectionName="SecMcu"
schX={4.6}
schY={3.2}
/>
<pushbutton
name="SW2"
footprint="smdpushbutton"
pcbX={6}
pcbY={-23}
schSheetName="Mcu"
schSectionName="SecMcu"
schX={5.9}
schY={3.2}
/>
<pushbutton
name="SW3"
footprint="smdpushbutton"
pcbX={14}
pcbY={-23}
schSheetName="Mcu"
schSectionName="SecMcu"
schX={7.2}
schY={3.2}
/>
<resistor
name="R4"
resistance="1k"
footprint="0402"
pcbX={23}
pcbY={-20}
schSheetName="Mcu"
schSectionName="SecMcu"
schX={3.2}
schY={6.8}
schRotation={270}
/>
<led
name="LED1"
color="green"
footprint="0603"
pcbX={27}
pcbY={-20}
schSheetName="Mcu"
schSectionName="SecMcu"
schX={3.2}
schY={5}
schRotation={270}
/>
<capacitor
name="C11"
capacitance="100nF"
footprint="0402"
pcbX={20}
pcbY={-21.5}
schSheetName="Mcu"
schSectionName="SecMcu"
schX={6.5}
schY={8.5}
schRotation={270}
/>
<capacitor
name="C12"
capacitance="100pF"
footprint="0402"
pcbX={1}
pcbY={0}
schSheetName="Mcu"
schSectionName="SecMcu"
schX={6.5}
schY={6.5}
schRotation={270}
/>
<capacitor
name="C13"
capacitance="100pF"
footprint="0402"
pcbX={-1}
pcbY={0}
schSheetName="Mcu"
schSectionName="SecMcu"
schX={7.7}
schY={6.5}
schRotation={270}
/>
{/* ---------------- lanyard hole ---------------- */}
<hole name="H1" diameter="3.2mm" pcbX={-41.5} pcbY={23} />
{/* ---------------- USB-C ---------------- */}
<trace from="J2.VBUS1" to="net.VBUS" />
<trace from="J2.VBUS2" to="net.VBUS" />
<trace from="J2.GND1" to="net.GND" />
<trace from="J2.GND2" to="net.GND" />
<trace from="J2.SHELL1" to="net.GND" />
<trace from="J2.SHELL2" to="net.GND" />
<trace from="J2.CC1" to="R2.pin1" />
<trace from="R2.pin2" to="net.GND" />
<trace from="J2.CC2" to="R3.pin1" />
<trace from="R3.pin2" to="net.GND" />
{/* ---------------- power path: USB LDO OR battery ---------------- */}
<trace from="net.VBUS" to="C8.pin1" />
<trace from="C8.pin2" to="net.GND" />
<trace from="net.VBUS" to="U2.VIN" />
<trace from="net.VBUS" to="U2.EN" />
<trace from="U2.GND" to="net.GND" />
<trace from="U2.VOUT" to="net.VUSB33" />
<trace from="net.VUSB33" to="C9.pin1" />
<trace from="C9.pin2" to="net.GND" />
<trace from="net.VUSB33" to="D2.anode" />
<trace from="D2.cathode" to="net.VSYS" />
<trace from="BT1.pin1" to="net.VBAT" />
<trace from="BT1.pin2" to="net.GND" />
<trace from="net.VBAT" to="D3.anode" />
<trace from="D3.cathode" to="net.VSYS" />
<trace from="net.VSYS" to="C10.pin1" />
<trace from="C10.pin2" to="net.GND" />
{/* ---------------- e-paper panel ---------------- */}
<trace from="U1.3_3V" to="net.VSYS" />
<trace from="U1.GND" to="net.GND" />
<trace from="J1.GND" to="net.GND" />
<trace from="J1.SHIELD1" to="net.GND" />
<trace from="J1.SHIELD2" to="net.GND" />
<trace from="J1.BS1" to="net.GND" />
<trace from="J1.VDD" to="net.VSYS" />
<trace from="J1.VDD2" to="net.VSYS" />
<trace from="J1.VDDIO" to="net.VSYS" />
<trace from="J1.VDD" to="C1.pin1" />
<trace from="C1.pin2" to="net.GND" />
<trace from="J1.VDDIO" to="C2.pin1" />
<trace from="C2.pin2" to="net.GND" />
<trace from="J1.VPP" to="L1.pin1" />
<trace from="L1.pin2" to="net.VSYS" />
<trace from="J1.VPP" to="D1.anode" />
<trace from="D1.cathode" to="J1.VGH" />
<trace from="J1.VGH" to="C3.pin1" />
<trace from="C3.pin2" to="net.GND" />
<trace from="J1.VGL" to="C4.pin1" />
<trace from="C4.pin2" to="net.GND" />
<trace from="J1.VSH1" to="C5.pin1" />
<trace from="C5.pin2" to="net.GND" />
<trace from="J1.VSH2" to="C6.pin1" />
<trace from="C6.pin2" to="net.GND" />
<trace from="J1.VCOM" to="C7.pin1" />
<trace from="C7.pin2" to="net.GND" />
<trace from="J1.RESE" to="R1.pin1" />
<trace from="R1.pin2" to="net.GND" />
<trace from="U1.P02" to="J1.BUSY" />
<trace from="U1.P03" to="J1.RST" />
<trace from="U1.P04" to="J1.DC" />
<trace from="U1.P05" to="J1.CS" />
<trace from="U1.P06" to="J1.SCL" />
<trace from="U1.P07" to="J1.SDA" />
{/* ---------------- buttons, LED, reset, SWD ---------------- */}
<trace from="SW1.pin1" to="net.GND" />
<trace from="SW1.pin2" to="U1.P11" />
<trace from="SW2.pin1" to="net.GND" />
<trace from="SW2.pin2" to="U1.P12" />
<trace from="SW3.pin1" to="net.GND" />
<trace from="SW3.pin2" to="net.NRST" />
<trace from="net.NRST" to="U1.RST" />
<trace from="net.NRST" to="C11.pin1" />
<trace from="C11.pin2" to="net.GND" />
<trace from="U1.P13" to="R4.pin1" />
<trace from="R4.pin2" to="LED1.pin1" />
<trace from="LED1.pin2" to="net.GND" />
<trace from="U1.SWDIO" to="J3.SWDIO" />
<trace from="U1.SWCLK" to="J3.SWCLK" />
<trace from="J3.V33" to="net.VSYS" />
<trace from="J3.GND" to="net.GND" />
{/* ---------------- NFC loop and tuning ---------------- */}
<trace from="U1.P09" to="net.NFC_COIL" />
<trace from="U1.P10" to="net.NFC_COIL" />
<trace from="net.NFC_COIL" to="C12.pin1" />
<trace from="C12.pin2" to="net.GND" />
<trace from="net.NFC_COIL" to="C13.pin1" />
<trace from="C13.pin2" to="net.GND" />
<trace
from="U1.P09"
to="U1.P10"
thickness="0.5mm"
pcbPath={NFC_PATH}
/>
</board>
)