Students will
- Distinguish LCD power, contrast, control, and data connections
- Initialize and update a 16 × 2 display with the LiquidCrystal library
- Present a changing measurement without leaving stale characters
Arduino Uno R3
Wire the kit’s 16 × 2 character LCD in 4-bit mode and display a changing analog value with a clear label.
Reviewed connection map
Read before uploading
#include <LiquidCrystal.h>
const int SENSOR_PIN = A0;
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup() {
lcd.begin(16, 2);
lcd.print("Sensor value");
}
void loop() {
int reading = analogRead(SENSOR_PIN);
lcd.setCursor(0, 1);
lcd.print(reading);
lcd.print(" ");
delay(100);
}Optional engineering record
Choose the prompts that help students explain predictions, evidence, debugging, and transfer. Saving creates a new entry in this browser’s Rudi notebook.
Use these prompts if they help students capture evidence, decisions, or questions. You do not need to complete every prompt or create an entry at every step.
Adjust contrast slowly, then verify VO, RS, E, DB4-DB7, RW-to-GND, and the sketch's pin order.
Check LCD orientation, power, ground, 4-bit data wiring, and the LiquidCrystal constructor before changing code.
Print spaces after the value or overwrite the complete field before the next update.
2026 middle school standards
These are evidence-based crosswalk candidates for curriculum review—not a claim of official alignment.
Students trace variables, selection, or iteration in the supplied sketch and connect code to physical behavior.
Lesson evidence: Explanation of variables, iteration, and display update statementsStudents isolate variables, compare observed behavior with the intended purpose, and document a revision.
Lesson evidence: Display readability and stale-character testcomponent-boards · power-and-signals · sketch-foundations
Starting point, not verified curriculum. Review the actual hardware, circuit, code, power requirements, and classroom conditions.
After teaching this lesson