Skip to main content

Components

Estimated read~3-5 min
TL;DR
  • Use a built-in component's exact type and case-sensitive pin names from the catalog.
  • Components need id, type, and value. Unknown types also need a pins list.
  • Use ComponentID.pinName to connect a pin, such as R1.b; see Netlists for connection examples.

The previews are generated by CircuitGen's symbol renderer. Values are examples. For each symbol, use the listed type and valid logical pins exactly as shown.

Built-in components​

SymbolTypeValid pinsExample value
Passive components
Resistor symbolresistora, b10 kΩ
Capacitor symbolcapacitora, b100 nF
Inductor symbolinductora, b10 mH
Diodes and LEDs
Diode symboldiodea (anode), b (cathode)1N4148
LED symbolleda (anode), b (cathode)red
Power sources and ground
Battery symbolbatteryp (positive), n (negative)9 V
DC source symboldc_sourcep (positive), n (negative)5 V
AC source symbolac_sourcep, n230 V AC
Current source symbolcurrent_sourcep, n2 mA
Ground symbolgroundgnd—
Switches and other components
Switch symbolswitcha, bpush button
Lamp symbollampa, b6 V
Fuse symbolfusea, b1 A
Transistors
NPN transistor symbolnpnC (collector), B (base), E (emitter)2N2222
PNP transistor symbolpnpC (collector), B (base), E (emitter)2N2907
N-channel MOSFET symbolnmosG (gate), D (drain), S (source)2N7000
P-channel MOSFET symbolpmosG (gate), D (drain), S (source)BS250

Polarity and pin notes​

  • diode and led: a is the anode and b is the cathode.
  • battery and dc_source: p is positive and n is negative. AC and current sources also connect through p and n.
  • A ground component draws a ground symbol at its gnd terminal. A net named GND, VCC, or 5V is only a connection name; it does not add a symbol or source.
  • Transistor pins use the conventional terminal labels shown in the table. The value can identify a part, but does not verify its electrical ratings or package pinout.

Integrated circuits and microcontrollers​

These components have more pins, so their pin mappings are listed alongside larger previews.

Operational amplifier​

Operational amplifier symbol
TypePins
opamp
Example: LM358
IN+ non-inverting input
IN- inverting input
OUT output
V+ positive supply
V- negative supply

NE555 timer​

NE555 symbol
TypePins and package numbers
ne555
Example: NE555
TRIG 2 · RESET 4 · CTRL 5 · THRES 6
OUT 3 · DISCH 7 · VCC 8 · GND 1

Arduino Uno​

Arduino Uno symbol
TypeLogical pins
arduino_uno
Example: Arduino Uno
Digital: D0 through D13
Analog: A0 through A5
Power/control: 3V3, 5V, VIN, GND, RESET

These are logical pins on CircuitGen's symbols. The board symbol does not verify connector placement, module compatibility, or electrical ratings.

Custom components​

Use a custom component when the part has no built-in type. Add pins to name its logical terminals; CircuitGen draws a rectangular symbol and places the pins around it.

Rendered custom soil sensor module symbol
{"id":"S1","type":"soil_sensor_module","value":"Sensor module","pins":["VCC","GND","OUT"]}

Connect its pins with references such as S1.OUT or S1.VCC. The pin names must be unique, case-sensitive strings of 1–24 characters using letters, digits, _, +, or -; a component can have 1–128 pins. Custom names describe the schematic only. CircuitGen does not confirm a module's real pinout, voltage levels, or ratings.

Component rules​

  • Every component needs id, type, and value. Values are strings of up to 100 characters; pins is optional for built-ins and required for unknown types.
  • IDs start with a letter and may then contain letters, digits, or underscores; maximum 32 characters. IDs must be unique in a netlist.
  • Types use the same 1–32 character naming pattern. Built-in types are exactly those in the catalog above.
  • Built-in pin lists cannot be changed. If pins is supplied for a built-in type, it must match its registered pins. ground allows one renamed pin; with multiple supplied pins it becomes a rectangular custom symbol.
  • Custom component types use letters, digits, and underscores, starting with a letter; custom pin names also allow + and -. Neither field checks a real part's physical connections.

Terminal references use ComponentID.pinName, for example R1.b or D1.a. See Netlists for how references are joined into nets.