Scenario Three - Controlling Temperature.

Scenario 3 – Controlling Temperature.


[Temporary URL - https://www.tinkercad.com/things/irhIvu2cqnK]

The idea with this circuit is to turn on the fan automatically when the temperature rises above a given level.

Here, the fan blades are removed from the simulation to reveal the motor. When activated, the cog will turn.

Figure 28. TinkerCAD Circuits 'Controlling Temperature' scenario.

Click on the ‘Start Simulation’ button.

Click on the temperature sensor .

move the slider, and observe what happens to the fan.

Stop the simulation and click the title “.

Click on “Temp sensor and fan” and “Tinker” with the code to trigger the fan at different temperatures.  

Again, open the serial monitor and watch the numbers in the data change as you change the values in the light sensor. Next, look for the following line of code, and change the value from 150 to another number to see the change in threshold and how it affects when the motor is turned on and off.

 if (val >= 150)


Complete and Continue