Unknown Hall error: 255

Okay thank you! Im gonna try that. The only thing is that i have mt60 connector, so wiring 6 combinations is a ton of work :smile:
But let’s do this!

Your sensor and sensor port on the vesc is working in FOC so I guess it’s a matter of phase wire assignment to get it detected in BLDC. If you have single 3.5mm bullets you could solder short patch cables for testing, they fit into MT60.

Or you give FOC a try (200kv is the upper limit), my motors perform really bad in hybrid BLDC but very good in FOC, no cogging at all. But it depends on the quality of the hardware, too (eg. Maytech doesn’t run in FOC).

Which vesc firmware and tool are you using? I had problems with some versions of the vesc tool and firmware.

I’m pretty scared to use FOC cause I cant afford to damage my vesc. I got one axle and one vanda vesc. My battery cables are also longer than 30cm.

But I will test that 3.5mm bullets if i got some in my screw box.

Im using the latest vesc tool at the moment. Which version did you use?

So I tried every combination the three phase wires can give me. None of them is working. Anyone has an idea how I can check if the Sensor is working or not?

1 Like

If you want to check your hall sensors from the motor you can connect the pos. and neg. wire of your sensorplug with 5 volts. You can also use a 1s battery. Then you take a voltmeter and connect it to the pos. wire and one of the sensor wires. Turn your motor slowly and it should show you +5 volts or 0 volts (or less if you use a 1s battery), it depends if it is a pos. or neg. magnet next to the sensor. Check all three sensor wires.

2 Likes

Nice thank you! I’m gonna try that tomorrow :slight_smile:

I tried it today.

Every sensor wire from H1 to H3 shows me either 5 volt or 0 volt. Depending on the pos or neg magnet next to the sensor like you said

So I assume that the sensor is fine and so are my wirings.

But now I’m even more confused. What is the actual problem here?

1 Like

Can you you take pictures of the the sensor wires, splices, connectors

Sure, I will do everything to make it work :smiley:

Left Foto: from motor to 6 pin connector Right Foto: 6 pin connector

There’s definitely something up with your wiring…it’s giving me a headache looking at it…how many times is it split, theres an orange wire on the connector but I don’t see it in the other pic. I only see 5 wires…

Also on vesc, with connector on the far side from you, left to right, it’s gnd,h3,2,1,t,5v

You could ignore the white wire from the motor if there is no temp sensor which I’m sure there isnt

You have temp between H2 and H3 (actually H2 and H1). As scepterr said temp has to be next to +5V. I’m not sure about your pictures but if you have it connected like your drawing then it’s wrong.

Edit: Hmm, on the pictures it seems you connected it the right way.

sorry about the drawing. it’s not that accurate regarding the position of the wires. It only shows which wires I connected.

you only see 5 wires becuase the motor sensor only has 5. I skipped the temp wire.

@bullrider12 I am just curious if you have a wiring diagram for your motor hall sensors. Or something that is assigning the 5V, GND, H1, H2, H3 and possibly temp to the colors of the cables coming out of your motor. Or if you connected it just based on the colors. I am asking because often times manufacturers dont connect motors based on the regular normalization which is red=positive and black=negative. I have seen some motors that had the white as positive.

1 Like

I’ve used the 140kv variant of this motor and redid the hall plug and it worked fine both in bldc hybrid and FOC.

Double check the temp pin on vesc (usually it’s next to the 5v) and make sure you skip that.

@Martinsp This is the wiring schematic.

@egzplicit on the vesc connector the +5V is the green wire. So according to this picture, it goes to the outer side of the connector. Am I right?

I added a hopefully proper schematic of my wiring. :slight_smile:

That looks like it is correctly wired, and yes the 5V is near the hole in the PCB/corner of the PCB.

What you should do is: while the board is off unplug the sensor connector and connect external power supply of some kind (5V) to the hall sensor connector plug (phase wires dont matter now, you can leave them plugged in to the VESC) according to your connection to 5V and GND. No power should go to the hall signal output (yellow white blue). that would destroy the halls. Now connect a multimeter GND/black probe to negative of the powersupply and positive into one of the three hall sensor outputs, be carefull not to short anything (yellow, white or blue) and see what you get when you rotate the motor very slowly. You might have different values than me but important is that the values are not fluctuating when you are not rotating the motor. What I get is 0.00V in one position and when I rotate the motor a little bit (rotate it just enough that there is the next magnet facing the hall sensor) I get 0.12V. Try this with all of the three sensor wires (yellow white blue) and report back with the results. If you have any more questions feel free to ask.

Hmm, he already did the hall sensor test today. And why it should be 0.12 volt? I tested it and it is 5 or 0 volts between positve wire and sensor wire or 5 or 0 volts between minus and sensor wire. depends which magnet pole is next to the sensor.

I did this with the vesc turned on and I got either 5 or 0 volts.

@yaca you already answered to this :smiley:

I missed the fact that he did the test, sorry.

It depends on what sensors you use, I used just some random sensors I had at that time so they are not very commonly used. The VESC works perfectly fine however. I said that you/he might get different values, It all depends on the halls used. The important part is that you/he should not get values jumping around/fluctuating because that might make the ESC do bad things (cogging etc.) due to incorrect readings.