Legacy Circuit Mockups
A skill for creating breadboard circuit mockups and visual diagrams for retro computing and electronics projects. This skill leverages HTML5 Canvas drawing mechanisms to render interactive circuit layouts featuring vintage components like the 6502 microprocessor, 555 timer ICs, EEPROMs, and 7400-series logic gates.
When to Use This Skill
- User asks to "create a breadboard layout" or "mockup a circuit"
- User wants to visualize component placement on a breadboard
- User needs a visual reference for building a 6502 computer
- User asks to "draw a circuit" or "diagram electronics"
- User wants to create educational electronics visuals
- User mentions Ben Eater tutorials or retro computing projects
- User asks to mockup 555 timer circuits or LED projects
- User needs to visualize wire connections between components
Prerequisites
- Understanding of component pinouts from bundled reference files
- Knowledge of breadboard layout conventions (rows, columns, power rails)
Supported Components
Microprocessors & Memory
| Component |
Pins |
Description |
| W65C02S |
40-pin DIP |
8-bit microprocessor with 16-bit address bus |
| 28C256 |
28-pin DIP |
32KB parallel EEPROM |
| W65C22 |
40-pin DIP |
Versatile Interface Adapter (VIA) |
| 62256 |
28-pin DIP |
32KB static RAM |
Logic & Timer ICs
| Component |
Pins |
Description |
| NE555 |
8-pin DIP |
Timer IC for timing and oscillation |
| 7400 |
14-pin DIP |
Quad 2-input NAND gate |
| 7402 |
14-pin DIP |
Quad 2-input NOR gate |
| 7404 |
14-pin DIP |
Hex inverter (NOT gate) |
| 7408 |
14-pin DIP |
Quad 2-input AND gate |
| 7432 |
14-pin DIP |
Quad 2-input OR gate |
Passive & Active Components
| Component |
Description |
| LED |
Light emitting diode (various colors) |
| Resistor |
Current limiting (configurable values) |
| Capacitor |
Filtering and timing (ceramic/electrolytic) |
| Crystal |
Clock oscillator |
| Switch |
Toggle switch (latching) |
| Button |
Momentary push button |
| Potentiometer |
Variable resistor |
| Photoresistor |
Light-dependent resistor |
Grid System
// Standard breadboard grid: 20px spacing
const gridSize = 20;
const cellX = Math.floor(x / gridSize) * gridSize;
const cellY = Math.floor(y / gridSize) * gridSize;
Component Rendering Pattern
// All components follow this structure:
{
type: 'component-type',
x: gridX,
y: gridY,
width: componentWidth,
height: componentHeight,
rotation: 0, // 0, 90, 180, 270
properties: { /* component-specific data */ }
}
Wire Connections
// Wire connection format:
{
start: { x: startX, y: startY },
end: { x: endX, y: endY },
color: '#ff0000' // Wire color coding
}
Step-by-Step Workflows
Creating a Basic LED Circuit Mockup
- Define breadboard dimensions and grid
- Place power rail connections (+5V and GND)
- Add LED component with anode/cathode orientation
- Place current-limiting resistor
- Draw wire connections between components
- Add labels and annotations
Creating a 555 Timer Circuit
- Place NE555 IC on breadboard (pins 1-4 left, 5-8 right)
- Connect pin 1 (GND) to ground rail
- Connect pin 8 (Vcc) to power rail
- Add timing resistors and capacitors
- Wire trigger and threshold connections
- Connect output to LED or other load
Creating a 6502 Microprocessor Layout
- Place W65C02S centered on breadboard
- Add 28C256 EEPROM for program storage
- Place W65C22 VIA for I/O
- Add 7400-series logic for address decoding
- Wire address bus (A0-A15)
- Wire data bus (D0-D7)
- Connect control signals (R/W, PHI2, RESB)
- Add reset button and clock crystal
Component Pinout Quick Reference
555 Timer (8-pin DIP)
| Pin |
Name |
Function |
| 1 |
GND |
Ground (0V) |
| 2 |
TRIG |
Trigger (< 1/3 Vcc starts timing) |
| 3 |
OUT |
Output (source/sink 200mA) |
| 4 |
RESET |
Active-low reset |
| 5 |
CTRL |
Control voltage (bypass with 10nF) |
| 6 |
THR |
Threshold (> 2/3 Vcc resets) |
| 7 |
DIS |
Discharge (open collector) |
| 8 |
Vcc |
Supply (+4.5V to +16V) |
W65C02S (40-pin DIP) - Key Pins
| Pin |
Name |
Function |
| 8 |
VDD |
Power supply |
| 21 |
VSS |
Ground |
| 37 |
PHI2 |
System clock input |
| 40 |
RESB |
Active-low reset |
| 34 |
RWB |
Read/Write signal |
| 9-25 |
A0-A15 |
Address bus |
| 26-33 |
D0-D7 |
Data bus |
28C256 EEPROM (28-pin DIP) - Key Pins
| Pin |
Name |
Function |
| 14 |
GND |
Ground |
| 28 |
VCC |
Power supply |
| 20 |
CE |
Chip enable (active-low) |
| 22 |
OE |
Output enable (active-low) |
| 27 |
WE |
Write enable (active-low) |
| 1-10, 21-26 |
A0-A14 |
Address inputs |
| 11-19 |
I/O0-I/O7 |
Data bus |
Formulas Reference
Resistor Calculations
- Ohm's Law: V = I × R
- LED Current: R = (Vcc - Vled) / Iled
- Power: P = V × I = I² × R
555 Timer Formulas
Astable Mode:
- Frequency: f = 1.44 / ((R1 + 2×R2) × C)
- High time: t₁ = 0.693 × (R1 + R2) × C
- Low time: t₂ = 0.693 × R2 × C
- Duty cycle: D = (R1 + R2) / (R1 + 2×R2) × 100%
Monostable Mode:
- Pulse width: T = 1.1 × R × C
Capacitor Calculations
- Capacitive reactance: Xc = 1 / (2πfC)
- Energy stored: E = ½ × C × V²
Color Coding Conventions
Wire Colors
| Color |
Purpose |
| Red |
+5V / Power |
| Black |
Ground |
| Yellow |
Clock / Timing |
| Blue |
Address bus |
| Green |
Data bus |
| Orange |
Control signals |
| White |
General purpose |
LED Colors
| Color |
Forward Voltage |
| Red |
1.8V - 2.2V |
| Green |
2.0V - 2.2V |
| Yellow |
2.0V - 2.2V |
| Blue |
3.0V - 3.5V |
| White |
3.0V - 3.5V |
Build Examples
Build 1 — Single LED
Components: Red LED, 220Ω resistor, jumper wires, power source
Steps:
- Insert black jumper wire from power GND to row A5
- Insert red jumper wire from power +5V to row J5
- Place LED with cathode (short leg) in row aligned with GND
- Place 220Ω resistor between power and LED anode
Build 2 — 555 Astable Blinker
Components: NE555, LED, resistors (10kΩ, 100kΩ), capacitor (10µF)
Steps:
- Place 555 IC straddling center channel
- Connect pin 1 to GND, pin 8 to +5V
- Connect pin 4 to pin 8 (disable reset)
- Wire 10kΩ between pin 7 and +5V
- Wire 100kΩ between pins 6 and 7
- Wire 10µF between pin 6 and GND
- Connect pin 3 (output) to LED circuit
Troubleshooting
| Issue |
Solution |
| LED doesn't light |
Check polarity (anode to +, cathode to -) |
| Circuit doesn't power |
Verify power rail connections |
| IC not working |
Check VCC and GND pin connections |
| 555 not oscillating |
Verify threshold/trigger capacitor wiring |
| Microprocessor stuck |
Check RESB is HIGH after reset pulse |
References
Detailed component specifications are available in the bundled reference files:
- 555.md - Complete 555 timer IC specification
- 6502.md - MOS 6502 microprocessor details
- 6522.md - W65C22 VIA interface adapter
- 28256-eeprom.md - AT28C256 EEPROM specification
- 6C62256.md - 62256 SRAM details
- 7400-series.md - TTL logic gate pinouts
- assembly-compiler.md - Assembly compiler specification
- assembly-language.md - Assembly language specification
- basic-electronic-components.md - Resistors, capacitors, switches
- breadboard.md - Breadboard specifications
- common-breadboard-components.md - Comprehensive component reference
- connecting-electronic-components.md - Step-by-step build guides
- emulator-28256-eeprom.md - Emulating 28256-eeprom specification
- emulator-6502.md - Emulating 6502 specification
- emulator-6522.md - Emulating 6522 specification
- emulator-6C62256.md - Emulating 6C62256 specification
- emulator-lcd.md - Emulating a LCD specification
- lcd.md - LCD display interfacing
- minipro.md - EEPROM programmer usage
- t48eeprom-programmer.md - T48 programmer reference
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: legacy-circuit-mockups3description: Generate breadboard circuit mockups and visual diagrams using HTML5 Canvas drawing techniques. Use when asked to create circuit layouts, visualize electronic component placements, draw breadboard diagrams, mockup 6502 builds, generate retro computer schematics, or design vintage electronics projects. Supports 555 timers, W65C02S microprocessors, 28C256 EEPROMs, W65C22 VIA chips, 7400-series logic gates, LEDs, resistors, capacitors, switches, buttons, crystals, and wires. Use when this capability is needed.4---56# Legacy Circuit Mockups78A skill for creating breadboard circuit mockups and visual diagrams for retro computing and electronics projects. This skill leverages HTML5 Canvas drawing mechanisms to render interactive circuit layouts featuring vintage components like the 6502 microprocessor, 555 timer ICs, EEPROMs, and 7400-series logic gates.910## When to Use This Skill1112- User asks to "create a breadboard layout" or "mockup a circuit"13- User wants to visualize component placement on a breadboard14- User needs a visual reference for building a 6502 computer15- User asks to "draw a circuit" or "diagram electronics"16- User wants to create educational electronics visuals17- User mentions Ben Eater tutorials or retro computing projects18- User asks to mockup 555 timer circuits or LED projects19- User needs to visualize wire connections between components2021## Prerequisites2223- Understanding of component pinouts from bundled reference files24- Knowledge of breadboard layout conventions (rows, columns, power rails)2526## Supported Components2728### Microprocessors & Memory2930| Component | Pins | Description |31|-----------|------|-------------|32| W65C02S | 40-pin DIP | 8-bit microprocessor with 16-bit address bus |33| 28C256 | 28-pin DIP | 32KB parallel EEPROM |34| W65C22 | 40-pin DIP | Versatile Interface Adapter (VIA) |35| 62256 | 28-pin DIP | 32KB static RAM |3637### Logic & Timer ICs3839| Component | Pins | Description |40|-----------|------|-------------|41| NE555 | 8-pin DIP | Timer IC for timing and oscillation |42| 7400 | 14-pin DIP | Quad 2-input NAND gate |43| 7402 | 14-pin DIP | Quad 2-input NOR gate |44| 7404 | 14-pin DIP | Hex inverter (NOT gate) |45| 7408 | 14-pin DIP | Quad 2-input AND gate |46| 7432 | 14-pin DIP | Quad 2-input OR gate |4748### Passive & Active Components4950| Component | Description |51|-----------|-------------|52| LED | Light emitting diode (various colors) |53| Resistor | Current limiting (configurable values) |54| Capacitor | Filtering and timing (ceramic/electrolytic) |55| Crystal | Clock oscillator |56| Switch | Toggle switch (latching) |57| Button | Momentary push button |58| Potentiometer | Variable resistor |59| Photoresistor | Light-dependent resistor |6061### Grid System6263```javascript64// Standard breadboard grid: 20px spacing65const gridSize = 20;66const cellX = Math.floor(x / gridSize) * gridSize;67const cellY = Math.floor(y / gridSize) * gridSize;68```6970### Component Rendering Pattern7172```javascript73// All components follow this structure:74{75 type: 'component-type',76 x: gridX,77 y: gridY,78 width: componentWidth,79 height: componentHeight,80 rotation: 0, // 0, 90, 180, 27081 properties: { /* component-specific data */ }82}83```8485### Wire Connections8687```javascript88// Wire connection format:89{90 start: { x: startX, y: startY },91 end: { x: endX, y: endY },92 color: '#ff0000' // Wire color coding93}94```9596## Step-by-Step Workflows9798### Creating a Basic LED Circuit Mockup991001. Define breadboard dimensions and grid1012. Place power rail connections (+5V and GND)1023. Add LED component with anode/cathode orientation1034. Place current-limiting resistor1045. Draw wire connections between components1056. Add labels and annotations106107### Creating a 555 Timer Circuit1081091. Place NE555 IC on breadboard (pins 1-4 left, 5-8 right)1102. Connect pin 1 (GND) to ground rail1113. Connect pin 8 (Vcc) to power rail1124. Add timing resistors and capacitors1135. Wire trigger and threshold connections1146. Connect output to LED or other load115116### Creating a 6502 Microprocessor Layout1171181. Place W65C02S centered on breadboard1192. Add 28C256 EEPROM for program storage1203. Place W65C22 VIA for I/O1214. Add 7400-series logic for address decoding1225. Wire address bus (A0-A15)1236. Wire data bus (D0-D7)1247. Connect control signals (R/W, PHI2, RESB)1258. Add reset button and clock crystal126127## Component Pinout Quick Reference128129### 555 Timer (8-pin DIP)130131| Pin | Name | Function |132|:---:|:-----|:---------|133| 1 | GND | Ground (0V) |134| 2 | TRIG | Trigger (< 1/3 Vcc starts timing) |135| 3 | OUT | Output (source/sink 200mA) |136| 4 | RESET | Active-low reset |137| 5 | CTRL | Control voltage (bypass with 10nF) |138| 6 | THR | Threshold (> 2/3 Vcc resets) |139| 7 | DIS | Discharge (open collector) |140| 8 | Vcc | Supply (+4.5V to +16V) |141142### W65C02S (40-pin DIP) - Key Pins143144| Pin | Name | Function |145|:---:|:-----|:---------|146| 8 | VDD | Power supply |147| 21 | VSS | Ground |148| 37 | PHI2 | System clock input |149| 40 | RESB | Active-low reset |150| 34 | RWB | Read/Write signal |151| 9-25 | A0-A15 | Address bus |152| 26-33 | D0-D7 | Data bus |153154### 28C256 EEPROM (28-pin DIP) - Key Pins155156| Pin | Name | Function |157|:---:|:-----|:---------|158| 14 | GND | Ground |159| 28 | VCC | Power supply |160| 20 | CE | Chip enable (active-low) |161| 22 | OE | Output enable (active-low) |162| 27 | WE | Write enable (active-low) |163| 1-10, 21-26 | A0-A14 | Address inputs |164| 11-19 | I/O0-I/O7 | Data bus |165166## Formulas Reference167168### Resistor Calculations169170- **Ohm's Law:** V = I × R171- **LED Current:** R = (Vcc - Vled) / Iled172- **Power:** P = V × I = I² × R173174### 555 Timer Formulas175176**Astable Mode:**177178- Frequency: f = 1.44 / ((R1 + 2×R2) × C)179- High time: t₁ = 0.693 × (R1 + R2) × C180- Low time: t₂ = 0.693 × R2 × C181- Duty cycle: D = (R1 + R2) / (R1 + 2×R2) × 100%182183**Monostable Mode:**184185- Pulse width: T = 1.1 × R × C186187### Capacitor Calculations188189- Capacitive reactance: Xc = 1 / (2πfC)190- Energy stored: E = ½ × C × V²191192## Color Coding Conventions193194### Wire Colors195196| Color | Purpose |197|-------|---------|198| Red | +5V / Power |199| Black | Ground |200| Yellow | Clock / Timing |201| Blue | Address bus |202| Green | Data bus |203| Orange | Control signals |204| White | General purpose |205206### LED Colors207208| Color | Forward Voltage |209|-------|-----------------|210| Red | 1.8V - 2.2V |211| Green | 2.0V - 2.2V |212| Yellow | 2.0V - 2.2V |213| Blue | 3.0V - 3.5V |214| White | 3.0V - 3.5V |215216## Build Examples217218### Build 1 — Single LED219220**Components:** Red LED, 220Ω resistor, jumper wires, power source221222**Steps:**2232241. Insert black jumper wire from power GND to row A52252. Insert red jumper wire from power +5V to row J52263. Place LED with cathode (short leg) in row aligned with GND2274. Place 220Ω resistor between power and LED anode228229### Build 2 — 555 Astable Blinker230231**Components:** NE555, LED, resistors (10kΩ, 100kΩ), capacitor (10µF)232233**Steps:**2342351. Place 555 IC straddling center channel2362. Connect pin 1 to GND, pin 8 to +5V2373. Connect pin 4 to pin 8 (disable reset)2384. Wire 10kΩ between pin 7 and +5V2395. Wire 100kΩ between pins 6 and 72406. Wire 10µF between pin 6 and GND2417. Connect pin 3 (output) to LED circuit242243## Troubleshooting244245| Issue | Solution |246|-------|----------|247| LED doesn't light | Check polarity (anode to +, cathode to -) |248| Circuit doesn't power | Verify power rail connections |249| IC not working | Check VCC and GND pin connections |250| 555 not oscillating | Verify threshold/trigger capacitor wiring |251| Microprocessor stuck | Check RESB is HIGH after reset pulse |252253## References254255Detailed component specifications are available in the bundled reference files:256257- [555.md](references/555.md) - Complete 555 timer IC specification258- [6502.md](references/6502.md) - MOS 6502 microprocessor details259- [6522.md](references/6522.md) - W65C22 VIA interface adapter260- [28256-eeprom.md](references/28256-eeprom.md) - AT28C256 EEPROM specification261- [6C62256.md](references/6C62256.md) - 62256 SRAM details262- [7400-series.md](references/7400-series.md) - TTL logic gate pinouts263- [assembly-compiler.md](references/assembly-compiler.md) - Assembly compiler specification264- [assembly-language.md](references/assembly-language.md) - Assembly language specification265- [basic-electronic-components.md](references/basic-electronic-components.md) - Resistors, capacitors, switches266- [breadboard.md](references/breadboard.md) - Breadboard specifications267- [common-breadboard-components.md](references/common-breadboard-components.md) - Comprehensive component reference268- [connecting-electronic-components.md](references/connecting-electronic-components.md) - Step-by-step build guides269- [emulator-28256-eeprom.md](references/emulator-28256-eeprom.md) - Emulating 28256-eeprom specification270- [emulator-6502.md](references/emulator-6502.md) - Emulating 6502 specification271- [emulator-6522.md](references/emulator-6522.md) - Emulating 6522 specification272- [emulator-6C62256.md](references/emulator-6C62256.md) - Emulating 6C62256 specification273- [emulator-lcd.md](references/emulator-lcd.md) - Emulating a LCD specification274- [lcd.md](references/lcd.md) - LCD display interfacing275- [minipro.md](references/minipro.md) - EEPROM programmer usage276- [t48eeprom-programmer.md](references/t48eeprom-programmer.md) - T48 programmer reference277278---279> Converted and distributed by [TomeVault](https://tomevault.io/claim/github) — claim your Tome and manage your conversions.280<!-- tomevault:4.0:skill_md:2026-04-11 -->