Commit 00184bad authored by Nancy Wu's avatar Nancy Wu
Browse files

11

parent 7fd48972
Pipeline #198940 passed with stage
in 29 seconds
......@@ -84,6 +84,28 @@
<section id="three">
<div class="container">
<h4>Output Device LCD:</h4>
<img src="images/week11/I2C-LCD-with-Arduino-Wiring-Diagram-Schematic-Pinout.jpg" alt="" style="width: 590px;height:490px;"></a>
<p>This type of LCD is ideal for displaying text and numbers, hence the name ‘character LCD’. The I2C LCD comes with a small add-on circuit mounted on the back of the module. This module features a PCF8574 chip (for I2C communication) and a potentiometer to adjust the LED backlight. The advantage of an I2C LCD is that the wiring is very simple. You only need two data pins to control the LCD.</p>
<img src="images/week11/i2c-lcd.png" alt="" style="width: 590px;height:250px;"></a>
<p>If you look closely at the LCD, you can see the small rectangles that form the individual characters of the LCD. Each rectangle is made up of a grid of 5×8 pixels. Later in this tutorial</p>
<ul>
<li>The SDA pin is the 12C data and that is connected to Arduino UNO analog pin, I chose A4;</li>
<li>The SCL pin is the 12C clock , I chose A5 on Arduino UNO;</li>
</ul>
<h5>Installing the LiquidCrystal_12C Arduino Library.</h5>
<p>Download the <a href="https://github.com/johnrickman/LiquidCrystal_I2C"> LiquidCrystal_12C Arduino Library</a> and extract the zip file </p>
<p>The LiquidCrystal_I2C library works in combination with the Wire.h library which allows you to communicate with I2C devices. This library comes pre-installed with the Arduino IDE.</p>
<p>To install this library, go to Tools > Manage Libraries in the Arduino IDE. The Library Manager will open and update the list of installed libraries.</p>
<img src="images/week11/librarymanager.png" alt="" style="width: 590px;height:450px;"></a>
<p>Then search for ‘liquidcrystal_i2c’ and look for the library . Select the latest version and then click Instal</p>
<img src="images/week11/03.png" alt="" style="width: 590px;height:490px;"></a>
<img src="images/week11/04.png" alt="" style="width: 590px;height:490px;"></a>
<h5>Gino board with Led:</h5>
......@@ -93,7 +115,7 @@
<p>It's working well.</p>
<iframe width="560" height="315" src="https://www.youtube.com/embed/IIN_Tngj7IU" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<h4>Arduino Buton control Motor</h4>
<h4>Arduino UNO Button control Motor</h4>
<li>If button is pressed, rotate servo motor to 90 degree
</li>
<li>If button is pressed again, rotate servo motor back to 0 degree.</li>
......@@ -105,7 +127,7 @@
<p>Video:</p>
<iframe width="560" height="315" src="https://www.youtube.com/embed/0UfGsxCslYs" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<h5>Arduino Nano Radar project:</h5>
<li>I alaso use Arduino Nano to make a radar that has ultrasonic wave sensor as input ,buzzer and LCD as output.</li>
......@@ -113,8 +135,20 @@
<img src="images/week08/radar2.png" alt="" style="width: 590px;height:500px;"></a>
<img src="images/week08/radar3.png" alt="" style="width: 590px;height:500px;"></a>
<iframe width="560" height="315" src="https://www.youtube.com/embed/0slRd9el8iY" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<h5>Gino borad with LCD output</h5>
<li>I also try it with arduino Uno, use LEDS screen. To make it more like a finished project, I use plastic board to assemble all conponents together.</li>
<img src="images/week11/radar.jpeg" alt="" style="width: 390px;height:590px;"></a>
<iframe width="560" height="315" src="https://www.youtube.com/embed/IHn9gAqf_Ss" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
<p>The code is below:</p>
<img src="images/week11/05.jpeg" alt="" style="width: 590px;height:500px;"></a>
<img src="images/week11/06.jpeg" alt="" style="width: 590px;height:500px;"></a>
<p>Download the <a href="https://drive.google.com/drive/folders/1JWB_bhvoroNQcgtLR6AOPV2Z0QTwfvx2?usp=sharing"> Code for this week</a> </p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment