imrishabh18/STM32F746G-DISCO

This code defines the hardware layout of a USB audio vu-meter circuit, including key components such as voltage regulators, microcontroller (STM32F303CCT6), audio codec (PCM2902), USB-Ethernet isolator, power regulation, reset switches, and associated passive components, with their physical footprints, pin configurations, and routing for PCB design.

Version
1.0.2
License
unset
Stars
0

src/board.tsx

import { CodecSection } from "./components/CodecSection/CodecSection";
import { DebugHeader } from "./components/DebugHeader/DebugHeader";
import { Display } from "./components/Display/Display";
import { LedBar } from "./components/LedBar/LedBar";
import { McuSection } from "./components/McuSection/McuSection";
import { PowerSection } from "./components/PowerSection/PowerSection";
import { UsbSection } from "./components/UsbSection/UsbSection";
import { BOARD_HEIGHT_MM, BOARD_WIDTH_MM, LAYOUT } from "./utils/constants";

export default function UsbAudioVuMeter() {
	return (
		<board
			width={`${BOARD_WIDTH_MM}mm`}
			height={`${BOARD_HEIGHT_MM}mm`}
			layers={2}
		>
			<UsbSection />
			<PowerSection />
			<CodecSection />
			<McuSection />
			<LedBar />
			<Display />
			<DebugHeader />

			<copperpour layer="top" connectsTo="net.GND" clearance="0.2mm" />
			<copperpour layer="bottom" connectsTo="net.GND" clearance="0.2mm" />

			<silkscreentext
				pcbX={LAYOUT.boardText.title.x}
				pcbY={LAYOUT.boardText.title.y}
				text="USB AUDIO VU METER - PCM2902 + STM32F303"
				fontSize="1.1mm"
			/>
			<silkscreentext
				pcbX={LAYOUT.boardText.usbNote.x}
				pcbY={LAYOUT.boardText.usbNote.y}
				text="USB diff pair short/matched; keep GND plane solid"
				fontSize="0.8mm"
			/>
		</board>
	);
}