This study investigates and discusses thermal
compensation errors. The disadvantages of the thermal
stresses on the bearing and shafts are discussed, the
impacts of the thermal stresses on the CNC machines'
shafts are investigated in the literature review. The DC
motor's control process is conducted based on the
microcontroller basics and principles; the Arduino can
control both the DC motor's direction and speed
depending on the temperature variation. The knowledge
and attachment of the temperature sensor are evaluated
and demonstrated by the control of the temperature sensor
in Arduino, and the appropriate coding is used. A
prototype for the motor and temperature sensor is also
built, and the necessary coding and wiring concepts are
utilised. The H Bridge is used to investigate the motor
control unit. Its logic and wiring are clarified, and then the
connection to the circuit is made. The results give the
correct wiring. The elements of the data sheets are
examined and utilised to wire the circuit correctly.
The findings confirm the advantages of utilising
thermal control for the motor. The resulting stress is
reduced if the thermal stress is considered. When the shaft
temperature rises, the lubricants' viscosity will decrease
and consequently reduce the shaft performance. The use of
cooling fans is constructive in this case. After obtaining
and discussing the results, some recommendations are
made about the thermal compensation and the shafts'
cooling process; the recommendations include the selection
of appropriate fans to the volume in the present shaft, the
suitable selection of lubricant viscosity, which reduces
some of the high-temperature disadvantages, as well as the
proper selection for the shaft fixing and bearings, which
reduces the thermal stress impacts on the performance of
the shaft as well as failure acceleration.
Keywords : Motor Control, DC Motor Direction, H Bridge, Thermal compensation Errors, Shaft Performance, Temperature Sensor.