Adding hall sensors to 63mm motor and vesc testing

Lightweight / Folding / Portable EVs - seats optional
vedder
100 W
100 W
Posts: 257
Joined: Sat Nov 05, 2011 9:37 pm

Re: Adding hall sensors to 63mm motor and vesc testing

Post by vedder » Tue Aug 04, 2015 6:55 am

silviasol wrote:
vedder wrote:
silviasol wrote:Finally got another vesc ready so I could have a spare just in case when doing a long range test with sensored only. Even with 6s I am getting drv8302 errors. Seems to happen after the motor heats up a bit. Happened about 5 times on a 25 mile trip. No problems giving it full throttle at a stand still but seems to be just random giving the error, a few times after stopping then going and a few times getting to top speed. I am going to ditch the usb connector and solder it directly to the wiring and see if that helps.
Are you using sensored mode only and not hybrid?
Yes. I wanted to see how much more quiet it was then sensorless or hybrid. Tonight I am going to try hybrid mode.
There should be no difference in how quiet it is. Sensored is not nearly as good for high speed since there are filters on the hall sensor port that introduce delay and I haven't implemented anything to compensate for that. The higher the speed the more the timing will be delayed, which is the opposite of what the motor needs (timing should be advanced at high speed, not delayed). Hybrid should work much better in all aspects than sensored only.
Some of my projects: http://vedder.se
Support my open source ESC development with a small donation

silviasol
10 kW
10 kW
Posts: 983
Joined: Sun Dec 30, 2012 8:13 pm

Re: Adding hall sensors to 63mm motor and vesc testing

Post by silviasol » Tue Aug 04, 2015 8:19 pm

vedder wrote:
There should be no difference in how quiet it is. Sensored is not nearly as good for high speed since there are filters on the hall sensor port that introduce delay and I haven't implemented anything to compensate for that. The higher the speed the more the timing will be delayed, which is the opposite of what the motor needs (timing should be advanced at high speed, not delayed). Hybrid should work much better in all aspects than sensored only.
I took a shorter 5 mile trip last night with hybrid and there was no errors. I will just use hybrid. Going to use 10s on my next ride, hopefully it will not be too much voltage for 270kv. Looking forward to the hexagonal firmware upgraded. Will that replace sensored hybrid all together or will it still use sensors for hybrid?
Current project: 10s 20ah sensored goped hoverboard
https://endless-sphere.com/forums/viewto ... 35&t=62155

User avatar
sk8norcal
10 GW
10 GW
Posts: 4297
Joined: Sun May 16, 2010 5:29 am

Re: Adding hall sensors to 63mm motor and vesc testing

Post by sk8norcal » Tue Aug 04, 2015 10:07 pm

subcribed.

elkick
100 W
100 W
Posts: 135
Joined: Thu Nov 13, 2014 3:45 am

Re: Adding hall sensors to 63mm motor and vesc testing

Post by elkick » Tue Aug 25, 2015 1:03 pm

I'm adding a sensored motor to the VESC and I have to solder a new connector to the sensor wires (alien 5060/270kv motor).

1. I'm trying to figure out the correct wires on the hall connector of the VESC. I know Benjamin's layout of the pins but I'm unsure which one should be pin 1: if I'm looking at the board from the top and the motor wires facing right - pin 1 (5V) must be the bottom one?

2. Also trying to figure out the H1 to H3 color coding of the wires (blue, green, yellow), are there any standards, like:
P1: Red = 5V
P2: White = temp
P3: Blue = H1 (?)
P4: Green = H2 (?)
P5: Yellow = H3 (?)
P5: Black = GND

Any ideas?
http://www.esk8.de/vesc VESC V4.12 - made in Germany
http://www.esk8.de/shop General eSkateboard parts

silviasol
10 kW
10 kW
Posts: 983
Joined: Sun Dec 30, 2012 8:13 pm

Re: Adding hall sensors to 63mm motor and vesc testing

Post by silviasol » Tue Aug 25, 2015 8:38 pm

Pin 1 which is the positive pin is the one at the corner of the board. The temp is the next pin which should be left open, then hall 1,2 and 3 pins then negative. Just make sure the negative and positive are correct, not sure what would happen if they were not correct. It doesn't matter which hall wire you have in which pin when you test it you adjust settings. Just make sure to use the hall settings from when the motor spins in the direction that you want it to. If not flip two wires so it goes the opposite direction and use those settings.
Current project: 10s 20ah sensored goped hoverboard
https://endless-sphere.com/forums/viewto ... 35&t=62155

elkick
100 W
100 W
Posts: 135
Joined: Thu Nov 13, 2014 3:45 am

Re: Adding hall sensors to 63mm motor and vesc testing

Post by elkick » Wed Aug 26, 2015 4:08 am

Thanks for your help, I was completely wrong with my assumption for the pin layout - will test it now.

It seems to be a general problem with the Chinese sensored motors that those sensor wires don't have a standard color coding and no documentation is available. I'm having now 36 possibilities to test which color means what. :wink:
http://www.esk8.de/vesc VESC V4.12 - made in Germany
http://www.esk8.de/shop General eSkateboard parts

silviasol
10 kW
10 kW
Posts: 983
Joined: Sun Dec 30, 2012 8:13 pm

Re: Adding hall sensors to 63mm motor and vesc testing

Post by silviasol » Wed Aug 26, 2015 5:19 am

What colors are they? I wonder if hooking the positive/negative incorrectly will damage the sensors. Do you have a multimeter? I can test my motor to see if I get any kind of reading that will point out which is positive and which negative.
Current project: 10s 20ah sensored goped hoverboard
https://endless-sphere.com/forums/viewto ... 35&t=62155

elkick
100 W
100 W
Posts: 135
Joined: Thu Nov 13, 2014 3:45 am

Re: Adding hall sensors to 63mm motor and vesc testing

Post by elkick » Wed Aug 26, 2015 5:32 am

I have a multimeter, will try that too. The colors are red, white, green, yellow, black and blue. I think there should be no damage since its low current, but I'm not sure.

It's working sensorless though (after detection).
http://www.esk8.de/vesc VESC V4.12 - made in Germany
http://www.esk8.de/shop General eSkateboard parts

silviasol
10 kW
10 kW
Posts: 983
Joined: Sun Dec 30, 2012 8:13 pm

Re: Adding hall sensors to 63mm motor and vesc testing

Post by silviasol » Wed Aug 26, 2015 5:48 am

Red and black should be pos/neg. Hall wires are probably yellow green and blue since that is how one of my controllers have the wiring.
Current project: 10s 20ah sensored goped hoverboard
https://endless-sphere.com/forums/viewto ... 35&t=62155

elkick
100 W
100 W
Posts: 135
Joined: Thu Nov 13, 2014 3:45 am

Re: Adding hall sensors to 63mm motor and vesc testing

Post by elkick » Fri Aug 28, 2015 11:29 am

Thank you silviasol, got it now - it's completely non-standard:

yellow positive
red negative
green temperature
blue white and black the phases

It's not a very big difference in sensored/hybrid mode versus unsensored in the flat, but might be an advantage on hills (which I have to test yet, not enough steep hills around here). :)
http://www.esk8.de/vesc VESC V4.12 - made in Germany
http://www.esk8.de/shop General eSkateboard parts

silviasol
10 kW
10 kW
Posts: 983
Joined: Sun Dec 30, 2012 8:13 pm

Re: Adding hall sensors to 63mm motor and vesc testing

Post by silviasol » Sat Aug 29, 2015 1:38 am

Yes there is no a big difference. You will notice if it you go slowely over bumps though, sensored will power over a bump from a stand still and unsensored will cog the motor.
Current project: 10s 20ah sensored goped hoverboard
https://endless-sphere.com/forums/viewto ... 35&t=62155

User avatar
Ecyclist
100 W
100 W
Posts: 237
Joined: Fri Apr 01, 2016 10:53 pm

Re: Adding hall sensors to 63mm motor and vesc testing

Post by Ecyclist » Thu Jun 22, 2017 8:53 pm

Can anyone recommend supplier for 6-pin JST connector for VESC?
The hall connector of my motor is one notch too small.

Post Reply