Two ways to control appliances.
433MHz Wireless
Use a 433MHz RF transmitter to control commercial wireless AC outlets. No wiring changes needed - just pair with existing outlets.
- Pros: No wiring, plug-and-play outlets
- Cons: Limited range (~30ft), potential interference
Hardware
- 433MHz RF Transmitter Module
- 3-5 pack wireless AC outlets
- Arduino Nano D12 for data pin
Direct Relay Control
Connect relays or MOSFETs directly to your Arduino for precise, high-current control.
- Pros: Direct control, higher current capacity
- Cons: Requires wiring, enclosure modifications
Hardware
- 5V Single-channel Relay Module
- or IRLZ44N MOSFET + 10kΩ resistor
- Arduino D2-D13 for control pins
Setting up appliance rules.
In the Arduino code, appliances are defined with their trigger conditions and relationships to other appliances:
Example: Exhaust Fan Logic
The exhaust fan turns on when temperature exceeds 80°F AND the light is on. It stays on until temperature drops below 75°F.
Capture 433MHz remote codes.
To control existing wireless outlets, first capture their code using the RCswitchReader sketch from the RCSwitch library:
Once you have the codes, update your appliance definitions with the actual codes for your outlets. You can control up to 5 outlets per Arduino with separate on/off codes.