You are on page 1of 3

HoChiMinh City University of Technology Mechatronics Department

HoChiMinh City University of Technology ME2009 - Control System Technology


Faculty Mechanical of Engineering Lab Assignment 2
Mechatronics Department
Controllers

1. INTRODUCTION
Tinkercad is a free-to-use, browser-based tool for 3D modeling, electronics simulation,
and coding. It’s cloud-based and accessible across different operating systems such as
Windows, MacOS, and Linux.
Tinkercad’s 3D modeling features are well known, but its expansion into circuits opens up
a lot of possibilities for simulating circuits with Arduinos. This can be very handy in the
prototype phase of your projects, or if you’re just starting to learn about electronics!
In lab assignment 01, we have learned how to use Arduino to acquire various types of the
signal from a sensor such as a digital photosensor, potentiometers, incremental rotary encoder.
In this lab assignment, we will try to build two control circuits: DC motor control and
temperature control.

2. PROCEDURE

Task 2.1. DC motor speed control


Revise the circuit and code in Task 2 of Lab assignment 01 to control the speed of a DC
motor by PWM with the following specification:
• Use PMW pins of Arduino to generate pulses to change the speed of motor, do not
use OPAMP and transistor.
• There is a DIP Switch SPST x 4 corresponding to 4 speeds of motor.
• There is an LCD 16x2 to display the current speed of motor.
• If the switch 1 is ON, the speed of motor is in the range of 100 - 150 rpm.
• If the switch 2 is ON, the speed of motor is in the range of 200 - 250 rpm
• If the switch 3 is ON, the speed of motor is in the range of 300 - 350 rpm
• If the switch 4 is ON, the speed of motor is in the range of 400 - 450 rpm
• If more than one switch is turned ON or all switches are OFF, the motor is stopped.

ME2009 Control system technology 1/ 3


HoChiMinh City University of Technology Mechatronics Department

Task 2.2. Temperature control


Simplifying our lives with temperature automation has been a priority since the 1600s.
Cornelis Drebbel, a Dutch innovator, invented a thermostat and used it to hatch chicken eggs.
The design was simple – a tube filled with quicksilver connected to a damper. When the
temperature increased, the air expanded, pushed the quicksilver up, and closed the damper.
When the temperature dropped, the quicksilver would fall and the damper would open,
allowing hot air to enter.
Just like Drebbel, we don’t have time to watch our chickens hatch, so free up your time
and utility budget with an automated fan with a temperature sensor control system. Fans with
temperature sensor control give the best of both worlds with energy savings and consistent
comfort around all seasons.
Using the automated fan control is as simple as selecting the desired temperature range
and leaving it to do its work. When the temperature rises above the desired temperature range,
the fans will automatically run in the forward direction and create a cooling effect. If the
temperature drops below the desired temperature range, the automated fan control will run the
fans in the reverse direction to redistribute the warm air overhead and eliminate hot and cold
spots without generating a discernible breeze.
In this task, you are required to simulate that real application by using Tinkercad. Build a
control system for an automatic cooling fan (revise from previous tasks) with the following
specification:
1. Temperature should be sampled by an Arduino Uno once every second using a TMP36
temperature sensor, then displayed in two 7-segment LEDs.

ME2009 Control system technology 2/ 3


HoChiMinh City University of Technology Mechatronics Department

2. If the temperature is above 50°C, a DC motor (representing the cooling fan) should run
at full speed in forward direction.
3. If the temperature is above 35°C, the motor speed should be a half of full speed in
forward direction.
4. If the temperature is below 20°C, the motor speed should be a half of full speed in
reverse direction.
5. If the temperature is below 10°C, the motor speed should be at full speed in reverse
direction.
6. The LCD is used to display the motor speed (unit: RMP) and direction (FWD or REV).

3. REFERENCE
[1] 3 Benefits of Fans with Temperature Control, 2017. Available:
https://macroairfans.com/blog/3-benefits-automated-fan-control/. [Accessed: 06-
November- 2021].

ME2009 Control system technology 3/ 3

You might also like