PWM a Mains Powered Motor ESP

How do i go about controlling a mains powered motor like this one, it's 60W 220V:

The cables are Live Neutral Earth but seems to have a small box inline, is it possible this motor is a 12V DC and the box is a transformer or rectifier?

Assuming it is mains powered, how can i control the motor with a motor board like i would a 12VDC with e.g L298N Motor Controller, are there any motor controllers for mains power?

I know i can buy a motor controller dial (assuming a potentiometer inside ?) but i want to be able to control the speed with an ESP32/ESP8266 via PWM.

I also have a relay module for an old arduino project, would switching speed be an issue?

Thanks

We cannot answer that for you, without more links or a datasheet. But I would say probably not, the box looks too small and has a plastic case. An AC to DC adapter would probably be larger and have a metal case for heat dissipation.

Yes, and some of them might have PWM inputs that you could use with ESP32, but you must check carefully before you buy. Maybe post a link here to a controller and we can advise if it will be suitable, and safe.

You cannot control the speed of a motor with a relay.

OK, thanks Paul

"I hope the farmer doesn't mind us mixing together.."

The internet doesn't transmit those sorts of viruses, so our bio-security measures should be enough.

Bird flu, swine flu, it's all the same!

It may be an induction motor in which case it can't be speed controlled. What sort of noise does it make? Can you hear any commutator whine?

This may be of interest

Fans often use induction torque motors which can be slowed down by varying the supply volts.

I haven't bought it yet, i am looking to but it's pointless unless i can control the speed with microcontroller remotely, there is a version on ebay that has a speed controller but i am not sure of what's inside, a potentiometer or something else?

thanks paul, i will check the video out later, i may have to look for a similar motor that is 12V

Nothing is ever pointless if you learn from it!

I haven't bought it yet, i am looking to but it's pointless unless i can control the speed with microcontroller remotely

i agree with getting stuck in, finding out and learning something but spending £45 on a motor that might end up in the parts bin because i can't use it, is worth doing a bit of research first

If you look at their EBAY ad, there is a LOT more information, including the type of motor.

Ah, the US ad has a lot more information yes, but what am i missing, i cannot see the type of motor, i see pure copper coil?

Read the text!

i have, i am not sure exactly what i am looking for..

oh ok "Asynchronous Motor" ?

And the number of poles. You only have them with AC motors.

And the rotation speed is a function of the AC frequency!