Arduino & LCD Display

This circuit and program is all in Tinkercad – no “real” Arduino needed.

Click here for an assignment description.  It’s pretty exciting. 

In this assignment you will create a circuit in Tinkercad that uses an:
Arduino
breadboard
220 ohm resistor (red, red, brown stripes)
an LCD display
wires as needed

Part 1:
Follow the screenshot
to build your circuit then scroll down to see the sample code.  Please color code your wires. Then enter the code shown in the screenshot below.  Test it.  Click here to learn about programming your Arduino LCD circuit.

Part 2:
After you have built the circuit and program do the following – this is the circuit that you will submit for the assignment:
1. modify your circuit to include an LED.
2. modify your program to make the LED turn on for a second and then turn OFF for a second.  Add a one second delay between the LED ON and the LED OFF.  Here’s a link to the basics of wiring and programming an LED. 
3. Program the display to display your name then “LED ON” or “LED OFF” when the LED is on or off.
HINT: look at the order of the code that makes the LED blink and the LCD display. Like this:
show your name
wait a half a second
LED on
LCD display “red on”
wait a half a second
LCD off
LCD display “red off”
wait a half a second

4. Please color code your wires.
HINT: use lcd.clear() to erase the text on the display before the next message appears.

You will turn in a Tinkercad link for your completed assignment.  Here’s how to generate the link: http://rodmilstead.com/pt/subtcad/

Resources:
lcd.setCursor (0,0) sets the cursor position. The first number is the column and the second number is the row.  So lcd,setCursor(2,0) would start in the first row, third column because the columns and rows start at 0. They correspond to this diagram: