ุงู†ุชู‚ู„ ู„ู„ู…ุญุชูˆู‰
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

๐Ÿ› ๏ธ Section project: two LEDs taking turns

Section 1: The start: the ArduinoLesson 1.5 ยท โฑ 10 min
๐ŸŽฏ Project goal
Red on 13 and green on 12. The red lights alone, then the green alone, and so on. They never light together.
๐Ÿงฉ A possible solution
Blocks: loop โ€” repeats forever

๐Ÿ“Œ Another example: fast turns

Red, then green, 300 milliseconds each.

๐Ÿงฉ Fast turns
Blocks: loop โ€” repeats forever
Fast turns
Fast turns
โœ๏ธ Practise
Build the project.
โœ๏ธ Practise here in the lessonor open the lab in a new page โ†—
โœ๏ธ Practise
Extra challenge: add a third LED on 11, and make the three light up one after another.
โœ๏ธ Practise here in the lessonor open the lab in a new page โ†—

๐ŸŽฏ Challenge yourself

Easy

They blink together: on together and off together.

๐Ÿ‘€ Show the solution
๐Ÿงฉ Solution
Blocks: loop โ€” repeats forever
In the lab
In the lab

Result: they blink together.

Medium

The red blinks twice, then the green once.

๐Ÿ‘€ Show the solution
๐Ÿงฉ Solution
Blocks: loop โ€” repeats forever
In the lab
In the lab

Result: red, red, green, and it repeats.

Hard

A police light: the red blinks 3 times quickly, then the green 3 times.

๐Ÿ‘€ Show the solution
๐Ÿงฉ Solution
Blocks: loop โ€” repeats forever
In the lab
In the lab

Result: fast flashes taking turns.

Finished the lesson? Mark it so your progress counts.