Unknown Hall error: 255

Do not reverse the polarity of the power supply (power input to the halls). I was talking about the position of your measuring probes not where you connect the power.

Why would he get readings between 5v and H wires instead of GND and H? So weirdā€¦

I dont really think that that is possible. You should get at least somethingā€¦ is there a chance you had your probes not connected properly?

I will try again tomorrow, but Iā€™m pretty sure I did it right.

Since I donā€™t have an external power source I connected the gnd and 5v from sensor to the vesc and pulled out the sensor wires from the jst connector. Donā€™t worry I made sure they donā€™t touch each other :slight_smile:

Then I connected one probe to gnd and the other one to (h1 h2 h3) and got 0 volts. Even if I turned the motor by hand.

After that I tried it with 5v and (h1 h2 h3) and instantly got 5v. Turning the motor to next magnet gave me 0 volt and so on.

Let me try it again tomorrow.

Usually I measured my hall sensors with a 1s lipo battery and I got the same volts between + and H and also between gnd and H, 0 / 4 volts, just the opposite way (depends on the magnet pole). Now first time I measurd directly at the sensor plug (focbox) when the vesc is on. I donā€™t know what that means but I measured strange values. Between + and H I get 5,13 / 1,54 volts and between gnd and H I get 3,62 / 0,03 volts. Anybody knows if this values are normal?

That is very strange behavior. :thinking: Try this @bullrider12 measure between 5V and H(does not matter which one) and rotate the motor by hand slowly to a point where you get 0V on your meter. Now without moving the motor connect the meter instead of 5V to GND and you should be getting those 5V. Because you are using different ā€œsideā€ (5V being one side and GND the other) as a reference so where you get 5V against 5V you should get 0V against GND and vice versa.

@yaca the exact values may be different because of the saturation curve of the hall sensors used. But this is my theory with your case: When you get 5,13 against 5V (as I explained in previous part of this reply) it is normal that you get low value against GND. the VESC was supplying 5,16V (5.13+0.03) at that time it seems like, which is correct. The same goes for 3.62+1,54=5.16 It is OK, you are just referencing the voltage against a different part of the supply. If your VESC works/recognizes the sensors you are good.

2 Likes

Tried this again with same results. 5v/H = 5.15/0 volt Gnd/H= 0 volt

I got two motors/two vescs and measured this on both with the Results aboveā€¦ so what does this actually mean for me.

Update

I finally got my sensored setup working. Iā€™m not using the stock sensors from my motors cause it seems like there is broken cable somewhere. Since I donā€™t want to open up my motor I tried to build an external hall sensor after this tutorial: http://www.instructables.com/id/How-to-Add-External-Hall-Sensors-to-a-Turnigy-SK3-/

Thank you for that tutorial btw. @danielz :slight_smile:

It was a pain in the ass to solder those tiny parts, but in the end it all worked out :slight_smile:

Thanks to everyone who participated in this problem!

3 Likes

Excellent, they are tricky to solder, i broke the legs off on my first attempt lol

Could this issue be because of the orange cable which would be the temp sensor is not soldered to a line thus creating a second grounded pin. If you popped that pin out it could correct the problem

I have also problems with the Hall sensor detection of my Motor as well (maytech 6374 170KV). VESC is a Focbox. I can measure 0V or 3.3 V on all 3 lines (orange, brown and green) depending on motorposition. VCC is 5.1V Yellow one ist temp sensor. I can see roomtemperature in the VESC tool. I tried higher currents as well. Rotor is spinning.

Do i need 5V signal level for the halls? Then I have to lower the trigger levelā€¦

That is oddā€¦ do you get any numbers? Or just fail with no values for the sensors detected?

No values, just error :frowning:

1 Like

In both BLDC and FOC? BLDC si said to be a hit or miss with some hall sensors

Just tried foc

with the same result?

This are the results for BLDC & FOC. Both failed!

Iā€™m joining in.

I did the motor detection in BLDC and FOC with sensors. It fails in BLDC mode, the hall table is exactly like the one @Luuke has in BLDC. However, in FOC mode, the sensor detection went fine, I got proper values in the table.

Is that normal ? Iā€™m quite bothered as Iā€™m using a Torqueboard Vesc for now on a 10S battery, I donā€™t really want to run FOC as it seems that those VESC donā€™t really like itā€¦

@louwii What motor is this on?

Also, @Luuke Iā€™m pretty certain your motor doesnā€™t have a temp sensor unless you added one, I would verify wire order, the vesc, focbox have an internal temp sensor that always shows temp

Thatā€™s on a build kit board motor, that I bought used from a forum member.