Spindle Motor control with Arduino

Hey everyone,
I'm trying to control a spindle motor with an Arduino. The goal is to have speed control and display the RPM. I'm a bit lost on how to do it from the videos I've been able to find. So far this is what I have:
https://www.amazon.com/RATTMMOTOR-Spindle-12000RMP-AC110V-220V-Controller/dp/B07ZHFV4N5/ref=sr_1_12?crid=16OW933HGS2PN&dib=eyJ2IjoiMSJ9.-xrLGQTBJWsSyrz-I2C-ixK4MFAUpujazke2pYap1IkgF7OzisgZmNdrmJOkUsVVDcZzAOw8xpAiopISA8zdiTVkSd0KHof-lvqkiMkv5j0fUYhJAGNT_Zu1wvvp-fvLCZW5G1L9X6Q-TYpMOuhvkqbxrlWavUdFewlaN5S-MaqztxcvbMQcpZP2F4ZRpYEaP4D2Czttcqvxh3RpqGkWOhqnEdYLI7xxu6MzxyLPl9mi3u4Q9vbMvSqdEpQpC-IGVbNU3VzcqYjuKCaAt8Zj631pJKmAoYs-EORSRoslYtc.DBudGSzzOVxASRR7pOaecuFOQB-h-mVjstDN5Tb4cYo&dib_tag=se&keywords=spindle+motor&qid=1767992365&s=industrial&sprefix=spindle+motor%2Cindustrial%2C127&sr=1-12
This is the closest link I could find to my motor, same specs besides the controller is a bit different so I attached a photo.
https://www.amazon.com/EL-KIT-001-Project-Complete-Starter-Tutorial/dp/B01CZTLHGE?crid=17J441F77WJKY&dib=eyJ2IjoiMSJ9._L3JiWgIo_Asrnpq9JBCAtgmotCH129UuobLXbY-92tgrjzx7IxM2h_cycYaQoCN60PLHC1L7Er1VM9FGz11bYFvPLSut4phM43IpDDcl76aHrMvt1rn3nHoKYkmNPKMTrhkxAIhEpqctVROqaGkq6vQfAFACTWVOw9fQgGlOpQ9zTPToIFKfsLyNDCLcChFzc3tNr1wKa6q3AyyoYK5YY7evuhH3f6hDKgpwMQ_v2k.4Wc_VJpKBL_fHZTyaYJgLVOKWe3N50gt4pDt3wFDPjA&dib_tag=se&keywords=arduino%2Bkit&qid=1737659912&sprefix=arduino%2Caps%2C171&sr=8-4&th=1

I have a 0-10 PWM as well, from what I can find I need that and maybe a SSR but I'm not to sure and a bit lost. I'm still kinda new to this. Any help would be appreciated!

Welcome to the Arduino forum. Sounds like you have begun an interesting project, but for any help you need to supply more specific information.

First, you know what a spindle motor is, but we don’t.

Second, giving links to kits rather than specific component specifications is no help at all. At least tell us what is written on the motor housing and perhaps use Google to search for that.

Third, you want RPM of the motor, but have not described how you are going to measure it.

Finally, what purpose would a SSR serve in your project.

Please make a block diagram of your project, showing the power supplies, Arduino, motor and any other device and make lines for wires as you intend to connect them. Take a picture and post it on this thread. See the line of icons above and pick the one with a bar+the up arrow.

Thanks for the reply! A Spindle motor is a motor that spins at whatever RPM it is set to, the issue I am having is that the motor I have does not display what speed it is at. It has the control knob that is in the picture I uploaded but it just turns it on and increases the speed with no indication of what it is at. For some reason the links I posted about it got mixed up I will update and share. The housing of the motor has no info.

https://www.amazon.com/RATTMMOTOR-Spindle-12000RMP-AC110V-220V-Controller/dp/B07ZHFV4N5/ref=sr_1_12?crid=16OW933HGS2PN&dib=eyJ2IjoiMSJ9.-xrLGQTBJWsSyrz-I2C-ixK4MFAUpujazke2pYap1IkgF7OzisgZmNdrmJOkUsVVDcZzAOw8xpAiopISA8zdiTVkSd0KHof-lvqkiMkv5j0fUYhJAGNT_Zu1wvvp-fvLCZW5G1L9X6Q-TYpMOuhvkqbxrlWavUdFewlaN5S-MaqztxcvbMQcpZP2F4ZRpYEaP4D2Czttcqvxh3RpqGkWOhqnEdYLI7xxu6MzxyLPl9mi3u4Q9vbMvSqdEpQpC-IGVbNU3VzcqYjuKCaAt8Zj631pJKmAoYs-EORSRoslYtc.DBudGSzzOVxASRR7pOaecuFOQB-h-mVjstDN5Tb4cYo&dib_tag=se&keywords=spindle+motor&qid=1767992365&s=industrial&sprefix=spindle+motor%2Cindustrial%2C127&sr=1-12

When it comes to measuring the RPM that is something I need help with, I don't know how to or how to wire it. I have little to no expertise in that, but willing to learn. As for the SSR I have no idea, it was just in a few videos I found with googling how to control a spindle motor.

How would it know the motor speed unless something measured it?

Its being controlled using the black knob in the photo, but I have no idea what RPM it is set at when I turn it since it has no display or indication of what it is set to. The goal is to have a display, the Arduino kit has an LCD in it that hopefully display it if possible. But I'd like to be able to control it either with the knob more precisely and have it displayed somewhere, either on code off a pc or in the display. Both if possible, that's where I'm looking for assistance

Please understand, no matter what you read or see, the control cannot SET the RPM. It can only change the value of the pulsed current going to the motor.

AFAIK spindle motors are normally three phase and the controller changes the frequency.
The speed is then proportional to the control voltage (0-10V).
But this supply+motor seems to only have two wires (common brushed DC motor).
No speed information here. You get what you pay for.
Leo..

Got it, thanks for the info! Guess I was misinterpreting what I was seeing. Based off your expertise what would I be able to see or control (if able) of this motor from the arduino? I think Ill switch to a hall effect sensor for rpm measurement

Definitely this thing is cheap, was purchased for this project on a very tight budget a couple years ago

My expertise only applies to motors with documentation! You will get whatever you get. Beware how you do the RPM setup that you keep whatever you attach to the armature of the motor keeps the whole thing in balance. Use the weakest magnet you can find if you use a magnet.

Will do, thanks for the advice! If I happen to find more documentation on this motor I will upload

There are modules available (eBay, etc) to convert Arduino PWM to 0-10volt.
Leo..

Okay, as the famous Jack said, let's take it one step at a time.

Your spindle motor is a DC motor commonly used in small CNC machines.

I have one very similar to yours in my CNC.

The recommended voltage for my motor is 6 to 48 VDC.

Are you going to use your spindle motor in a CNC machine?

Part 1.
According to the posted link, the recommended voltage for your motor is 12 to 100 VDC.

Part 2.
To control the speed of DC motors, you can vary the voltage applied to the motor or use the PWM feature.

PWM is a way to send continuous voltage pulses that are adjusted in width, causing the motor to vary its speed.

I'm not a motor specialist, but I think using PWM has better results in terms of motor torque than adjusting the voltage value.

Part 3

If you are going to use this spindle in a CNC machine, the software along with the CNC driver will provide the resources for you to control the CMC and know its speed.

Part 4.

If you are not going to use it in a CNC machine, you could use the speed control recommended by @Wawa.

But since your motor is rated for up to 100V, and this module controls up to 10V, you would need a 100V power supply, (the one that comes with the motor), and a MOSFET that supports at least 150V to control the output.

And you would need to use a Hall sensor to detect the speed and an Arduino to "interpret" and display the speed.

Part 5
You can also build an Arduino that generates the PWM output and displays the PWM value converted into speed on a display.

The Arduino output will control a MOSFET which in turn will control the output of your 100V power supply.

Hth

Image extracted from the link you provided:

PS:

“https://www.superpid.com/SuperPID-Tech-Info-Support-FAQ-Downloads.htm

Yes, setting or estimating speed from PWM should be good enough for a CNC machine.
A good controller has fine adjustment during milling anyway, to minimise resonances.
Leo..

I disagree! The spindle motor holding the tool should always remain the same while the movement of the part being milled will vary.

When I see spindle motor, I think spindle moulder motor.
A beast.
Even the 500-W one shown needs treating with respect.
Rumour has it, spindle moulders were the most feared machines in workshops when cutting blades flew off.

I use Mach4 and it has fine adjustments for spindle speed and milling speed.
Sometimes a little tweak of the RPM setting is needed to make milling smoother.
I assume that the speed of the brushed DC motor from OP is not as rock solid as the speed of a frequency controlled three phase motor (mine is 1500W water-cooled).
Leo..

I believe that for the OP's project, a configuration like the one in the figure would be quite acceptable, relatively easy to build, and low-cost.

But I think choosing the MOSFET will get complicated…

May be NCEP15T14.. It is logical level an suport 150V.

Not sure if optical sensors are a good idea.
It depends on what you're milling (dust?)

OP has already the motor and supply.
An RPM display derived from Arduino's PWM value is the easy way.
Many motor controllers don't have or need a feedback loop.
Can always add one when needed.
Leo..

Yes, my only CNC machine had spindle speed control by varying the current to the motor with an ammeter showing the current/RPM.