61Views7Replies

Author Options:

Arduino Light Controller Answered

Hello guys,

I have make a project with Atmega328 that read the sun light to turn on the shop lights and read the voltage ments 5V to voltage the system and 12v to voltage the lights.so the problem is i want the system work 24/7 and if i let it work 5+ hours it lag and i have to restart it all time.any1 have any idea why that happen?I noticed the tension is not steady,can this be the problem?i have attach some photo and one video of the system that i have make.Thanks for your time to read my problem.

7 Replies

user
steveastrouk (author)2018-02-14

Well, you have no diode on the relay coil, if that switches on, then off, the spikes from the relay will either kill your board, if you are unlucky, or just reset it.

Then too, if your main power is only browning out briefly, some nice fat electrolytic cap, say 2200uF might help hold up the rails.

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2018-02-13

What are all the resistors for around the regulator ?

Select as Best AnswerUndo Best Answer

user
NetariaT (author)steveastrouk2018-02-13

It is for voltmeter at 5V and at 12V

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)2018-02-12

What do you mean by "lag" ?

Select as Best AnswerUndo Best Answer

user
NetariaT (author)steveastrouk2018-02-12

Freezing and i have to reset it to work again

Select as Best AnswerUndo Best Answer

user
steveastrouk (author)NetariaT2018-02-12

You're right, wobbly power is likely to upset the circuit.

Post your schematic and lets see what we can do.

Select as Best AnswerUndo Best Answer

user
NetariaT (author)steveastrouk2018-02-12

i attach the fritzing file hope that help

Select as Best AnswerUndo Best Answer