Stages

7-6Switch the + SideKeep the lamp's − on GND and switch its 12V + side from a 5V pin

Power off
  • Resistor (choose values)3/3 left
  • X1 lights fully when OUT1 is H (1.0 A or more)
  • X1 goes off when OUT1 is L
  • X1 stays off while OUT1 is Z (input)
  • Don't leave Q2's gate floating
  • Don't let the transistor or FET overheat
  • Keep OUT1's current to 20 mA
  • No short circuits
B112VQ2IRF9540NX112VMCU OUT (5V)−+GDSGNDOUT

Press a terminal (the small ◯) to start a wire. Press where you want to bend to place corners, and finish on another terminal or on a wire. Press the middle of a wire and then somewhere else to draw a branch from there. You can drag parts and wires to move them. When you are ready, press "Run!" to turn on the power, and try the switches while it is on.

Line mode
W
Draw wire
R
Rotate
M
Move
G
Drag
Del
Delete
⌘Z
Undo
⌘⇧Z
Redo
Enter
Run
Home
Fit
H
Hint

Wheel to zoom, right-drag to pan