Electronic Tutorials
Step-by-step electronics learning guides
Getting Started Tutorials
Tutorial 1: Your First Circuit
Learn the basics by building a simple LED circuit.
What You’ll Learn
- How to add components
- Making connections
- Running simulations
- Using basic measurement tools
Step-by-Step Instructions
- Start with a New Circuit
- Open CircuitJS1
- You should see a blank canvas
- Add a Voltage Source
- Right-click on empty space
- Navigate to: Inputs and Sources > Voltage Source (DC)
- Click to place the voltage source
- Right-click the voltage source and select Edit
- Set voltage to 5V
- Add a Resistor
- Right-click on empty space
- Navigate to: Passive Components > Resistor
- Place the resistor near the voltage source
- Edit the resistor value to 330Ω
- Add an LED
- Right-click on empty space
- Navigate to: Active Components > LED
- Place the LED in your circuit
- Make Connections
- Click on the positive terminal of the voltage source
- Drag to one end of the resistor
- Connect the other end of the resistor to the LED anode (positive)
- Connect the LED cathode (negative) back to the voltage source negative terminal
- Run the Simulation
- Press Space or click the play button
- The LED should light up!
What’s Happening?
- The resistor limits current through the LED
- Without it, the LED would be damaged by excessive current
- Current flows from positive to negative through the complete circuit
Tutorial 2: RC Timing Circuit
Build a circuit that demonstrates capacitor charging and discharging.
Components Needed
- 12V DC voltage source
- 1kΩ resistor
- 100µF capacitor
- Switch
- Voltmeter or scope probe
Circuit Construction
- Build the Basic RC Circuit
- Place voltage source, resistor, and capacitor in series
- Add a switch in series to control the circuit
- Add Measurement
- Right-click on the capacitor
- Select View in Scope to monitor voltage
- Or add a voltmeter across the capacitor
- Observe Charging
- Close the switch
- Watch the capacitor voltage rise exponentially
- Note the time constant τ = RC = 1kΩ × 100µF = 0.1 seconds
- Observe Discharging
- Add a second switch to discharge the capacitor through a resistor
- Watch the exponential decay
Key Learning Points
- Time Constant: τ = RC determines charging/discharging speed
- 63% Rule: Capacitor reaches 63% of final voltage in one time constant
- Exponential Behavior: Charging follows 1 - e^(-t/τ), discharging follows e^(-t/τ)
Tutorial 3: Op-Amp Basics
Learn operational amplifier fundamentals with a non-inverting amplifier.
Theory Review
- Op-amps have very high gain (ideally infinite)
- Golden Rules:
- No current flows into the inputs
- The op-amp tries to make both inputs equal
Building the Circuit
- Add the Op-Amp
- Use Active Components > Op-Amp (ideal)
- This gives us perfect characteristics for learning
- Create the Feedback Network
- Connect a 10kΩ resistor from output to inverting input (-)
- Connect a 1kΩ resistor from inverting input to ground
- Add Input Signal
- Connect an AC voltage source (1V, 1kHz) to the non-inverting input (+)
- Power Supply
- Connect ±15V supplies to the op-amp power pins
- Measure Output
- Use scope to monitor both input and output
Expected Results
- Gain: (R1 + R2) / R2 = (10k + 1k) / 1k = 11
- Output: 11V peak-to-peak sine wave
- Phase: Input and output are in phase (non-inverting)
Intermediate Tutorials
Tutorial 4: Digital Logic
Build and test basic logic gates and combinations.
Part A: Individual Gates
Test AND Gate
- Add 2-input AND gate
- Connect logic switches to inputs
- Connect LED to output
- Test all four input combinations
Truth Table Verification
A | B | Output 0 | 0 | 0 0 | 1 | 0 1 | 0 | 0 1 | 1 | 1
Part B: Combinational Logic
Build a simple combinational circuit: (A AND B) OR (C AND D)
- Use Multiple Gates
- 2× AND gates
- 1× OR gate
- 4× input switches
- 1× output LED
- Test Systematically
- Create a truth table
- Test each combination
- Verify expected behavior
Tutorial 5: Oscillators
Create circuits that generate their own timing signals.
Relaxation Oscillator
Using an op-amp comparator with RC timing:
- Basic Configuration
- Op-amp as comparator
- RC timing network
- Positive feedback for hysteresis
- Component Values
- Timing: R = 10kΩ, C = 1µF
- Feedback: R1 = 10kΩ, R2 = 10kΩ
- Frequency ≈ 1/(2.2 × RC) ≈ 45 Hz
Multivibrator Using Logic Gates
- Ring Oscillator
- Chain of NOT gates (odd number)
- RC delay networks
- Observe frequency vs. number of stages
Advanced Tutorials
Tutorial 6: Active Filters
Design and build active filter circuits.
Low-Pass Filter
- Sallen-Key Topology
- Op-amp buffer configuration
- Two RC stages
- Unity gain version
- Design Process
- Choose cutoff frequency (fc = 1000 Hz)
- Calculate component values
- R = 1.6kΩ, C = 100nF
- Frequency Response
- Sweep input frequency from 10 Hz to 100 kHz
- Plot magnitude response
- Verify -3dB point at cutoff frequency
- Observe -40dB/decade roll-off above cutoff
High-Pass Filter
- Swap R and C positions from low-pass design
- Same cutoff frequency calculation
- Opposite response: passes high frequencies, rejects low
Tutorial 7: Power Supply Design
Build a complete linear power supply.
Transformer and Rectification
- Step-Down Transformer
- 120V AC input
- 24V AC output
- Center-tapped for full-wave rectification
- Bridge Rectifier
- 4× 1N4007 diodes
- Convert AC to pulsating DC
- Filter Capacitor
- Large electrolytic capacitor (1000µF)
- Smooth the pulsating DC
Voltage Regulation
- Three-Terminal Regulator
- LM7812 for +12V output
- Input and output capacitors
- Heat sink considerations
- Load Testing
- Variable load resistor
- Monitor regulation under different loads
- Measure ripple and regulation
Troubleshooting Tutorials
Common Circuit Problems
Problem: Circuit Doesn’t Work
Systematic Debugging Approach:
- Check Power
- Verify voltage sources are connected
- Measure actual voltages with scope/meter
- Verify Connections
- Look for broken or missing connections
- Check for short circuits
- Component Values
- Double-check all component values
- Ensure realistic values (not too large/small)
- Grounding
- Ensure proper ground connections
- One common reference point
Problem: Oscilloscope Shows Nothing
- Signal Present?
- Check if circuit is actually running
- Verify signal source is active
- Scope Settings
- Appropriate time base
- Correct voltage scale
- Signal within scope range
- Probe Connections
- Verify probe points
- Check for high-impedance nodes
Practice Exercises
Exercise 1: Design Challenges
- LED Flasher: Create a circuit that blinks an LED at 1 Hz
- Voltage Divider: Design a circuit that outputs exactly 3.3V from 5V
- Logic Function: Implement F = A’B + AB’ (XOR function) using only NAND gates
Exercise 2: Analysis Practice
Given existing circuits: 1. Calculate expected voltages and currents 2. Verify with simulation 3. Explain any discrepancies
Exercise 3: Optimization
Take a working circuit and: 1. Reduce component count 2. Improve efficiency 3. Add protection features
Next Steps
After completing these tutorials:
- Explore Examples: Check out the Circuit Examples
- Read the User Guide: Detailed reference in User Guide
- Contribute: Learn about Contributing to the project
- Build from Source: See Building Guide for development
These tutorials progress from basic concepts to advanced circuit design. Take your time with each section and experiment with variations to deepen your understanding.