Voltage regulator says 0.0-0.1V (broken?)

so for my project i am using 2 of these voltage ruglators:
LM2596S Instelbare Step-Down 4-40V -> 1.25-37V.

they are powerd by a 6s lipo battery (24V)
the outputs are 12v and 6v.

the 6v one is 'broken'.
It gives power to 4 servo's:
1x -MG996R
2x - TD-8125MG Waterproof Digital Servo - 25kg (one doen't work, haven't tried putting it in a different MEGA pin)
1x - unknown servo. but similair to the MG996R

it 'broke' when i finally got a code working with moving the servo's. then all of a sudded the servo's stopped working and when i looked at the display of the V-regulator is kept switiching between 0.0 and 0.1V. i have read that the fuse build in the V-reg could be blown .but i wanted to come on here and aks it that is indeed correct before i buy antything new or buy the wrong thing.

Do you think it might help if you posted a schematic of your project, the code that you are running and details of the Arduino that you are using ?

i made schematics, i hope that they are good enough because there is quit alot going on.

transmitter:


in this photo you can see the joystick pins:

receiver:


code transmitter:

#include <SPI.h>
#include <RF24.h>
#include <nRF24L01.h>

#define CE_PIN 7
#define CSN_PIN 6

RF24 radio(CE_PIN, CSN_PIN);
const byte pipeName[] = "00001";

const byte joystickPins[] = {A7, A2, A3, A5};
const byte joysticksCount = sizeof joystickPins / sizeof * joystickPins;

struct __attribute__ ((packed)) t_message {
  int16_t rawValues[joysticksCount];
} payload, previousPayload;


void setup() {
  pinMode(10, OUTPUT);
  radio.begin();
  Serial.begin(9600);
  radio.openWritingPipe(pipeName);
  radio.setPALevel(RF24_PA_MIN);
  radio.stopListening();
}

void loop() {
  // read the joysticks
  for (byte i = 0; i < joysticksCount; i++) {
    payload.rawValues[i] = analogRead(joystickPins[i]);
    payload.rawValues[i] = analogRead(joystickPins[i]) & 0xFFFD; // two reads for stability, dropping the 2 LSb to filter out instability
  }

  // broadcast the data if it has changed
  if (memcmp(&payload, &previousPayload, sizeof(t_message)) != 0) {  // returns 0 when they match, https://cplusplus.com/reference/cstring/memcmp/
    radio.write(&payload, sizeof(payload));
    previousPayload = payload;
  }
}

receiver code:

#include <SPI.h>
#include <nRF24L01.h>
#include <RF24.h>
#include <Servo.h>

#define CE_PIN 49
#define CSN_PIN 48

RF24 radio(CE_PIN, CSN_PIN);
const byte pipeName[] = "00001";

const byte servoPins[] = {2, 5, 4, 3};
const byte servosCount = sizeof servoPins / sizeof * servoPins;
const int initialPositions[servosCount] = {90, 90, 90, 8};
const int mappedRanges[servosCount][2] = {{80, 100}, {65, 115}, {65, 115}, {80, 88}};

Servo servos[servosCount];

struct __attribute__ ((packed)) t_message {
  int16_t rawValues[servosCount];
} payload;
uint8_t messageBuffer[sizeof(t_message)];

void setup() {
  pinMode(10, OUTPUT);

  for (byte i = 0; i < servosCount; i++) {
    servos[i].write(initialPositions[i]);     //set starting positions
    servos[i].attach(servoPins[i]);
  }

// Serial
  Serial.begin(9600);
//radio
  radio.begin();
  radio.openReadingPipe(0, pipeName);
  radio.setPALevel(RF24_PA_MIN);
  radio.startListening();
}

void loop() {
  if (radio.available()) {
    radio.read(messageBuffer, sizeof messageBuffer);
    memcpy(&payload, messageBuffer, sizeof payload);
    Serial.print(F("New positions: "));
    for (byte i = 0; i < servosCount; i++) {
      int angle = map(payload.rawValues[i], 0, 1023, mappedRanges[i][0], mappedRanges[i][1]);
      Serial.print(angle); Serial.write('\t');
      servos[i].write(angle);     //set starting positions
    }
    Serial.println();
  }
}

What happens to the Vreg output when the load is removed from Vreg?

Does Vreg come to normal or does Vreg stay 0ish?

In this image I see lots of cold solder joints

haven't tried that yet because it is solderd on. but i will try that.
if you think it is a sort circuit, I have to disagree because the fuse that i use isn' blown. the only thing that i can think of is an overload.

does that matter? cold solder joints. because it works.

I've not come to any think what it is or is not yet because I do not have enough information.

I do not think those cold solder joints are an issue, I know that those cold solder joints are an issue.

okay, i am currently not home but i will try removing the servo's from the V-reg when i am home.

i asked if you had an assumption because i don't know if this is a familiar occurance with V-regs

why are they an issue?

Oh, I thought we were trying to find an issue but if it works then no need for me to spend anymore time on the matter. Thanks for letting me know it works. Good luck.

the problem is not in the transmitter (arduino nano) but in the receiver.

the problem is that my voltage ruglator stopped working propperly. it still getting power but gives 0V output power, it says that on the display.

Because they often fail intermittently (which is also the worst kind of failure).

The LM2596 can't provide enough current for all these servos.

oh, gotta watch out for that in the future. maybe need to look up a vid to improve.

so it was an overload?

right now i am thinking of getting this one:
5A 75W XL4015 DC-DC Converter adjustable Step-Down

it can provide 2-3Amps more

This is the best information I have found

Note: This servo can draw relatively high currents, especially with a load
 (up to approximately 2500mA at 6V at standstill). So choose a suitable
 power supply for the servo. It is not recommended to use the Arduino as power supply.

This for just one servo..

so that's P=U×I =6×2,5 = 15W for 1 servo
and 30W for 2 servo's.

and for the MG995R:
it has roughly half the torque so i assue half the power and i will count the same for the other servo.

so in total the servo's consume:
45W
and the V-reg can handle 15-20W so that is more than double.

this one should be more than enough then:
5A 75W XL4015 DC-DC Converter Verstelbare Step-Down

Even if the 5A from the XL4015 was a reliable number, you would have 2x2.5A for your motors.
I doubt very much that this will work.

the stepper motor's are not hooked up to the 6v one.
the smaller one is linked to the 12v V-reg (i am gonna order 2 incase the 12v V-reg also breaks) and the big one gets it power directly form the battery.

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