Control a universal motor with Arduino

Hi:

The table above is a combination of resistance 8 levels that controls Arduino. This adjusts the motor speed.

In my case I only need 4 levels of speed to the motor with 2 optocouplers.

Motor speed is used only at the end of the laundry, after the motor speed used in the spin cycle.

Greeting.