Home > other >  I want to do the temperature control
I want to do the temperature control

Time:09-23

Is to use DS18b20 temperature measurement, after more than a certain temperature, the stepper motor won't turn, lower than the temperature, the stepper motor turns, is written in c, the zha

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 statements
If (temperature> SetTemp)
{
VMotor_run ();
}
Else if (temperature <=SetTemp)
{
VMotor_stop ();
}

CodePudding user response:

Fixed, very   thank you
  • Related