version with tuned motor
Using Mahdi's library version