DevDungeon
- Labs
Knowledge
Social
DevDungeon
Knowledge
Social
This is an old revision of the document!
For details on programming Arduino compatible boards, see Arduino Programming.
See the dedicated page, Raspberry Pi.
These power relays let you switch high voltage power (110V AC/250V AC) using low power logic (5V). This lets you control household appliances.
Wiring diagram: https://www.circuitbasics.com/setting-up-a-5v-relay-on-the-arduino/ There are two sides, one side with the big relay box itself and the other side. The side with the relay is where the hot power from the wall goes. The live power line goes into the middle one, the common pin, COM or C. The two on the sides should be labeled NO and NC for normally open and normally closed. Pick the one you want to use (depends what default state you want: on or off). Let's say you picked normally open (NO). Then wire from the NO connector to your actual appliance that you want to power. The ground wire from the wall plug should go directly to the ground connector on your device. The other pin will remain unconnected (NC in this case).
On the other side, opposite from the relay box, there are three connectors. Those all connect to the microcontroller: 5V, GROUND, and the input signal to toggle the relay. DC+/VCC is the 5V (or potentially 3.3V on some models too). DC-/GND is the GROUND. IN is the input signal (high or low, depending.)
You can switch the jumper on the board to switch whether it's toggled by low or high signal.
Links:
Notes:
See the dedicated page, Synology DS418.