Method and system for shape-memory alloy wire control
A method for controlling a device using a shape-memory alloy wire is disclosed. The method includes determining an ontime for the shape-memory alloy wire based on a target volume to be pumped by a pump plunger, determining the temperature of the shape-memory alloy wire and adjusting the ontime based on the temperature of the shape-memory alloy wire.
1. A method for controlling a device using a shape-memory alloy wire comprising:
a controller determining an ontime for the shape-memory alloy wire in the device based on a target volume to be pumped by a pump plunger in the device;
the controller determining a temperature of the shape-memory alloy wire;
the controller adjusting the ontime for the shape-memory alloy wire based on the temperature of the shape-memory alloy wire;
actuating the shape-memory alloy wire to effectuate the pumping of a volume of fluid by the pump plunger from a reservoir to a volume sensor chamber;
measuring the volume of fluid pumped using a volume sensor assembly;
determining the difference between the target volume and the volume of fluid pumped; and
if the volume of fluid pumped is greater than or less than the target volume, updating the ontime.
2. The method of claim 1 wherein determining the temperature of the shape-memory alloy wire further comprising:
determining the time elapsed since an actuation of the shape-memory alloy; and
using the time elapsed, determining a predictive temperature of the shape-memory alloy wire.