Motor smart controller for E-rickshaws