Controlling a BLDC with arudino

I am trying to control the speed and the direction rotation of trotation of this motor but have no idea how to wire it to Arduino or how to code it in the the IDE, Please help?

You need a motor controller of some kind. What's it for?

1 Like

How much current does it draw and how will you power it?

Neither do we. You don't wire that motor to any micro controller, only to driver boards.

I am building a self adjusting hitch, that takes yaw rate sensor and then moves the hitch until the yaw rate reaches zero

I am going to use an external 12 V battery

I am having trouble finding the right driver, and how to interface it to the micro controller

Just one motor at 12 volts? Does it have to be brushless?

No it has to be high torque, enough to move a 6000 lb load maximum 1 ft

that is the device

I'm sorry, 6000 lbs? Did you happen to notice the third picture from the left, the one with the guy holding this motor in his fingertips?
With specs like "150kg.cm" and "color: 12V", I'm not sure I'd be counting on this unit to get that job done.

What would you suggest?

Start with the appropriate category of equipment. You're talking about something like a fifth wheel landing gear motor, and I can't offer any advice aside from asking at your local RV or farm equipment shop for specific recommendations.
Sorry I can't be more help than that but you're looking for a motor in this range, not the picture you provided. For example:
https://www.etrailer.com/Accessories-and-Parts/Lippert/LC196308.html

How much torque will be required to turn the screw shaft with 6000 lbs sitting on the hitch ball? You need to know that to select a motor.

moemasri98 - loses one letter grade for "arudino"

@hallowed31 -- Archimedes said, "Give me a lever long enough and a fulcrum on which to place it, and I shall move the world."

lol I wrote it in a haste

@runaway_pancake Ah, yes. And John Ruskin said: "When you buy cheap, you buy twice".

What if I want to use the motor for a demonstration? What would I need in order to connect it to the Arduio? Do I need a driver or an ESC? And how do I pick it ?

It is only for a proof of concept, I want to know if I need a driver or an esc to control the motor

Without knowing which motor you actually have, therefore anything about it like what its stall current is, I could only guess.
My guesses are based on personal experience. I have never attempted to move 6000 pounds on a ball hitch with a screw so I don't want to give you the impression that I know the answer. I don't, certainly not without more info and even then, it's a potentially expensive mistake.
The biggest motors I have used are in my Hallowe'en robot, it's about 250-300 pounds as it's built essentially on top of an electric wheelchair. For that (and another, lighter robot), I used Dimension Engineering Sabertooth 2x60s. They make similar single motor drives and they interface very easily with Arduino, in a few different ways that are DIP selectable.
This is the single motor SyRen 50. I don't know if it's up to your task, but I can say that the 2x60s I have used are amazing. Hope that helps.
https://www.dimensionengineering.com/products/syren50