Hardware Reference
In-Depth Information
Solution
Working with 120 V can be tricky — even dangerous — if you aren't careful. Here's a safe
way to do it.
To make this recipe, you will need:
▪ PowerSwitch Tail II (see
“Miscellaneous”
)
Figure 3-4. Diagram for wiring PowerSwitch Tail II
After you've wired it, because this uses the same output pin as
Recipe 3.2
, you can run the
same code (
Example 3-2
)
.