5V Relay: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(→Notes) |
||
Line 1: | Line 1: | ||
=Notes= | =Usage Notes + Wiring Diagram= | ||
*Arduino on USB has 500mW of power | *Arduino on USB has 500mW of power | ||
*8 channel relay appears to take .36W [http://forum.arduino.cc/index.php?topic=167771.0] - or 76mW per coil | *8 channel relay appears to take .36W [http://forum.arduino.cc/index.php?topic=167771.0] - or 76mW per coil | ||
*Arduino pins can put that out directly - 200mA for Vcc and GND pin - see [[Arduino Pin Current Limitations]]. Otherwise, the multiple output pins are rated for 20 mA, and 40 mA max. Since the signal for the relay can be small, the Vcc and GND connection is sufficient - but not if you want to power more than 3 relays simultaneously. | *Arduino pins can put that out directly - 200mA for Vcc and GND pin - see [[Arduino Pin Current Limitations]]. Otherwise, the multiple output pins are rated for 20 mA, and 40 mA max. Since the signal for the relay can be small, the Vcc and GND connection is sufficient - but not if you want to power more than 3 relays simultaneously. | ||
*See sample direct wiring diagram plus notes on current limits at [https://anthscomputercave.com/tutorials/arduino/relay/arduino_relay.html] | *See sample direct wiring diagram plus notes on current limits at [https://anthscomputercave.com/tutorials/arduino/relay/arduino_relay.html] | ||
=Sample Pushbutton Code with Delay for Macerating Toilet= | |||
*Sample code to debounce a button press - [https://www.arduino.cc/en/Tutorial/Debounce] | |||
*Start with Pushbutton Without Delay - [https://www.arduino.cc/en/Tutorial/Button] | |||
*Or, can start with water relay and 120V for rapid prototyping. |
Latest revision as of 16:14, 21 April 2018
Usage Notes + Wiring Diagram
- Arduino on USB has 500mW of power
- 8 channel relay appears to take .36W [1] - or 76mW per coil
- Arduino pins can put that out directly - 200mA for Vcc and GND pin - see Arduino Pin Current Limitations. Otherwise, the multiple output pins are rated for 20 mA, and 40 mA max. Since the signal for the relay can be small, the Vcc and GND connection is sufficient - but not if you want to power more than 3 relays simultaneously.
- See sample direct wiring diagram plus notes on current limits at [2]