here we go
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.
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.
the problem of De-coupling was also looked into, and 0.1uF's were placed at all IC's VCC and GND.
The I2C's are all powered by the power from the Arduino. The Arduino is power by a 12V adapter.
The Relay circuits are powered by a seperate 5V Adapter. Both the Adapaters are connected to the same 230vAC.
The Grounds of the Relay circuit and that of the ARduino circuit are connected to make a common ground
totally there are 6 I2C's, 1 Ds1307 (Clock) and 1 EEPRom Memory powered by the arduino. Is this too much? is this why that randomness occurs? but that freeze happens only when the relays are operated.
Mike, the backlight is ON, doens't flicker. The Screen Blanks out. When using a FEEDMODE that turns OFF many relays at one shot, the screen goes bonkers and sends random text on the screen.