The article presents the development and design of a toroidal rotary viscometer using a smartphone for control purposes. The aim is to improve the efficiency of viscosity measurement in polymer solutions. The device is based on a new principle for measuring viscosity using a rotating fluid that moves a magnetically driven ball in a flexible polymeric tube arranged in a toroidal configuration. Unlike the traditional Stokes method for measuring viscosity using a rotating ball in static fluid, the new principle involves measuring the response of the ball to the rotating fluid. This innovative principle allows for detailed analysis of the rheological characteristics of complex polymer systems, such as hydrophilic interpolymer associates (HIAs). HIAs are dynamic structures that form a mesh and are useful for understanding various polymer behaviours. The device has various features that include wireless acquisition and Bluetooth technology for transferring information to a smartphone for real-time monitoring and control. The device also has inductive sensors for detecting the movement of the ball and measuring viscosity accurately. The experimental results show that the newly designed viscometer can be used to measure viscosity over a wide concentration range for poly(N-vinylpyrrolidone) solutions. The smartphone-controlled system is an important development in the field of digital rheology, which not only offers mechanical design precision but also the ease of remote control. The toroidal rotary viscometer offers a more comprehensive and accessible approach to the rheological analysis of polymer solutions, which also has the potential for expansion to other fields such as material science, bioengineering, and environmental studies. This research demonstrates the potential for the integration of smartphone technology in the field of science.