Skip to content

tscircuit/jscad-electronics

Repository files navigation

jscad-electronics

3D Electronic Component Models for JSCAD and tscircuit

npm version License: MIT

Docs · Website · Twitter · discord · Quickstart · Online Playground

jscad-electronics is a library of 3D electronic component models for use with JSCAD and tscircuit. It provides accurate and customizable 3D models for various electronic components, making it easier to create 3D representations of PCBs and electronic assemblies.

Contribution Guide:

image

Features

  • Wide range of electronic component models (e.g., resistors, capacitors, ICs, connectors)
  • Customizable dimensions and parameters for each component
  • Integration with tscircuit for advanced PCB design capabilities
  • Easy-to-use React components for JSCAD integration

Installation

Install jscad-electronics using npm:

npm install jscad-electronics

Usage

Here's a basic example of how to use jscad-electronics with JSCAD:

import { JsCadView } from "jscad-fiber"
import { SOT233P, ExtrudedPads } from "jscad-electronics"

export default () => {
  return (
    <JsCadView zAxisUp>
      <SOT233P />
      <ExtrudedPads footprint="sot23" />
    </JsCadView>
  )
}

This example creates a 3D model of an SOT-23-3P component with extruded pads.

Available Components

jscad-electronics includes models for various components, including:

  • Resistors (0402, 0603, 0805)
  • Capacitors
  • ICs (DIP, SOIC, TSSOP, QFN, QFP, BGA)
  • Diodes (SOD-123)
  • Transistors (SOT-23, SOT-563, SOT-723)
  • And more!

Check the lib directory for a full list of available components.

Customization

Most components accept parameters for customization. For example:

<QFN fullWidth={4} height={0.8} thermalPadSize={2} />

Refer to the individual component files for available customization options.

Integration with tscircuit

jscad-electronics is designed to work seamlessly with tscircuit. You can use these 3D models in your tscircuit projects to create accurate 3D representations of your PCB designs just by using the footprint prop

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

If you encounter any problems or have any questions, please open an issue on the GitHub repository.

About

jscad functions for creating components for electronics

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages