I have amended the code for controlling the brightness of the LED with the force measured by the load cell for it to be true when the force is above a threshold. This could be implemented on the motor to control the direction of motion according to the load.
In order to minimise the bias voltage, I have calculate the theoretical value of the resistors using the current flowing into both the inverting and non-inverting terminals of the op-amp. Due to the limited amount of current, no difference can be found. According to the theory of op-amps, when current and voltage of both terminals equal, minimum offset of input bias is obtained to R1//Rf = R2//Rg. I have changed a number of different combinations and ended up lowering the offset by 200. I have found another trail and error method on the internet which I will try tomorrow.
The motor driver and the male connection wires will arrive tomorrow.
No comments:
Post a Comment