Building Circuits¶
Learn how to create power electronics circuits from scratch in the GeckoCIRCUITS editor.
Duration: 20 minutes
Prerequisites: First Simulation
Overview¶
Building a circuit involves four steps:
- Place components on the schematic
- Wire them together
- Set parameters for each component
- Add measurement points (SCOPE)
Step 1: Start a New Circuit¶
Go to File > New (Ctrl+N) to create an empty schematic.
Step 2: Place Components¶
Adding Components¶
- Select a component from the component palette (left panel or menu)
- Click on the schematic to place it
- The component appears at the clicked location
Component Categories¶
Power electronics circuits typically need:
| Category | What to Place | Why |
|---|---|---|
| Sources | Voltage source | Provides input power |
| Switches | MOSFET, IGBT, Diode | Switching elements |
| Passive | L, C, R | Energy storage and filtering |
| Ground | Ground symbol | Required - voltage reference |
| Control | PWM, Constant | Switch gate signals |
| Display | SCOPE | View simulation results |
Rotating and Flipping¶
- Right-click a component for rotation options
- Rotate to align terminals for clean wiring
Step 3: Wire Components¶
Making Connections¶
- Click on a component terminal (small square)
- Click to add wire waypoints (corners)
- Click the destination terminal to complete the connection
Wiring Tips¶
Clean Schematics
- Use horizontal and vertical wires only
- Align components on the grid
- Keep signal flow left-to-right, top-to-bottom
Common Wiring Mistakes¶
| Mistake | Symptom | Fix |
|---|---|---|
| Missing ground | Simulation fails | Add ground to return path |
| Open node | "Floating node" warning | Connect all terminals |
| Shorted source | Infinite current | Add series resistance/inductance |
Step 4: Set Parameters¶
Double-click each component to set its values.
Example: Buck Converter Parameters¶
| Component | Parameter | Example Value |
|---|---|---|
| V_source | Voltage | 48 V |
| MOSFET | (default) | - |
| Diode | (default) | - |
| Inductor | L | 100 uH |
| Capacitor | C | 47 uF |
| Resistor | R | 10 Ohm |
| PWM | Frequency | 100 kHz |
| PWM | Duty Cycle | 0.25 |
Unit Prefixes¶
GeckoCIRCUITS recognizes standard SI prefixes:
| Prefix | Symbol | Value |
|---|---|---|
| mega | M | 10^6 |
| kilo | k | 10^3 |
| milli | m | 10^-3 |
| micro | u | 10^-6 |
| nano | n | 10^-9 |
| pico | p | 10^-12 |
Step 5: Add Measurements¶
Placing a SCOPE¶
- Add a SCOPE block from the control components
- Connect signals you want to measure to the scope inputs
- Each input becomes a channel in the oscilloscope
What to Measure¶
For a typical power converter, measure:
- Output voltage across the load
- Inductor current through the inductor
- Switch node voltage at the switching point
Using Voltage and Current Probes¶
- Voltage probe - Measures voltage between two nodes
- Current probe - Measures current through a component (place in series)
Example: Build a Buck Converter¶
Follow these steps to build a basic buck converter from scratch:
Circuit Topology¶
Step-by-Step¶
- Place Vin - DC voltage source, set to 48V
- Place MOSFET - Connect drain to Vin positive
- Place Diode - Cathode to MOSFET source, anode to ground
- Place Inductor - From switch node to output
- Place Capacitor - From output to ground
- Place Resistor - From output to ground (load)
- Connect Ground - To source negative, diode anode, capacitor, resistor
- Add PWM - Connect to MOSFET gate (100 kHz, D=0.25)
- Add SCOPE - Connect to output voltage node
Verify Before Running¶
Checklist:
- All nodes connected (no floating nodes)
- Ground present
- Source has a return path
- Switch has a control signal
- SCOPE connected to measurement points
- Simulation time step appropriate (< 0.1 us for 100 kHz)
Simulation Settings¶
Before running, set appropriate simulation parameters:
| Parameter | Value | Why |
|---|---|---|
| Total time | 1 ms | ~100 switching periods |
| Time step | 50 ns | 200 steps per period |
| Solver | Backward Euler | Stable for switching circuits |
Next Steps¶
- PWM Basics - Understand PWM signals for switch control
- Running Simulations - Simulation settings and modes
- Buck Converter Tutorial - Full design with theory