mohan-bee/pocket-mic-tx-assembly

Pocket-sized ESP32-S3 wireless microphone transmitter with digital MEMS mic, 2.4‑GHz antenna/RF matching, USB/QSPI flash, Li‑ion charging and buck-boost power management, status LED, control key, and protective clip-on enclosure.

Version
0.0.3
License
unset
Stars
0

Use with the tscircuit CLI

tsci is the tscircuit CLI. Install it with npm install -g tscircuit.

tsci clone mohan-bee/pocket-mic-tx-assembly  # download the package files into ./pocket-mic-tx-assembly
tsci add mohan-bee/pocket-mic-tx-assembly    # add it to your project as @tsci/mohan-bee.pocket-mic-tx-assembly

In 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.

source/enclosure.tsx

import { assembly } from "tscircuit"
import frontTray from "./models/front-tray.glb"
import rearLid from "./models/rear-lid.glb"
import clip from "./models/clip.glb"
import key from "./models/key.glb"
import keeper from "./models/keeper.glb"
import acousticGasket from "./models/acoustic-gasket.glb"
import batteryEnvelope from "./models/battery-envelope.glb"

const cad = (glbUrl: string) => ({ glbUrl, modelUnitToMmScale: 1 })

export default function TransmitterHousing() {
  return (
    <assembly.device name="pocket-tx" displayName="Pocket Mic TX · C5">
      <assembly.part name="front-tray" displayName="Microphone-side tray" cadModel={cad(frontTray)} />
      <assembly.part name="rear-lid" displayName="Port-side slide-lock lid" cadModel={cad(rearLid)} />
      <assembly.part name="clip" displayName="Captive shirt clip" cadModel={cad(clip)} />
      <assembly.part name="key" displayName="Captive power key" cadModel={cad(key)} />
      <assembly.part name="keeper" displayName="Lid keeper" cadModel={cad(keeper)} />
      <assembly.part name="acoustic-gasket" displayName="Acoustic foam gasket" cadModel={cad(acousticGasket)} />
      <assembly.part name="battery-envelope" displayName="Protected 1S pack envelope" cadModel={cad(batteryEnvelope)} />
      <assembly.explosion.stage name="release-clip">
        <assembly.explosion.move targetRefs="clip" offX={0.4} />
        <assembly.explosion.move targetRefs="clip" offY={-25} />
      </assembly.explosion.stage>
      <assembly.explosion.stage name="open-enclosure" prevStageRef="release-clip">
        <assembly.explosion.move targetRefs="keeper" offX={9} />
        <assembly.explosion.move targetRefs={["rear-lid", "key"]} offY={-1.6} />
        <assembly.explosion.move targetRefs={["rear-lid", "key"]} offZ={21} />
        <assembly.explosion.move targetRefs="key" offZ={-8} />
        <assembly.explosion.move targetRefs="key" offX={7} />
        <assembly.explosion.move targetRefs="clip" offZ={29} />
        <assembly.explosion.move targetRefs="front-tray" offZ={-14} />
        <assembly.explosion.move targetRefs="acoustic-gasket" offZ={-6} />
      </assembly.explosion.stage>
      <assembly.explosion.stage name="separate-pack" prevStageRef="open-enclosure">
        <assembly.explosion.move targetRefs="battery-envelope" offY={-15} offZ={8} />
      </assembly.explosion.stage>
    </assembly.device>
  )
}