Hi,
Can I set a pin to go high under a certain condition for example: when the battery is lower than a certain value, can I make one of the pins to go high or low? and if so how can I make that happen?
1 Like
Can I set any of the pin outs which I see in the VESC to high or low? I was thinking of using the SWD IO or Comm TX.
Is there a command which is available in VESC or in ChibiOS which I could use?
Are you using the ADC2 pin? What ESC are you using?
Yes, this can be done.
I am using VESC 6 MK5. I am planning on using ADC/TX/RX/IO pin for configuration.
Are you using the ADC2 pin? What about the “SERVO” pin? Do you use CANBUS?
You also can do Y-PPM wiring if you leave the 5V and GND wires disconnected on all but one of the VESCs, not sure why they wrote that, probably to prevent warranty claims
1 Like
I am trying the following:
if (condition) {
palSetPad(GPIOx, x); or
palClearPad(GPIOx, x);
}
on the servo and other pin, but they dont seem to working. Is my code correct?