Step 6Test with an Arduino
You are now done with your project. If you've wired everything up then you're ready to test out the box. I tested mine with my arduino. Below is some code you can use to test yours out too. In this case I connected up the red wire to +5V, the black to ground, and the green to digital pin 12.
Here's the code I used:
https://github.com/chrisgilmerproj/relay-box
I hope this project worked for you. You'll find this useful in a number of great projects, so go out and make something fun!
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|












































