I want to control my VESC for an electric skateboard using an arduino, I connected my phone to the arduino usb, and the PWM to signal wire.
It works ok, but when I add the servo motor as shown to control the steering, the VESC powers on even when the power switch is off, when I take out the wires connecting the servo to the arduino, it powers off so somehow the servo current turns ESC on? There is a switch in the ESC and I thought it should turn on only when the switch is turned on
I'm a total noob and asking for help to correct the wiring.
Just to confirm, this is what you meant? I read the red wire from ESC should not be used, as it could spoil the arduino, I tried the following arduino seems to overheat
Yes, correct. You can add "panicresistors" in the signal lines on D9 and D6, 100-200 Ohm would do. It might be that the Servo or ESC are faulty aand you have Vbat on the %V or Signal lines, so check with your multimeter.