Well.... my bidirectional brushed ESC for my vert thruster arrived today, only took 10 weeks to get here.
I hooked it up to my ROV PCB and not surprisingly there are a few problems.
First off you can't calibrate it.
from the online description-
Remarks:
1. When using this product, the remote control throttle stick must be in the middle position, otherwise the ESC cannot start.
OK, fair enough, you can't start it with throttle on, that's to be expected for an RC model. my initialisation routine will sort this by sending a 90 degree command for a couple of seconds at start up.
2. This product does not need to calibrate the throttle stroke. After the ESC starts, if the motor starts to rotate, you can use the remote controller to fine-tune the throttle to stop the motor.
Read this as- you can't calibrate it.
so neutral has to be trimmed out.
3. This product is not welded at the factory
erm... I quite glad about that. hahaha...
the other problem is that my max throttle command (up or down) makes it stop. this is also a calibration issue.
I think I can overcome that by tweaking this line in the code but it's going to be fiddly.
ESCV.attach(11,600,2250); //attach the vertical ESC to pin 11 and set min and max pulse widths in microseconds.
ESCV.attach(11,1000,2000); will be a good start, and maybe I can offset these to set my neutral position too.
EDIT- after a bit of tweaking it works.
final settings are-
ESCV.attach(11,800,1900); // neutral = 1350 not 1500 as it should be.
that gives a center detent position on my depth knob/ps2 controller neutral stick position giving no rotation.
well.. almost no rotation, there's a slight jitter as the neutral band of this ESC is very narrow so a tiny movement of the depth pot starts rotation either up or down.
a word to the wise- If I was doing it again I wouldn't use this ESC. it's not great. but it is cheap.
On the plus side, I can now work on my auto depth coding. that'll keep me busy during lock-down.