Connection between Raspberry Pi + Arduino + Relays gets lock up

Hi, to give you a context i have a project with a Raspberry Pi connecting an Arduino to extends the GPIO pins to use those pins in a multiple Relay Slot, but after a few minutes the signal between Raspberry Pi and Arduino gets lock up.

I've been trying a lot of setups by connecting:

  • Raspberry Pi [5v 3.1A]
  • Arduino One [12v 1A]
  • Relay Slot [5v 500MA]
  1. As a first idea, i've been trying to giving a dedicated power supply for each devices (Raspberry Pi, Arduino, Relay Slot) but it gets lock up the communication between Arduino and Raspberry.
  2. The second case is to setup it by giving power supply from Raspberry Pi to the Arduino and a dedicated power supply for Relay Slot and it gets lock up again.
  3. In the third case the Raspberry Pi has a dedicated power supply and the Arduino has its own power supply but in this case sharing power with the Relay Slot, and guess what, it gets lock up again.

I hope you can help me with this issue.

P.D:

  • I'm using I2C protocol between Raspberry Pi (master) and Arduino (slave) as an standard.
  • Every 0.5 secs i send a pulse with 0.5 secs of delay (this delay is in the Raspberry Pi code).
  • I realized that it takes a lot of time to lock up (3 hours to be exactly) if the delay has a 20 secs of time.

Not without at least a block diagram showing and identifying all the connections.

Hi, @johanma44
Welcome to the forum.

Please read the post at the start of any forum , entitled "How to use this Forum".

This will help with advice on how to present your code and problems.

A circuit diagram would be greatly appreciated, please include component names and pin lables along with your power supplies.

Thanks.. Tom.. :smiley: :+1: :coffee: :australia:

Thanks, I will show you the diagram and the code we are using.

@alejo9999 can you please provide us the code and the diagram to check?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.