I'll probably get lectured here....
I'm currently using a regulated 13.8v 5A power supply
I'll probably get lectured here....
I'm currently using a regulated 13.8v 5A power supply
Woah! Something happened there!
Worked perfectly for about thirty seconds! Now it's stopped working and the motor is singing scales again
Your regulator is calibrated for reverse operation. The neutral position of the regulator is 1500.
The motor turned for 30 seconds and the temperature protection (in the regulator) worked. Connect the water
This motor by default does NOT come with water cooling. I have bought a secondary water cooling jacket for it since I have water anyway (it's a RC boat). It doesn't come with it, in fact the manufacturer doesn't even recommend it. Also, I don't have the temperature sensor hooked up to anything!!
I might hook it up anyway though
There is a temperature sensor not in the motor but in the ESC controller
Oh ok. I see what you mean.
I'll get myself some tubing and I'll hook my water pump up!
I would've thought the ESC would be hot to the touch though if it's overheating? It's cold
who knows how it's arranged inside, who knows, I haven't taken it apart )))
// if CW & CCW
#define ESC_REVERSE
#if defined(ESP32)
#include <ESP32_Servo.h> // https://github.com/jkb-git/ESP32Servo/tree/master/examples
#else
#include <Servo.h>
#endif
Servo motor;
int mot_pin = 9;
int max_pwm = 2000;
int min_pwm = 1000;
int pwm = 1500;
int bottom = 7;
void setup() {
Serial.begin(115200);
pinMode(bottom, INPUT_PULLUP);
motor.attach(mot_pin);
delay(1000);
// Calibrate ESC
if (!digitalRead(bottom)) {
motor.writeMicroseconds(max_pwm);
delay(2000);
motor.writeMicroseconds(min_pwm);
delay(4000);
}
#ifdef ESC_REVERSE
motor.writeMicroseconds(pwm);
#else
motor.writeMicroseconds(min_pwm);
#endif
}
void loop() {
pwm = analogRead(A0);
motor.writeMicroseconds(map(pwm, 0, 1023, 1000, 2000));
delay(10);
}
What is pin 7 connected to?
button, if you turn it on with the button pressed, it will work the calibration mode, and then go into the working mode, if you do not turn the button on, the working mode will turn on
The three motor wires can be connected in any order. To reverse the motor direction just swap any two wires.
This is standard practice for BLDC motors and ESCs, NOT some dodgy back-yard fix that may have undesired effects.