User Tools

Site Tools


robotsoftware:mobotware:rhd:plugins:rtq

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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>SMRDSerial_plug-in|SMRD-Serial plugin]], because they use the same variables between the [[mobot>RHD|RHD]] and MRC. There are no other know compatability issues with other plugins. This plugin cannot be used together with the [[mobot>SMRDSerial_plug-in|SMRD-Serial plugin]], because they use the same variables between the [[mobot>RHD|RHD]] and MRC. There are no other know compatability issues with other plugins.
 </note> </note>
 +=== Gear ratio ===
 The [[robots:armadillo:hardware:gearratio|gearing]] for the Armadillo is calculated based on the beltmodules. The gearing is calculated directly in the plugin so it is easy to make changes to the gearing. It can be considered to set the gearing via RHD-config file, bu the gearing should not change that often, so that may be a bad idea. The [[robots:armadillo:hardware:gearratio|gearing]] for the Armadillo is calculated based on the beltmodules. The gearing is calculated directly in the plugin so it is easy to make changes to the gearing. It can be considered to set the gearing via RHD-config file, bu the gearing should not change that often, so that may be a bad idea.
  
-$$\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 $r*\omegawhere $r$ is the radius of the circle and $\omegais the anguler velocity.
  
-$$v_p r*\omega$$+To change $\omegafrom RPM to $rad/s$ the following converson is done 
 +$$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}$$ R=[[robots:armadillo:hardware:gearratio|Gear Ratio]]+This constant is called $\frac{\pi}{30}\frac{rad}{s}=\Theta$ 
 + 
 +The angular velocity from the motor to the drivewheel is defines by $\omega=G*m_{RPM}$$G=[[robots:armadillo:hardware:gearratio|Gear Ratio]] 
 + 
 +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}$$+
  
robotsoftware/mobotware/rhd/plugins/rtq.1343810285.txt.gz · Last modified: 2021/08/14 04:20 (external edit)