Time to build out how the arduino controls a relay. I got a 5v relay from Radio Shack to play with.
[phpBB Debug] PHP Warning: in file
[ROOT]/includes/functions_reimg.php on line
136:
preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file
[ROOT]/includes/functions_reimg.php on line
138:
array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file
[ROOT]/includes/functions_reimg.php on line
141:
Invalid argument supplied for foreach()
[phpBB Debug] PHP Warning: in file
[ROOT]/includes/functions_reimg.php on line
136:
preg_match_all(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file
[ROOT]/includes/functions_reimg.php on line
138:
array_unique() expects parameter 1 to be array, null given
[phpBB Debug] PHP Warning: in file
[ROOT]/includes/functions_reimg.php on line
141:
Invalid argument supplied for foreach()
arduino_relay.png [ 48.88 KiB | Viewed 7171 times ]
It's a but more complicated than I thought. Then I realized I'd need to supply power to the relay AND the sensor from the arduino. Good thing the arduino has a 5v and 3.3V...
So I got this bad boy. All of the circuitry and diode is in the box
So to test things out...
The wiring is a lot less complicate than before.
I then put the whole thing in a power box. For easy connection, I used a telephone 6 pin connector to connect to the arduino.
Hook everything up to a power outlet.
And then test everything out on a desk lamp.
Here's the sensor with the new silicone membrane.