Or arduino has his own life

Hi,

Since we are using arduino in our house we struggle with some automatic problems.

First time we noticed that when we put On the light in the basement, arduino puts On a random light.

We "solved" that problem by putting Some transistors in the system.

So nothing has been changed since, and now when arduino feels like putting a light on he juist does it.

Not always the same light but random.

For example:
When we go to sleep, all the lights are out,
When we come out of bed iT is possible that somewhere in the house the lights are burning.

Also during the day, when we are at home.
When we are watching TV, we hear a click from the relais and he has put On a random light...

What Can we do About this?
P.s:
My english ain't that good, but i hope you all will understand me.

Regards!

Is this an entry for "Stupidest post ever" competition?

(My comment had got nothing to do with your English)

I think we can narrow it down to a problem with the hardware, software, or a poltergeist.

I actually had a similar situation of an Arduino seeming to have a life of its own. I programmed a Pro Micro to bid on Ebay listings. One day I looked at my screen and the thing was on a completely different website buying hundreds of Arduinos :stuck_out_tongue_closed_eyes:

hi !

i've been using arduinos for quite a few years now, and one thing is for sure, bad behaviors are always related to coding, so why don't you start with a very basic code and look how it goes first.....

posting your code would help us to help you, so,

looking forward to help you

bad behaviors are always related to coding

...except when they're caused by poor wiring, poor power supplies ...or any of the other things the OP told us nothing about

Hi,

We have a 9v powersupply.
I have made a picture of the installation.

[url=http://[![|500x375](http://i580.photobucket.com/albums/ss245/Black_vs_white_photos/Mobile%20Uploads/image_zpsn3hkrfiv.jpeg)](Photobucket | Make your memories fun!)

I think the wiring is pretty good.

I have to check how to put the code here.
Will update this soon.

Regards!

Hi

I recommend that you implement activity logging. When any item is switched within your code record the time, item ID and other relevant data.

Then review the activity logs later to see when an item was switched - then try to work back through the code to determine what caused your application to switch the item at that time.

You likely have coding errors including array index range errors. Array index range errors can be very difficult to isolate and can cause apparent random incorrect operations.

I occasionally get random incorrect readings from PIR sensors - I suspect it is caused by intermittent electrical connectivity issues on my breadboard associated with rising and falling ambient temperatures, wire expansion and contraction and bad connections.

Cheers

Catweazle NZ