AlkaMotors / AM32-MultiRotor-ESC-firmware

Firmware for stm32f051 based speed controllers for use with mutirotors
GNU General Public License v3.0
754 stars 266 forks source link

Telemetry on pin PA14 #89

Closed Heclo closed 1 year ago

Heclo commented 1 year ago

I have a set of Razor32 V2 35A ESC's which I have converted to AM32 firmware, however the telemetry pad on these ESC's is connected to PA14 (usart2) and not PB6.

Is there some option for changing the telemetry TX pin to PA14?

Edit: PA14 is only Uart2tx as an alternate function.

AlkaMotors commented 1 year ago

@Heclo Sorry i missed this. I think we can do a version output on pa14. The problem is, unless we have the exact hardware, chances are the current or voltage scale will be off so the output might be not accurate. What firmware file did the razor32 use?

Heclo commented 1 year ago

Hi AlkaMotors, thanks for responding! The hardware layout is the C variant, I used the one for MP6531. The voltage reading must be on point, as the speedPID loop works like a charm, so does current limit and under voltage protection. I plan on designing my own PCB with hardware layout A, so if it is too much of a hassle to make this conversion, don't worry about it. ;)

AlkaMotors commented 1 year ago

I added it quickly but i am unable to test myself until the weekend? You would also need to enable "30ms telemetry" in the config tool. RAZOR32_TEST_PA14_TLM.zip