You are here

Reading tachometer over can bus

6 posts / 0 new
Last post
kimpet
Offline
Last seen: 5 years 3 months ago
Joined: 2019-04-01 11:39
Posts: 7
Reading tachometer over can bus

As I am using one of my VESCs to control a motor that turns (jaw) an outboard boat motor with a 100:1 gear ratio it would be extremely useful to read the tachometer counts.

When running the real time data analysis you can see that the tachometer reads every pulse from the encoder

In my chase its 3 hall sensors, so one rotation of my rotor would make the tachometer value change by +/- 12

 

How can I pull this data? 

It is not seen in the 1_2_3_4 status updates that is broadcasted.

 

2019-05-12_0.png

benjamin
Offline
Last seen: 1 week 1 day ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

The next firmware will have a CAN_PACKET_STATUS_5 with input voltage and the tachometer value. I will be away all week, but it should be released arond friday.

kimpet
Offline
Last seen: 5 years 3 months ago
Joined: 2019-04-01 11:39
Posts: 7

Thank you for the quick answer Benjamin

Is it possible to download this version now? I am working on my bachelor project and need to be finished with the program within Monday

benjamin
Offline
Last seen: 1 week 1 day ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

I just uploaded the latest firmware and VESC Tool, which has the CAN_PACKET_STATUS_5 message. Let me know if it works.

kimpet
Offline
Last seen: 5 years 3 months ago
Joined: 2019-04-01 11:39
Posts: 7

The tachometer works perfectly. But there might be a problem with voltage input. I get the value 01 E0 00 00 = 31 457 280 when the voltage to my vesc is 48V

benjamin
Offline
Last seen: 1 week 1 day ago
VESC FreeVESC OriginalVESC Platinum
Joined: 2016-12-26 15:20
Posts: 490

The voltage is 2 bytes only in 0.1v units, so that sounds correct. The last two bytes are reserved until I decide on something else that is useful to put there.