Hi friends, I have made this Aquarium controller for my aquarium. Written the code with a help of a few members in this forum and all seems to work perfectly
I am mainly using I2C to control my devices.
The main layout is : The Display of the controller : have another display also attached to the system for secondary viewing. http://indianaquariumhobbyist.com/gallery2/d/39906-2/DSC03205_resize.JPG The controller with the I2C, Clock and with the back of the LCD panel and the Keyboard
The power Module, using ULN 2003 and Relays. The Power module is Connected to the Controller using a 25Pin DB Wire.
The Outlook of the power Module
These are the problems: (I think they are related)
When the power module is not connected to the main system, the system works perfectly. There is a mode called FEEDMode, when i am into that mode by press of a key in the keypad, a few of the power modules are to TURN OFF for a period of time and then TURN ON again after that period, this works perfectly when the power Module is not connected to the system. But when i connect the power Module to the system, and go into that FEED MODE it TURNS OFF the devices, goes through the Count and then TURNS on the DEVICES but the moment it turns ON The Devices the LCD goes BLANK with just a display of "1" in the SCREEN and KeyPad is FROZEN.. .so i need to restart the Arduino by powering it down and then ON it again.
Some times when there is a power Outtage, and when the System turns on again, i go into the Blank Screen Mode and Frozen keypad. But all the other controls in the Power Module are WORKING...
I even put diodes across the Relays to protect them, but no USE.
The Arduino Goes into FREEZE Mode when it handles the Power Module that is done using UNL2003/2004 ICs and Relays. The ULNs drive the Relays (+5v) and Relays Output (230vac) control the Motors and Pumps.
Is this a problem of De-coupling ? I have added NO capacitors to the Circuit. Or is it any other Problem?