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.
This is the power supply I use for this assignment. It is a GX550 power supply.
In order to turn on the power supply, I need to connect “PS-on” to the “ground”. they are pin 16 and pin17.
As shown in the diagram, after connecting PS ON and ground, the power supply is turned on.
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.
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¶
As you see that the power supply connecting to the cable of my board.
All cables are sucessfully to my board
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.
Connecting between my board with chip and my board with input devices and relay.
Here is the completed connecting diagram. You may see that fan, my board with chip, my input device board and relay are connected.
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.
Here is the testing video. You may click to play the demostration.
Here is the link of the group assignment .