Explanation:
There has been no information about related to which programming language is to be used, writing code algorithm.
Defining I/O's ;
Analogue output
A01, A02, A03,AO4
Analogue Input;
AI_1 // potentiometer input
// Based on controller used, assign channels to I/O's
// code
int voltage
Voltage = AI_1;
If (Voltage > 0 && Voltage < 1.25)
{
A01 = voltage
A02 = 0;
A03= 0
AO4= 0
}
If (Voltage > 1.25 && Voltage < 2.5)
{
A01 = 1.25
A02 = (Voltage -1.25);
A03= 0
AO4= 0
}
If (Voltage > 2.5 && Voltage < 3.75)
{
A01 = 1.25
A02 = 1.25
A03= (Voltage - 2.5);
AO4= 0
}
else
{
A01 = 1.25
A02 = 1.25
A03= 1.25
AO4= (Voltage - 3.75);
}
return
Answer:
resistance = 2.52 ohms
Explanation:
from the formula
V =IR
Voltage = (current)(resistance)
Resistance =
R=
R= 2.52 ohms
Answer:
The diameter of the shaft is 80.5 mm.
Explanation:
Torsion equation is applied for the diameter of the solid shaft.
Step1
Given:
Power of the shaft is 100 kw.
Revolution per minute is 160 RPM.
Allowable shear stress is 70 Mpa.
Maximum torque is 20% more than the mean torque.
Step2
Mean torque is calculated as follows:



T=5968.31 N-m
Step3
Maximum torque is calculated as follows:



T_{max}=7161.97 N-m
Step4
Apply torsional equation for diameter of shaft as follows:



d=0.0805 m
or,
d=80.5 mm
Thus, the diameter of the shaft is 80.5 mm.