Hi Arduinians,
I'm working on a remote control winch used to tow (Gliding) aircraft into the air. The premise is a HUB Motor (E-Motorbike) with 2km of tow line spooled, a Sbvaton 72200 ESC with the throttle and brake Data inputs of the ESC controller set by PWM outputs from an Arduino Mega. The RC side of things i have tested and sorted (LoRa 96).
Prior to the HUB motor and ESC arriving, I successfully created a miniature test using an Arduino utilising a PWM output to drive a very small motor via a controller. This test worked well, and I tested successfully with 3 km of line, perfect speed control of the motor locally or RC via LoRa.
I've made a hand-made welded solid frame, mounted the HUB Motor, connected the ESC and appropriate battery, and am seeing strange results (I suspect) somehow related to the PWM.
Currently haven't connected anything except Arduino MEGA, Input Digit Pin, that takes a reading from a Slide Potentiometer and outputs a PWM value which is connected to the DATA PIN of the throttle via a 220 Resistor. Very very basic setup
I tested the output with a Multimeter and get the perfect voltage. I have piped the output to the console and everything is working right. The slider gives correct values, Code changes to correct PWM value and Multimeter measure on PWM pin is what I would expect and holds value.
I did my research and understand it's probably the modulation is most likely the culprit and suspect it could be a low pass filter which I am not running.
The Motor is engaged at 1.2v (Min Throttle to get moving) and 5V (Wide open throttle)
At 1.3v PWM output, the HUB starts to turn, and slowly but surely it accelerates (despite no adjustment from Slider and PWM output not changing. Within 10-12 seconds just ends up being Wide open throttle. NOTE my ESC has USB and monitoring software and I can see the throttle input (voltage) jumping around. Its not logging, just gives a "real-time" account of Throttle input voltage into the ESC, so its hard to draw patterns or any meaningful conclusion.
The strange thing is, when I then crank up the Slide Potentiometer to give full 5v (255) Output, and then, lower to the slider to PWM output ~1.3 volts the motor eventually slows and stays at a constant lower speed. It's still not even close to where i need it to be and I can never get the HUB to spin as cosntantly and as slowly as I would like. I'm looking for very granular control of the speed including the ability to set it at below walking pace as safety is a massive factor here.
I've taken the Arduino out of the equation, and running the ESC from the Slider directly works well, this does nothing for me accept confirm that the ESC, HUB, SLIDER are all functioning correctly.
Any thoughts, comments, theories or suggestions would be greatly appreciated.
- Any theories? My knowledge of ESC sensitivity against PWM is lacking.
- I dont understand the speed increase then stability when moving back down? Any ideas?
- Is there a 3rd party smooth PWM to analogue module that would suit my purpose?
- Any documentation worth reading?
Happy to provide a video if my description doesn't make sense. I've reduced the Circuit and Code to the most very basic level. Similar to any basic (Control LED brightness with POT) type testbed.
- POT Slider -> Digital Pin -> Basic Code to set PWM output -> PWM Output goes via a 220 Resister into the ESC (Throttle) Data IN.
- Console Output (Slider Reading, PWM Output) perfect
- Multimeter on PWM Output is always as expected. 1/4 Slider 1.2v, 1/2 Slider 2.5v, 3/4 Slide 3.7v, Full 5v)
- ESC/HUB works as designed with straight Slider POT connected (i.e Not driven via arduino PWM)
Thanks in advance.
Kind Regards,
Chris.
Victoria, Australia