This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
robotsoftware:mobotware:rhd:plugins:rtq [2012/08/01 10:38] claes |
robotsoftware:mobotware:rhd:plugins:rtq [2021/08/14 04:21] (current) |
||
---|---|---|---|
Line 3: | Line 3: | ||
This plugin cannot be used together with the [[mobot> | This plugin cannot be used together with the [[mobot> | ||
</ | </ | ||
+ | === Gear ratio === | ||
The [[robots: | The [[robots: | ||
- | $$\alpha=r*\Theta*R*m_{RPM} -> m_{RPM}=\frac{\alpha}{r*\Theta*R}$$ | + | === Speed Calculations === |
+ | With the current configuration the speed is given in $\frac{cm}{s}$. This is recalculated with | ||
+ | $$v_{in}/100=v_{actual}$$ | ||
- | $$\frac{\pi}{30}\frac{rad}{s}=\Theta$$ | + | == Angular and Linear velocity == |
+ | The relation between the linear speed and angular velocity is given by $v = r*\omega$ where $r$ is the radius of the circle and $\omega$ is the anguler velocity. | ||
- | $$v_p = r*\omega$$ | + | To change |
+ | $$1 RPM = 1\frac{rev}{min}*2\pi\frac{rad}{min}*\frac{1}{60}\frac{min}{s}=\frac{\pi}{30}\frac{rad}{s} | ||
- | $$\omega=R*m_{RPM}$$ | + | This constant is called |
+ | |||
+ | The angular velocity from the motor to the drivewheel is defines by $\omega=G*m_{RPM}$, $G=$ [[robots: | ||
+ | |||
+ | Combine the above formulas and you get the following | ||
+ | |||
+ | $$v=r*\Theta*G*m_{RPM} -> m_{RPM}=\frac{v}{r*\Theta*G}$$ | ||
+ | |||
+ | == Change RPM to control value == | ||
$$controlvalue=\frac{m_{rpm}}{max_{rpm}}*1000$$ | $$controlvalue=\frac{m_{rpm}}{max_{rpm}}*1000$$ | ||
Line 18: | Line 30: | ||
$$max_{RPM}=8000$$ | $$max_{RPM}=8000$$ | ||
- | $$1 RPM = 1\frac{rev}{min}*2\pi\frac{rad}{min}*\frac{1}{60}\frac{min}{s}=\frac{\pi}{30}\frac{rad}{s}$$ | + | |