In my previous thread I had a problem with interfacing Simulink to control Arduino. I listened to the advice and took classical approach (implementing control in arduino sketch).
Here is my next problem - in order to obtain good parameters for LQR/LQG control I need to model the system. The thing is, I don't know how to calculate relationship between PWM and force of a DC motor. I've found some formulas (for example, number (3) LQG Control Design for Balancing an Inverted Pendulum Mobile Robot ), but I only know voltage, current, power and rpm. Is there any way to measure/estimate these parameters?