Common power source

Hi, I would like to power Arduino, R385 water pump and stepper motor with common power source 12V. To lower voltage I would like to use LM2596. I,ve made a wiring diagram and would like to know If I connect everything correctly.

You must be very very careful when connecting an adjustable Buck converter to the 5V output pin on an UNO. If the voltage is to high or not well regulated, you will burn out the UNO.
If the voltage is too low you could also damage the Uno
If you accidently connect something to Vin you could again damage the Uno.

1 Like

Apart from the fact that I have to be very careful. I would like to know if wiring diagram is correct.

The wiring diagram LOOKS fine - but it would depend on the actual devices you are using and their current demands. SO could you provide links?

Not quite, the pump needs a power source
Is that relay 5V or 12V?

1 Like

12v relay and water pump will be powered directly from 12v

Your diagram does not show how power will get to the pump.

Also, it shows a 5V relay. Be sure to use a 12V relay.

Are you sure that your 12V relay can be controlled by an UNO 5V output?

Water pump:https://robu.in/product/dc6-12v-mini-aquarium-water-pump-r385/

Stepper motor :Stepper motor 28BYJ-48 5V / 0.1A / 0.03Nm with Botland - Robotic Shop

Water pump - 0,5A - 0,7A
Stepper motor - 100mA

My wiring diagram may be unreadable a little bit. On the left side, there is a barrel jack connector for 12v 2a charger. And I wanted to power relay directly from charger.

On the left, there is barrel jack connector for 12v charger and I wanted to power water pump directly from charger.

If it a 12V relay that is OK but is is safe to control it with a 5V digital signal?

Always show us good images of your ‘actual’ wiring.

Give links to components.

  • We need to see the actual relay module, give us a link.
    5v logic to the relay module IN pin cannot control a 12v relay through the input opto isolator.
    Need more information :pleading_face: .
1 Like

To control the pump with the relay you need to connect it in series with the pump.

You can connect the power supply black wire to the pump, and the red wire to the central relay terminal. From the other relay terminal (NO), run a wire to the other pump terminal. You need 3 wires, not 2.

In the relay, NO stands for Normally Open, NC for Normally Closed. "Normally" means "when the relay is not energized it is".

A source of concern is that the pump motor can induce noise into the buck converter and cause the Arduino to fail. You may have to add a capacitor in parallel with the pump. Try with 100µF @ 16V.

This is important. If the stepper side can handle 7.5V, configure the buck converter accordingly and connect it to Vin.

1 Like

Thank you guys for all advices.

When adjusting the regulators, do it before connecting any parts to it.

1 Like
  • Or add a resistor to draw 500mA.
  • Adjust voltage.
  • Add finger nail polish to the screw on potentiometer.
3 Likes

Is there a chance or a way to control 12v relay through 5v signal?

Always show us good images of your ‘actual’ wiring.

Please, give links to components including the relay module.

  • We need to see the actual relay module, give us a link.
    5v logic to the relay module IN pin cannot control a 12v relay through the input opto isolator.
    Need more information :pleading_face: .
    Note: if the module is driving the relay coil with a transistor only, 5v can key the transistor and the 12v relay will energize.
    Please link us to the relay.

Yes, you can use a simple one transistor circuit.
How much current does the relay coil need?