Hall effect sensor connection question

General topics and discussions about the VESC and its development.
slapshot136
Posts: 27
Joined: 15 Sep 2016, 18:24

Hall effect sensor connection question

Postby slapshot136 » 29 Aug 2017, 14:22

I seem to be having a hard time finding the actual pinout (not a build with a vague image of it) for the hall effect sensor port - I have found that it has a 5v, a gnd, and a motor temperature pin - my question is where is a detailed pinout, are the hall effect inputs supposed to be 5v, or 3v3, and what value NTC to use for the motor temperature and if it connects to the 5v or the GND?

rew
Posts: 904
Joined: 25 Mar 2016, 12:29
Location: Delft, Netherlands.

Re: Hall effect sensor connection question

Postby rew » 29 Aug 2017, 18:49

I did the legwork for you for "hardware 4.8".
(get the source to the firmware, browse to hwconf/<yourhardwareversion>.h look for HW_HALL_ENC_GPIO1, and you'll see what pins the hall connect to. Then get the datasheet for STM32F405, look for the pins listed as the hall sensor pins and check if they have "FT" mentioned.
For HW4.8, that turns out that PB6, PB7 and PC11 are all three FT: Five Volt Tolerant.

So 3.3V or 5V is fine. If your hall sensors require pullups, you will have to provide those externally. For the physical layout, check the schematics I guess. I don't have that close by now.

slapshot136
Posts: 27
Joined: 15 Sep 2016, 18:24

Re: Hall effect sensor connection question

Postby slapshot136 » 04 Sep 2017, 16:49

Thanks Rew! knowing that there are some 5v tolerant pins to look for let me actually understand it a lot better now

pf26
Posts: 278
Joined: 28 Mar 2016, 14:37
Location: FR Valence

Re: Hall effect sensor connection question

Postby pf26 » 05 Sep 2017, 08:03

You can check the VESC schematics here: https://github.com/vedderb/bldc-hardware/blob/master/design/BLDC_4.pdf?raw=true
From page5, there are already pullups implemented (to VCC=3.3V).

rew
Posts: 904
Joined: 25 Mar 2016, 12:29
Location: Delft, Netherlands.

Re: Hall effect sensor connection question

Postby rew » 08 Sep 2017, 19:21

iirc, that is a "late" addition, i.e. now it's there, but it wasn't in the past.


Return to “General”

Who is online

Users browsing this forum: No registered users and 3 guests