Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

Editor’s NoteThe artificial intelligence course is gradually being implemented in schools and institutions across the country, but many teachers are still in the stage of understanding and learning. To provide some references for teachers, STEAM Online Star Academy has collaborated with Maker Childhood to launch a series of illustrated explanations for the teaching design of artificial intelligence courses, accompanied by learning videos, allowing teachers to quickly understand and master the relevant course content.

How to teach Arduino Lesson 1 in the artificial intelligence course design?

Lesson 2 – Blinking LED
1
Student Situation Analysis

Through the learning of the last lesson, students have learned aboutArduino, acquired basic knowledge of circuits, and learned to use basic electronic components to build circuits and light upLEDlights. In this lesson, we will begin to teach programming, using programs to control the blinking ofLEDlights.

2
Teaching Objectives

1.Understand the control principle of blinkingLEDlights

2.Learn to write a program to blinkLEDlights

3.Application of blinkingLEDlights

3
Teaching Key Difficulties

Teaching Focus:

Control principle of blinkingLEDlights, program for blinkingLEDlights

Teaching Difficulty:

Application of blinkingLEDlights

4
Teaching Process

1.Work Display, Introduce New Lesson【10 Minutes】

Teachers display multiple LED light works, such as: flowing lights, shaking sticks, light cubes
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

Summary: These works look interesting and advanced. But if we only look at a single LED light in the work, it is merely in two states: on and off. It blinks intermittently, ultimately creating a blinking effect.

Relate to life: Ask students where blinking LED lights are used in life?

Neon lights in the city, advertising boards in shopping malls, birthday gifts

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

Introducing the theme of this lesson: blinkingLEDlights

2.Teaching New Lesson

①Explanation of the principle of blinkingLED lights【5~8 Minutes】

Knowledge Review

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

Circuit lighting up LED lights

Guided Thinking:The reason the LED lights are lit is because of the current flowing through. According to the knowledge from the last lesson, electricity flows out from the positive terminal of the Arduino board at the 5V port. If the 5V port is powered, the LED light is on; if the 5V port is powered off, the LED light is off.

Manual Testing:Plugging and unplugging the Dupont wire at the 5V port while powered, the phenomenon is that the LED light blinks.

ExplanationGenerally, when doing circuit experiments, it is not allowed to plug and unplug components while powered. This step is included here to help students understand the principle of blinking LED lights more deeply.

Conclusion:The essence of the blinking LED light is caused by the on and off of the electricity.

②Explanation of programming control【2 Minutes】

What is programming?

Programming is talking to a computer (Arduino can be regarded as a small computer) to achieve the goal of making the computer do things for us.

The advantage of programming control: it allows machines to work automatically, thereby replacing manual labor.

Programming forArduino is talking to Arduino, allowing Arduino to help us do things.

③Introduction to Arduino programming ports【2 Minutes】

Signal Port:Ports that can be controlled to turn on and off via programming. For ease of understanding, they can be referred to as programmable control ports.

Circuit Port:Ports that cannot be controlled to turn on and off via programming.

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

④Wiring of blinking LED lights【2 Minutes】

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Wiring of blinking LED lights

Connect the long leg of the LED light to the programmable controlportnumber 8

Recalling the principle of blinkingLEDlights, the blinking of LED lights is caused by the on and off of electricity, thereforethe logic of programming to control LEDlights blinking is:

Port number 8 is powered for a period of time

Port number 8 is powered off for a period of time

⑤Introduction to Mixly Software【3 Minutes】

Mixly is a software development environment that integrates graphical programming and code programming for hardware programming, developed by the Maker Education Laboratory of Beijing Normal University.

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Download link: http://mixly.org/(Official Website)
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Introduction to software functionalities

⑥Program Teaching【5 Minutes】

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

Program flow

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

Reference Program

Key Explanation

a.The main program has a built-in loop function

b.The role of the delay module in the program

⑦Observe Experimental Effects:

Effect of blinking LED light experiment

⑧Hands-on Practice【15 Minutes】

After completing the wiring and program explanation, let students independently complete all steps. This process requires giving students ample time and should not allow students to copy the program.

During the practice: Problem Handling

Why is the light not blinking?Reason: Both wiring and program could be the issue

Check thoughts:

a.Is the program downloaded correctly?

b.Is the program correct?

c.Are the ports configured in the program consistent with the wiring ports?

d.Is the hardware circuit connected?

e.Is the component itself damaged?

After completing the practice: GuideThinking

a.What happens if the first delay module is deleted?

b.What happens if the first delay module is deleted?

c.What happens if both delay modules are deleted?

The above three questions can help students understand the loop of the main program and understand the role of the delay module in the program. During the explanation, the phenomenon of visual persistence can be explained as well.

3.Extension and Improvement【10 Minutes】

Create an S-O-S distress signal light

4.Class Summary【3 Minutes】

①Understandthe principle of blinkingLEDlights

②Learn to writethe program for blinkingLEDlights

③Application of blinkingLEDlights:SOSdistress signal light

5.Challenge Task【15 Minutes】

Create a red, yellow, and green traffic light

Long press the QR code to view the first season of the course

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

Long press the QR code to view the second season of the course

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

Learning Suggestions:

1.This course is a practical course, requiring the purchase of supporting learning kits. Practical hands-on experience is essential for gaining knowledge.Long press the QR code to view the learning kit:

Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

2.After each lesson, actively complete the after-class exercises. The after-class exercises serve as a reinforcement and extension of the course content. If you encounter problems, you can consult Teacher Peanut onlineWeChat(18900744765).

3.After completing each lesson, promptly share your creations with those around you. Sharing with others not only reinforces knowledge but also brings a sense of achievement.

(Statement: Except for original articles from STEAM Online Star Academy, articles shared and reprinted by STEAM Online Star Academy are intended to promote the development of STEAM education in China, for learning and communication purposes only, non-commercial use, copyright belongs to the original author, and will be noted. If the original author of the article or photo has any objections, please contact the backend for quick processing or deletion, thank you for your support.)
STEAM Online Teacher Exchange Group
1000+STEAM Education Teachers
Long press the QR code to contact, note “Teacher”
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment
Teaching Design of Artificial Intelligence Course | Arduino Lesson 2: A 90-Minute LED Blinking Experiment

Leave a Comment

Your email address will not be published. Required fields are marked *