Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Define components
vin = Part('Connector', 'CONN_02x1', footprint='Connector:TerminalBlock_Phoenix_MSTB_2pin_5.08mm') transformer = Part('Power', 'Transformer', footprint='Transformer:EI30') bridge_rectifier = Part('Diode', 'DIODE_BRIDGE', footprint='DiodeBridge:GBU8K') capacitors = Part('Capacitor', 'C', footprint='Capacitor_THT:Radial_D10_L16_P5') * 2 voltage_regulator = Part('Regulator', 'LM338', footprint='TO-220') potentiometer = Part('Potentiometer', 'POT', footprint='Potentiometer:Potentiometer_Vertical') heat_sink = Part('Mechanical', 'HeatSink', footprint='HeatSink:TO220') fuse = Part('Fuse', 'FUSE', footprint='Fuse:Holder') output_meter = Part('Display', 'VoltAmpMeter', footprint='Display:7Segment') vout = Part('Connector', 'CONN_02x1', footprint='Connector:TerminalBlock_Phoenix_MSTB_2pin_5.08mm')
Circuit connections
vin[1] += transformer[1] transformer[2] += bridge_rectifier['~'] bridge_rectifier['+'] += capacitors[0][1] capacitors[0][2] += voltage_regulator['IN'] voltage_regulator['OUT'] += potentiometer[1] potentiometer[2] += vout[1]
Ground connections
gnd = Net('GND') gnd += bridge_rectifier['-'], capacitors[1][2], voltage_regulator['GND'], vout[2], potentiometer[3]
Protection and Safety
gnd += fuse[2] fuse[1] += vin[2] heat_sink[1] += voltage_regulator['TAB']
Display
vout[1] += output_meter[1] gnd += output_meter[2]