Hello everyone!
This is me taking my first (almost) steps into the world of microprocessors.
With my Sparkies in the mail-system I'm thinking through my plan again, and I thought I better ask here before I do too many beginner mistakes.
My plan is controlling five high-powered LED lights with the help of a 5v Relay module. (15-20mA Driver Current, AC250V 10A output)
So I was thinking of setting it up like this, and please correct me where I'm being silly/stupid.
//Physcial Setup
First of, connecting a cheap 5V 1000 mA AC/DC Supply to the 5v and GND to the digispark for power, and power the relay module via Jumper wire (parallel) from the 5v and gnd on the digispark.
Then connecting the 5 outputs to the relay board (either directly on the pins or with jumper wire).
When it comes to the programming, I have very little experience, and I've never programmed something with the Arduino IDE.
But from guessing, and looking at the examples I got something together: (I put this in a google document to not take up the entire forum, don't know if this is a bad idea or not).
https://docs.google.com/document/d/1eSis9oCUiWxNFrzun6MIaEQnPXicuQ8lVWRRdpY6LxII'm not sure if the pins are 0-4 or 1-5.
Is there any way to repeat the code section to save space?
An alternative setup would be using two digisparks, and using one pin on both for input (for photocell activation) and then sharing the outputs. This would also allow me to power the relay board with a 5v and gnd from the outputs, if that makes any difference, I don't know.
Thanks for your patience with the Newbies! <3