Patent attributes
A downhole valve includes a stationary sleeve for connection to a production string or a downhole tool, which includes one or more slots in the body of the stationary sleeve open to the interior of the stationary sleeve. A microcontroller is connected to a conducting cable and configured to control a flow of electrical power independently to a coil connected to an electrical power source at the surface. An inner sleeve is configured to fit within the stationary sleeve. The inner sleeve has an internal or external magnetized portion and one or more ports open to the interior of the inner sleeve. The sleeve is moveable within the stationary sleeve under power provided by a magnetic field generated by electrical current passing through the coil to align the ports with the slots to open the valve or to remove alignment of the ports with the slots to close the valve.