Well, i did a autoreverse function for my shedder. It counts the rpms and when it goes under a certain rpm, it will reverse for a certain time before it changes to normal direction. I find the code PP extremely overcomplicated. I think, if i would do it again, i would probably use a Current Transformer Coil with mapping to a potentiometer to make iit more or less sensible.