Components
- Use a built-in component's exact
typeand case-sensitive pin names from the catalog. - Components need
id,type, andvalue. Unknown types also need apinslist. - Use
ComponentID.pinNameto connect a pin, such asR1.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
| Symbol | Type | Valid pins | Example value |
|---|---|---|---|
| Passive components | |||
resistor | a, b | 10 kΩ | |
capacitor | a, b | 100 nF | |
inductor | a, b | 10 mH | |
| Diodes and LEDs | |||
diode | a (anode), b (cathode) | 1N4148 | |
led | a (anode), b (cathode) | red | |
| Power sources and ground | |||
battery | p (positive), n (negative) | 9 V | |
dc_source | p (positive), n (negative) | 5 V | |
ac_source | p, n | 230 V AC | |
current_source | p, n | 2 mA | |
ground | gnd | — | |
| Switches and other components | |||
switch | a, b | push button | |
lamp | a, b | 6 V | |
fuse | a, b | 1 A | |
| Transistors | |||
npn | C (collector), B (base), E (emitter) | 2N2222 | |
pnp | C (collector), B (base), E (emitter) | 2N2907 | |
nmos | G (gate), D (drain), S (source) | 2N7000 | |
pmos | G (gate), D (drain), S (source) | BS250 | |
Polarity and pin notes
diodeandled:ais the anode andbis the cathode.batteryanddc_source:pis positive andnis negative. AC and current sources also connect throughpandn.- A
groundcomponent draws a ground symbol at itsgndterminal. A net namedGND,VCC, or5Vis 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
| Type | Pins |
|---|---|
opampExample: LM358 | IN+ non-inverting inputIN- inverting inputOUT outputV+ positive supplyV- negative supply |
NE555 timer
| Type | Pins and package numbers |
|---|---|
ne555Example: NE555 | TRIG 2 · RESET 4 · CTRL 5 · THRES 6OUT 3 · DISCH 7 · VCC 8 · GND 1 |
Arduino Uno
| Type | Logical pins |
|---|---|
arduino_unoExample: Arduino Uno | Digital: D0 through D13Analog: A0 through A5Power/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.
{"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, andvalue. Values are strings of up to 100 characters;pinsis 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
pinsis supplied for a built-in type, it must match its registered pins.groundallows 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.