System identification
The most typical method is to identify the process transfer function in the continuous domain, in your case using the physics equation.
Then, you can design a continuous controller, such a PID controller. Once your controller is designed, discretize the controller to implement it.
You could also discretize the process transfer function and design the controller directly in the z-domain. In my experience it is less intuitive to perform the design this way.