Closed dcodeIO closed 4 months ago
Likely answering my own question: When I build and flash 60_75_mk2, the voltages are not inverted anymore. Seeing that in both targets the defines are inverted, that makes sense. So the mk2 FW fits anything that is not an mk1 I suppose :)
Recently I tried to use yet another ABI encoder with a VESC 6 75V, which didn't work, so I eventually checked voltage levels and found that the encoder needs 5V but was given 3.3V. However, the VESC's sensor port should output 5V in ABI mode:
https://github.com/vedderb/bldc/blob/d61bde5841080dd9a31b76b2968c9ac945db8e3a/encoder/encoder.c#L74-L75
So I became curious and tested the other sensor port modes as well, and to my surprise I got:
As can be seen, on this particular VESC 6 75V, the actual and expected voltage levels appear to be exactly inverted to what encoder.c states. Is this a bug?
Hw: 60_75, Fw: v6.05 Beta 25. The device looks like this one. Perhaps wrong firmware?