Electronic extension spring