Apologies for the late reply since i was pre-occupied with other higher priority things.
With your helpful advice , i made a sensor board (attached the layout as pdf). This is a single layer board having ground mesh encompassing the sensor plane (as you can see from the pdf)
I connect the programmer and program the CY8CMBR3102, with the EZCLICK with settings as attached.
I have a capacitive un-isolated power supply to power the entire system.
(While programming i use another power supply, which is a regular PSU).
Now , when i disconnect the programmer and run the Board on its own, there is auto toggling of my output even when there's no obstruction in any form near the sensor.
Once the programmer is connected the system works absolutely fine.
I went a step ahead to program the distance of proxy sense.I connected a microcontroller to the I2C pins, and measure a variable voltage and program the Proximity Threshold Register at 0x35 with a value corresponding to 31-200 for a Voltage of 0-5v.
I constantly read 5 registers starting at 0x35, to simulate the 'programmer connected' condition
But the auto toggling wont stop.
I am out of ideas at the moment.
Any help will be welcome and appreciated.
Thanks and regards
Looks as if the power supply is noisy. Measure with a scope the board connected to the supply VCC, Scope set to AC @20mV/div and look for noise and ripple.
It seems i have identified the problem.
The Line and Neutral wires were reversed while coming on the board.When they are correct, there's no toggling whatsoever!
Although i am unable to understand why would that create a problem?