Probably a stupid question, but please hear me out.
I want to make an aquarium light controller with an arduino nano that will be turned on 24/7. I was wondering if it is even safe to leave a nano on all the time like that. Does it get hot enough to become a fire hazard? Do they draw too much current to be left on all the time? I have never used a nano before, as I do all my prototyping with a mega 2560, so all help is appreciated.
The nano in my anemometer runs 24 hours per day, 365 days per year and has for about 5 years.
The nano in my irrigation system runs 24 hours a day for the entire 9 months irrigation season.
Your nano should run without a problem.
Oh, ok. Lights aren’t an issue. I use 12 volt LEDs, and they stay pretty cool. I assume that relays can be turned on for 8-10 hours at a time as well?
I know that elegoo has a nano 3 pack, but does Arduino have something similar? I need a few, and I feel that it would be cheaper to buy them in a pack.
Best to buy more than you need in case of accidents. Also, you may want a real Arduino to check your clones against if you encounter funky behavior. That said, I don't recall seeing any bad stuff about Elegoo's version.
Not a good assumption. If the contacts are carrying much DC current, they may weld themselves together. The alternative is to use a MOSFET in place of the relay.
If the relay as carrying AC, then there will be less of a problem.
I just realized that I forgot to put a resistor there.
If I don’t connect 5 volts to vin to power the nano, do I connect it to a 5v pin, or somewhere else?
I need a MOSFET for the light control, not the motor control. I have to use an L293D motor driver for that, as it needs to be reversible. The MOSFET is for the LED aquarium lights, they use 12 volts, and about 1.5 amps current draw.