close all; clear all; %no of teeth on the cogs Na=22; %Small belt cog on the motor Nb=80; %large belt cog on driveshaft 1 Nc=17; %small chain cog on driveshaft 1 Nd=45; %large chain cog on driveshaft 2 R = Nb/Na*Nd/Nc G = Na/Nb*Nc/Nd