“Draw an Arduino Uno controlling a 5 V relay module from a 5 V logic supply, with the relay switching a separate 12 V lamp load and a coil diode.”
看懂背後的決策。
Keep the Arduino on its 5 V control supply.
Use relay contacts for the separate 12 V load.
Suppress the relay coil voltage spike.
Use for an Arduino project that switches a low-voltage DC load through a relay.
常見問題
Why use a relay with an Arduino?
A relay lets a low-current logic output switch a separate higher-voltage or higher-current circuit.
Does a relay module need a diode?
Bare relay coils do; many relay modules include a transistor driver and diode on the module.
Can this switch mains voltage?
Use properly rated, enclosed hardware and qualified installation for mains circuits; this example is a low-voltage load.