You are here

Feature request: Raw hall data.

5 posts / 0 new
Last post
Roger Wolff
Offline
Last seen: 5 months 2 weeks ago
VESC FreeVESC Original
Joined: 2017-05-24 12:27
Posts: 202
Feature request: Raw hall data.

Hi, 

 

I have extracted: 

 

from my own VESC. Here we can see the positions where the hall sensor changes state. 

 

Now on the VESC6 I get: 

 

where the observer seems to track the BEMF pretty nicely. However when I do: "detect hall sensors" I get a generic: bad result recieved. I need help figuring out what is wrong.... When everything works, VESC-tool is nice, but when things don't work, it doesnt' provide enough hints to figure out what is wrong. 

 

In the case at hand, I have tested with my scope that the hall sensors provide reasonable data. So I would like to see that the VESC also thinks that all three signals are moving up and down. So for example, the plot above, with BLDC_HALL_TABLE[threebitshall] would be useful to see. If say one signal is not coming through, that would be easy to spot: Only four entries used. 

Edit: added my terminal command that allows me the extraction of the first picture. I see: 

0 0 0 (0/0) 0 32 76

0 1 0 (2/2) 0 78 37

0 0 0 (0/0) 81 0 33

1 0 1 (5/5) 39 0 77

0 0 0 (0/0) 0 38 81

0 1 0 (2/2) 0 82 45

 

so evidently something is wrong with my hardware. But it would be nice to have some help from  VESC-tool in finding this.... 

vimi94
Offline
Last seen: 3 years 6 days ago
Joined: 2019-04-26 16:24
Posts: 18

Hey, Do you know how to get access to stator currents for each phase? I need to log the stator current data for each phase.

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

This should be easy to add. I will look into it.

mystamo
Offline
Last seen: 10 months 5 hours ago
Joined: 2020-07-11 02:45
Posts: 17

Hey Ben,

I've got a similar issue and request. With respect to some HW support from VESC tool. I'm building some of my own hardware and it be awesome to quickly be able to just test all the inputs and outputs via terminal even if possible. For eg Hall pin states as 1 or 0 respectively. Or ADC 1 and 2 available outside the control setup wizard.  Lastly. it be nice to have a section where I can say I know what the heck i'm doing and even invoke the PWM pins to output. Or Phase voltage and current pins just showing some non graphed raw values to just make sure nothing is floating and all hw is in check. I assume this would be very straight forward in terminal. A bit more involved in a GUI. Also I suppose if PWM is invoked on a fully built controller you will blow stuff up :D. Any how. love your work and I will donate shortly when I can.

 

Regards,

 

Mo

blubbi321
Offline
Last seen: 8 months 1 day ago
Joined: 2020-06-15 10:29
Posts: 1

Just to second OP's point: Having the plots for debugging would be really nice :)