You are here

Encoder connection

12 posts / 0 new
Last post
Herbie
Offline
Last seen: 5 years 3 months ago
Joined: 2019-05-16 15:14
Posts: 2
Encoder connection

yHello,

i wanted to connect the AS5047-Encoder to the Vesc for a sensored BLDC use. I could only find the following wiring in the forum:

Hall1 - SCK  

Hall2 - MISO

Hall3 - CS

VCC - MOSI

Is this everything to connect? What about the GND?

Thanks for your help.

Roger Wolff
Offline
Last seen: 2 years 5 months ago
VESC Original
Joined: 2017-05-24 12:27
Posts: 202

Of course you should also connect ground. 
GND -- GND

 

Herbie
Offline
Last seen: 5 years 3 months ago
Joined: 2019-05-16 15:14
Posts: 2

The problem is that the GND cable burned when i started the automatic encoder detection/setup. It said that the motor will spin or make some noise but it only melt the GND cable insulation.

frank
Offline
Last seen: 3 weeks 2 days ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

The AS board needs to be isolated, no gnd contact to nothing! GND contact only to VESC.

AS5047P

 

Paresh Chaudhary
Offline
Last seen: 1 year 4 months ago
Joined: 2019-08-06 18:28
Posts: 1

I tried the same connection configuration but the vesc does not detect AS5047p

frank
Offline
Last seen: 3 weeks 2 days ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

Cables need to be short.

RacingJa
Offline
Last seen: 3 years 2 weeks ago
Joined: 2021-10-28 15:15
Posts: 3

How short does it need to be? My cables from the AS5047 to the vesc are like 30cm's. I connected everything like above but it doesn't detect the sensor and I don't know how to fix it.

frank
Offline
Last seen: 3 weeks 2 days ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

30cm should work, but it is long for the AS5047P. The sensor needs to be close to the magnet and really well centered. Can you try a shorter cable? Is the Voltage at 3.3V on VESC side and AS5047P side?

RacingJa
Offline
Last seen: 3 years 2 weeks ago
Joined: 2021-10-28 15:15
Posts: 3

I just saw in a comment above that the R1 need to be replaced to R3, is this the problem you think because yes the VESC and sensor are on 3,3V.

frank
Offline
Last seen: 3 weeks 2 days ago
VESC BronzeVESC FreeVESC GoldVESC OriginalVESC PlatinumVESC Silver
Joined: 2016-12-27 20:19
Posts: 847

It works best on 3.3V and so you need to use 3.3V on the VESC side and solder the resistor into the 3.3V position. You can also try 5V but that generates more noise.

RacingJa
Offline
Last seen: 3 years 2 weeks ago
Joined: 2021-10-28 15:15
Posts: 3

Even with switching the resistors, the VESC tool  says that it its sensorless. They are on both sides connected to 3.3V like the picture above. Maybe it is something in the VESC tool? 

Dencio1976
Offline
Last seen: 2 years 1 month ago
Joined: 2022-03-29 07:38
Posts: 1

Hi, I have a 4.20 version ESC and want to know if this connection works in 2022? AS5047P in SPI mode?