CodePudding user response:
To drive the DS18B20 to obtain temperature first, and then use the if whether the temperature exceeds the threshold, if not more than the executive function of stepping motor rotation,CodePudding user response:
. Has just written a similar than you are strict with timing point, however, to obtain temperature and stepper motor control should have the reference in the last few data manual surface driven, copy down,CodePudding user response:
Define temperature acquisition and motor rotation function first, and then to determine if statementsIf (temperature> SetTemp)
{
VMotor_run ();
}
Else if (temperature <=SetTemp)
{
VMotor_stop ();
}
CodePudding user response:
Fixed, very thank you