supermileage / dynamometer-firmware

0 stars 0 forks source link

Torque computation function #18

Open LaPommeCosmique opened 1 year ago

LaPommeCosmique commented 1 year ago

Once we have the relationship between the values we read from our dyno sensors, and the total torque produced by the dyno (which we will determine from our calibration), we can use it in a program to calculate torque.

One idea is to write a library/package with a function. The function would take three inputs (force, angular velocity, and angular acceleration) and return the total torque of the dyno.

This can be used by any code, for example, to display torque on an LCD screen, or to calculate power.

def compute_torque (force, angular_velocity, angular_acceleration):

   # code to find torque

   return torque
LaPommeCosmique commented 10 months ago

Moment of inertia measurements - https://docs.google.com/spreadsheets/d/18Bf1usZHIFXgSiZGp47uaTI_0WMdpuZN0ThGDo2x9Bc/edit?usp=sharing

Force sensor calibration measurements - dyno_calibration.xlsx