Skip to content

13. Output devices

This week task as below:

  • Individual project

Add an output device to a microcontroller board you’ve designed and program it to do something.

I am going to connect my board to a relay and a fan. By programming the board, the chip can turn on or turn off the fan by measuring different temperature.

Power supply

Step 1:

This is the power supply I use for this assignment. It is a GX550 power supply.

Step 2:

In order to turn on the power supply, I need to connect “PS-on” to the “ground”. they are pin 16 and pin17.

Step 3:

As shown in the diagram, after connecting PS ON and ground, the power supply is turned on.

Step 4:

There is a 12V, I use the meter to measure it is 12.28 Volt. It is used for 12V power supply of the Fan.

Step 5:

Also, there is are 5V supplied.

It is measured that it is 5.17 Volt and it is used to give the power for the board.

Output device, programming and testing

Step 1:

As you see that the power supply connecting to the cable of my board.

Step 2:

All cables are sucessfully to my board

Step 3:

I am going to connect the power supply, my board with chip, board with input device (temperature sensor) and relay.

The connecting diagram look like below.

Step 4:

Connecting between my board with chip and my board with input devices and relay.

Step 5:

Here is the completed connecting diagram. You may see that fan, my board with chip, my input device board and relay are connected.

Step 6:

The program logic behave like this.

Case 1 :Room temperature is lower than 25C, The LED will keep flashing and fan is turned off.

Case 2 :Room temperature is higher than 25C, The LED will turn on and fan is turned on.

You may also download the program here.

Please click here to download the ino file

Step 7:

Here is the testing video. You may click to play the demostration.

Group assignments

Here is the link of the group assignment .

Last update: July 3, 2021