Automatic door

Getting started: use infrared sensors and steering gear to realize the automatic opening and closing of electric doors. When a pedestrian is detected, the door opens automatically.

Advanced: None

High level: None

Experiment: None

1.Teaching objectives (knowledge preparation)

Know the infrared sensor and its working principle and parameter range.

The control of the steering gear can be controlled by programming, and the automatic opening and closing of the door can be realized by combining with the infrared sensor.

Be able to apply project equipment in combination with life application scenarios.

2.Teaching tasks

Infrared sensor and actuator are used to realize the automatic opening and closing of the electric door.

3.Preparation of teaching environment and equipment

Equipment List: Image (with label number 123456)

Equipment Serial Number Table

Serial numbernumberequipmentSpecificationsquantity
1 Obstacle Avoidance Detection 1
2 Servo 1
    1

Software: Smart Code programming software.

Hardware: SMART Code kit: Obstacle Avoidance Detection, Servo.

Other: Several building block devices.

Detailed List of Structural Components

Serial numbernumberequipmentSpecificationsquantity
1 3-hole beam 12
2 7-hole beam 4
3 13-hole beam 4
4 T-shaped beam 4
5 Black sales 36

Note: Materials required to fix a set of sensors: 6 3-hole beams, 2 7-hole beams, 2 13 hole beams, 2 T-shaped beams, and 18 black pins.

3.Project Practice Process

(Summary of Knowledge Points: 1. Components. 2. Program Modules. 3. Program Design)

1.Project video (in video format)

2.Project Steps

1.Fix the steering gear and infrared sensor according to the list of items.

2.Use the steering gear to build the opening and closing door.

3.Adjust the detection position of the infrared sensor.

4.Use smart code programming software to complete the programming design.

First, create the main program. The example code is as follows:

Then, cycle to judge the two states of the infrared sensor. The example code is as follows:

Then, the infrared sensor does not detect pedestrians, and the steering gear control door is closed. When pedestrians are detected, the steering gear control door is open. The example code is as follows:

Finally, complete all the codes. The example code is as follows:

5.Optimization and improvement plan.

6.Interesting thinking:

3.Reflection and discussion:

Experimental results

Data records: Table 1 and Table 2

Experimental conclusion:

5.Extension and Expansion

Reflection and exploration:

Question 1:

Question 2:

SWR001
Author: SWR001

you have missed

Last News

Contact Us

025-83202845

MORE

Single Up

Login