Event Time
14 sessions, each lasting approximately 1 hour, totaling approximately 14 hours of study time.
Event Location
On-campus activities
Target Audience
Students aged 10-18
Course Introduction
2880 X product integrates DIY assembly with modern smart sensing technology, supports solar/USB charging, and allows children to learn programming and hardware control knowledge while building. The log cabin integrates multiple environmental sensing and interactive functions:
- Light-sensitive intelligent adjustment: Automatically senses changes in ambient light through a photosensor.
- Automatic rain detection: Water droplet sensors detect rainfall in real time and trigger corresponding alerts.
- Temperature and humidity monitoring: Real-time collection of ambient temperature and humidity data.
- Human infrared sensing: Detects if someone is approaching, enhancing interactivity and security.
- Door and window servo control: Automatic opening and closing of doors and windows can be controlled via programming.
- Sound alert system: Built-in passive buzzer, supports alarm and sound interaction.
- Information visualization: Real-time display of environmental data via LCD screen.
Students can use graphical programming tools (such as MakeCode) to design and program the cabin's functions, learning sensor applications, logical judgment, and automation control. The course is conducted in a project-based format, with students working in groups to complete the construction, programming, and application of the cabin in various scenarios. The final presentation and functional challenge cultivates students' computational thinking, hardware integration skills, and teamwork spirit.
In the later stages of the project, students can further utilize data analysis tools to visualize and analyze the environmental data collected from the cabin, and optimize the functional design of the cabin based on the data results, thus realizing a complete science and technology innovation experience from idea to implementation.
Learning Platform
Arduino / Python
Teaching Materials
- Laptop / Desktop Computer
- 2880 X Product Kit
Course Outline
Basic Programming
1. LED Flashing
The LED lights are controlled to operate in a loop pattern of "flashing twice quickly → staying on for a long time → staying off for a long time".
2. Breathing Light
The yellow LED light gradually dims and then gradually brightens, alternating in a circular motion, like human breathing, exhaling and inhaling.
3. RGB Lights
This creates a vivid flowing light effect. The four LED beads will light up in sequence.
4. Passive Buzzer Playing Music (Happy Birthday)
The classic song "Happy Birthday" is played automatically via a buzzer.
5. Solar Energy
When you place a solar panel in sunlight, the yellow LED light will illuminate, indicating that the panel is charging. When you place the solar panel in the dark, the yellow LED light will not illuminate, indicating that the solar voltage is too low to charge.
6. Buttons Control RGB Lighting
Press the button to turn on the RGB lights, and release the button to turn them off. The button control features anti-shake functionality to ensure stable operation.
7. Light Control Lamp
When the LDR board is placed in a bright location, the yellow LED light will turn off. When the LDR board is placed in a dark location, the yellow LED light will turn on. By continuously monitoring the lighting conditions, fully automated lighting control is achieved.
8. Spinning Motor
The motor will operate automatically in a preset cycle: first, it will rotate counterclockwise for 2 seconds, then stop completely for 1 second, then rotate clockwise for 2 seconds, and stop again for 1 second. This complete cycle will be repeated continuously, forming a regular movement pattern.
9. Control Servo
The servo will rotate smoothly back and forth within an optimized angle range (30-150 degrees). After completing a full round trip, the servo will pause at random time intervals, creating an irregular, non-mechanical motion pattern.
10. Waterdrop Alert
When water is dripped onto the water droplet sensor, the yellow light illuminates as the humidity on the sensor surface increases.
11. Infrared Human Body Sensor
When there is movement, the yellow light is on; when there is no movement, the yellow light flashes on and off intermittently.
12. Air Quality Alert
Blow air into the sensor with your mouth or use steam generated by hot water; the yellow light will illuminate. Stop blowing air, and the yellow light will turn off in about 30 seconds.
13. LCD1602 Display
The LCD1602 display shows "Hello, world!"
14. Measure and Display Temperature and Humidity
Temperature and humidity are measured every 5 seconds and displayed on the LCD1602.
Extended Analysis
Bluetooth Wireless Control
1. Supports Bluetooth connection to mobile phones/tablets, enabling remote control of door and window opening and closing, and adjustment of buzzer alert modes.
2. Enables real-time viewing and recording of sensor data (temperature, humidity, light intensity, etc.) on mobile devices.
Intelligent Scene Mode
1. Multiple preset scenarios (such as home mode, sleep mode, security mode)
2. Automatically adjust door and window opening and closing strategies, sensor sensitivity, and alarm rules according to different modes.
Voice Prompts and Interactions
1. Integrated voice synthesis module, supporting voice alerts for events such as excessive temperature and humidity, and rainfall detection.
2. Can be combined with infrared sensors to realize human-computer interaction functions such as welcome voice or security warnings.
IoT Remote Monitoring
1. Added Wi-Fi/4G module to support uploading sensor data to the cloud platform.
2. Enable remote monitoring of the cabin's status and receipt of abnormal alarms via web browser or mobile app.