انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents
Robo Maker: home
0. Lab tour1
1. The start: the Arduino6
2. Wiring and the traffic light4
3. Inputs: the button4
4. Sound and movement5
5. Sensors and numbers5
6. Distance, the screen and colours5
7. Motors and the car4
8. The project: the city's smart gate3
9. From blocks to C++ code5
10. Sensors and screens in code5
11. Smart systems5
12. Bluetooth: control from the phone1

The LCD screen

Section 6: Distance, the screen and coloursLesson 6.2 · ⏱ 8 min

The LCD screen has two lines of 16 characters each. We write on it by choosing the column and the line (counting starts from 0).

🧩 The distance on the screen
Blocks: loop — repeats forever

📌 Another example: two lines on the screen

The first word on line 0, and the second on line 1.

🧩 Two lines on the screen
Blocks: setup — runs once
The screen writes
The screen writes
✍️ Practise
Write your name on the screen.
✍️ Practise here in the lessonor open the lab in a new page ↗
✍️ Practise
The distance on the screen.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Write your name on the screen.

👀 Show the solution
🧩 Solution
Blocks: setup — runs once
In the lab
In the lab

Result: your name on the screen.

Medium

Write the distance on the screen, and update it every half second.

👀 Show the solution
🧩 Solution
Blocks: loop — repeats forever
In the lab
In the lab

Result: the number changes with the distance.

Hard

Close (below 20): write STOP, otherwise GO.

👀 Show the solution
🧩 Solution
Blocks: loop — repeats forever
In the lab
In the lab

Result: GO, then STOP.

Finished the lesson? Mark it so your progress counts.