Hi everybody, just to forewarn you all, complete beginner here... still have to google the definitions of things like capacitors, transistors and transformers just to remember the differences... :
I have just completed my first Fritzing diagram on my way to starting my first Arduino project, which will be an automated chicken coop and I was just hoping to get a knowledgable set of eyes on it to warn me if I've done something really wrong and to hopefully answer a few more specific questions. I've borrowed a lot of this from someone else who was kind enough to share their work and have been working at modifying it to suite my needs. If it is helpful or appropriate I can post the website, not sure what the etiquette is for that, so please just let me know...
In the attached diagram I've got two 2 relay modules side by side... in reality I've got a 4 relay module, but I couldn't find a Fritzing part diagram for that so I used the two double modules, which is why you'll see only one ground and 5v input. Anyways, I've never really used relays before and since i'm using them to control 120v AC devices, I was just hoping somebody could let me know if i've got everything right. One area that I'm especially unsure of is whether or not it is ok to have 3 of the relays controlling 120V AC and the fourth relay controlling 12V DC? Also, I don't fully understand what the JD-VCC terminal is for and whether or not I should be using it since i'm controlling two different power supplies (12V DC and 120V AC)?
Another concern I have is whether or not I should be using inline fuses and/or diodes and if so, where? or pull up or pull down transistors?
You'll also notice I've used a dual H bridge L298N motor controller in the diagram, I've only done this because that was the product used in the project I'm attempting to work off of and I haven't purchased it yet so I was hoping someone might let me know if I should be looking for a different controller or if this is appropriate for this project. It operates a small 12v DC motor that will turn one direction to lift open a small door and then reverse to let it drop, thus closing the door.
A future goal will be to add wireless functionality so that i can monitor the systems from my smartphone. I've got the ethernet shield, but have been busy just trying to learn the basics to get me started, so I haven't researched that aspect much yet. I just wanted to mention this in the event that something in the current plan might cause issues for phase 2 and maybe someone would be kind enough to bring that to my attention so that i can have a better shot of getting it right the first time!
Also, I'm still very new (as of this am) to Fritzing, and it's telling me that there is still 1 connection left to be routed, but I can't see it and when i click on that message, it says "there are no unrouted connections in this view" is this normal? Does it have anything to do with the relay modules not being diagramed totally correctly? I tried connecting the empty pins to the breadboard, but no change...
And finally, I spent the better part of the morning researching power supplies as my first thought was i could use 12V to power the Arduino and the rest of my 12V devices, but the impression I got from everything I read seemed to advise using a separate 9V supply for the Arduino. So you'll see a separate 9V supply for the Arduino in the diagram and I was just hoping someone could confirm that I've interpreted things correctly and this is a better route to go... The 12V devices are a small motor (from China) that is: Rated Current : 0.02A ( no load ), and a small water pump (also from China) that is Max rated current: 400mA. The 12V DC power adapter I have says it outputs up to 2A and the power supply for the Arduino is actually a multi adapter that says it outputs 12VDC x 500mA... interestingly this adapter has different setting options so I could select 3, 4.5, 6, 7.5, 9, or 12 Volt output... I don't know if that is helpful info or not, but I thought I'd throw it in just in case. Sorry that this tuning into a short novel! Those are all the questions I have and I very much appreciate any advice.
I just discovered the Fritzing diagram is not a supported file type so I've attached a jpg... it still seems pretty readable if you zoom in though.
Thanks so much,