You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<td>Arduino Uno Rev3 (R3)<br><spanclass="subtitle">(or Arduino Nano, Arduino Mega, ESP32, etc.)</span></td>
58
+
<td>This is the microcontroller board with the processor</td>
59
+
</tr>
60
+
<tr>
61
+
<td>Temperature and Humidity Sensor Module AM2302<br><spanclass="subtitle">(or DHT11, DHT22)</span></td>
62
+
</tr>
63
+
<tr>
64
+
<td>4 Mini Pushbutton Switches</td>
65
+
<td>This will serve as the control interface, allowing the users to change the desired temperature.</td>
66
+
</tr>
67
+
<tr>
68
+
<td>1-Channel 5V 10A Relay Module with Optocoupler</td>
69
+
</tr>
70
+
<tr>
71
+
<td>Liquid Crystal Display (LCD) - I2C</td>
72
+
</tr>
73
+
<tr>
74
+
<td>Jumper Cables</td>
75
+
<td>This will be used as a connector. Male-to-Female (M/F) will be used to connect the terminals of the sensor module to the breadboard. Male-to-Male (M/M)</td>
76
+
</tr>
77
+
<tr>
78
+
<td>Solderless Breadboard<br><spanclass="subtitle">Minimum recommended size: 400 tie points </span></td>
79
+
</tr>
80
+
</tbody>
81
+
</table>
82
+
</div>
83
+
84
+
</ul>
85
+
<h3>Software</h3>
86
+
Arduino IDE
87
+
<table>
88
+
<ahref="https://commons.wikimedia.org/wiki/File:Arduino_IDE_logo.svg"><imgwidth="36" display="flex" alt="Arduino IDE logo" src="https://upload.wikimedia.org/wikipedia/commons/thumb/7/73/Arduino_IDE_logo.svg/512px-Arduino_IDE_logo.svg.png?20230510165732"></a>
89
+
</table>
90
+
91
+
</div>
92
+
<divid="Procedures"><h2>Procedures</h2>
93
+
94
+
<divid="Board-to-IDE"><h3>Connecting the Board to the Development Environment</h3>
95
+
<ol>
96
+
<li>
97
+
Plug the Arduino Uno board to one of the USB ports of the laptop/ computer through the USB Type-A to USB Type-B cable. This should light up the LED marked "ON" on the Arduino Uno to indicate that the board is now being powered.
98
+
</li>
99
+
<li>
100
+
Launch the Arduino IDE.
101
+
<divclass="alert alert-warning">
102
+
<spanclass="fas"></span>
103
+
<strong>Warning! </strong>Laptops/ computers generally can recognize that there is a USB device connected, but are not able to automatically identify it as an Arduino board.
104
+
</div>
105
+
<ol>
106
+
<li><strong>Tools </strong><iclass="fas"></i></span><strong> Board</strong>, then select Arduino Uno.</li>
107
+
<li><strong>Tools </strong><iclass="fas"></i></span><strong> Port</strong>, then select the communication (COM) port that corresponds to the Arduino.</li>
<strong>Note. </strong>The port can be identified through the system’s Device Manager, wherein the Arduino Uno appears as an “Unknown device”.
111
+
</div>
112
+
</ol>
113
+
</li>
114
+
</ol>
115
+
</div>
116
+
117
+
<div><h3>Creating a New Sketch</h3>
118
+
<ol>
119
+
<li>Load a new sketch in the Arduino IDE.</li>
120
+
<ol>
121
+
<li><strong>File <iclass="fas"></i></span> New</strong> The sketch should contain the .ino file extension.</li>
122
+
<pre><codeclass="language-arduino">
123
+
void setup(){
124
+
// put your setup code here, to run once:
125
+
126
+
}
127
+
128
+
void loop(){
129
+
// put your main code here, to run repeatedly:
130
+
131
+
}
132
+
</code></pre>
133
+
</ol>
134
+
<li>Download the libraries. There are two (2) methods to this.
135
+
<olclass="method-list">
136
+
<liclass="method-list-item">Open the <strong>Library Manager</strong> within Arduino IDE.</li>
137
+
<ol>
138
+
<li><strong>Sketch <iclass="fas"></i> Include Library <iclass="fas"></i> Manage Libraries</strong> or <strong>Tools <iclass="fas"></i>Manage Libraries</li></strong>
139
+
</ol>
140
+
</ol>
141
+
</li>
142
+
<li>Include libraries</li>
143
+
<pre><codeclass="language-arduino">
144
+
#include <LiquidCrystal_I2C>
145
+
#include <DHT.h>
146
+
void setup(){
147
+
}
148
+
149
+
void loop(){
150
+
}
151
+
</code></pre>
152
+
</ol>
153
+
154
+
</div>
155
+
<div>
156
+
<h3>Connecting the Breadboard to the Arduino</h3>
157
+
<div>
158
+
Some breadboards <strong>do not</strong> have markings that visualize the orientation of the <strongstyle="color: #eb0a1e">power rail</strong>, which is typically marked by a <strongstyle="color: #eb0a1e">red line</strong> and a <strongstyle="color: #eb0a1e">plus (<iclass="fa"></i>) sign</strong>, and the <strong>ground rail</strong>, which is typically marked by either a blue or black line and a negative sign. In such case, simply assign the rails. Generally, the left rails are used as the power rails while right rails are used as ground rails. Make sure to keep it consistent to prevent accidental short circuits.
159
+
<ol>
160
+
<li>To be able to use both power rails as one, establish the connection between the <strong>two power rails</strong> of the breadboard by connecting one hole from each rail with a <strong>M/M jumper wire</strong>.
161
+
<div>Tip: Use a red jumper wire to indiicate positive power supply connection for consistency.</div>
162
+
<li>Connect one of the holes witin the power rail to the 5V pin of the Arduino Uno using a M/M jumper wire.</li>
163
+
<li>To be able to use both ground rails as one, connect</li>
0 commit comments