for senior project: current sensing from controller