Fridge Compressor with Atmega 328

Hello everyone.

I got last year an Arduino UNO board with the idea of using it to drive a 12v fridge compressor, as an alternative to the Danfoss BD35.

After learning something about it in a refrigeration shop, i found out that using a switched reluctance motor and 3 darlingtons attached to 3 digital pins of the Atmega, maybe i can drive the compressor. I mean a 3 coil (6 real coils) motor wich has a "+" shaped rotor wich would drive the piston that pumps the gas into the condenser coil.

I'm trying to master the Arduino language and as i have the board built, i need to write the software.

The pseudocode would be this:

variables:

thermostat
timer
phase 1
phase 2
phase 3

main{
Read thermostat (pin)
If thermostat = 0
just remain quiet
}

thermostat = 1
read timer
timer.time <= 2 min?
yes = wait timer > 2 min
no =
do while (thermostat = 1 & timer.time > 2 min
{
phase 1.on
phase 1.off
wait (10 ms)
phase 2.on
phase2.off
wait(10ms)
phase3.on
phase3.off
wait(10ms)
return;
}
return main;

Is your compressor motor a Brushless DC motor like on the Danfoss BD35?

I beg your pardon for taking long to answer.

Effectibly i wish to achieve a danfoss bd-35 like compressor. Motor would be a switched reluctance one, driving the piston. Happens that i have a refrigeration tech who could replace the original shaded pole motor by one of this..