Unwanted Activation of Relay

Hello, I'm using an L293D for DC motors with relay to open and close a circuit and controlling it via bluetooth application but I notice whenever I press some buttons the relay activate automatically it's not suppose to do that with that specific button I also check the data send by the application and it is correct what should I do?

There could be multiple reasons but normally it would be unwanted electrical noise in some form.
Shielded cables, enclosures, ferrites, capacitors are all accepted methods of reducing those aspects if used correctly and within the specifications of the circuit.

Please READ THIS POST to help you get the best out of the forum.

SIMPLE TROUBLESHOOTING.

These steps may also save you some unnecessary time and effort in the forum.

  • Always provide as much detail as possible to your issue it may be important.
  • If applicable provide your SKETCH inside CODE TAGS ( </> ) or a CREATE share link.
  • If applicable provide a schematic even if hand drawn.
  • How to insert a picture into your post
  • If applicable provide a proper LINK to the hardware / sensors etc. you are using.

Bob.

Other post/duplicate DELETED
Please do NOT cross post / duplicate as it wastes peoples time and efforts to have more than one post for a single topic.

Please READ THIS POST to help you get the best out of the forum.

Bob.

Double check your code. Also you should be powering the DC motors on a separate power supply not the arduino, just a guess. This response is to help you get started in solving your problem, not solve it for you.
Good Luck & Have Fun!
Gil