Overall introduction of HaaS EDU scenario-based applications

HaaS EDU K1 is an embedded educational development board launched by the HaaS family for educational scenarios and integrates many sensors. It is the best carrier for learning IoT-related technologies.

 

Unlike traditional development boards, in addition to the powerful 4-core (dual-core 300Mhz M33 + dual-core 1GHz A7) main chip, HaaS EDU K1 also comes with 2.4G/5G dual-band Wi-Fi, dual-mode Bluetooth (classic Bluetooth/BLE), It also comes with a wealth of sensors and small screens, so you can develop and learn about IoT devices without external devices.

At the same time, in order to help you get started with the application development of IoT-related scenarios faster, the HaaS EDU R&D team has carefully created 10 scenarios for you to build applications, each of which is a different knowledge point, to help you quickly get started. Learning of IoT development technology.

HaaS EDU scenario-based application learning-home page information screen

HaaS EDU Scenario Application Learning-Thermometer and Hygrometer

HaaS EDU scenario-based application learning-gyroscope ball

HaaS EDU scenario-based applied learning-electronic compass

HaaS EDU scenario-based application learning-light information screen

HaaS EDU Scenario-based Applied Learning-Aircraft War

 

1. HaaS EDU K1 example operation

 

Before starting the code writing, it is a good idea to learn the example operations in the official firmware. You can experience the case first.

 

First, let's look at the menu operation of HaaS EDU K1.

 

As shown in the figure above, HaaS EDU K1 provides:

  • 1 1.3 inch information display
  • 5 buttons, 4 of which are programmable buttons
  • 4 LEDs, of which 3 programmable LEDs

 

To complete the system status indication and the switching of scene cases, the specific operations are:

  • K1: System menu options move to the left. In the first level menu, you can switch the scene case to the previous one
  • K2: Move up and down in the system menu. Can be switched in scenarios with multiple options
  • K3: The options in the system menu move to the right. In the first level menu, you can switch the scene case to the next
  • K4: Confirm key in the system menu. Enter the currently displayed scene case

 

So how to exit the current scene case to the upper menu? You can return to the previous menu by pressing "K1+K2" at the same time.

 

2. HaaS EDU K1 scenario-based case introduction

Based on the HaaS EDU K1 hardware body, without any external peripherals, the official provides 10 well-built scenario-based cases, each of which is a different knowledge point. Let’s first give an overview of the 10 cases:

The 10 scenarios include common IoT sensors, corresponding operation cases, and open source code. Education is entertaining, and you can learn knowledge points while playing. Scene cases include:

  • Home system information screen
  • thermometer
  • Gyro Ball
  • Disagreement machine
  • Electronic compass
  • Light information screen
  • Atmospheric Altimeter
  • Retro music box
  • Greedy snake
  • Aircraft war

 

There is a detailed process of creating each case in the follow-up. At the same time, the case is still being expanded.

 

2.1. Home page system information screen

This is the default screen after the system starts, and it contains many knowledge points:

  • OLED display driver and display
  • System version acquisition
  • System networking and IP address acquisition
  • Network time acquisition
  • Wi-Fi status acquisition
  • Bluetooth connection
  • Battery power acquisition

Through the study of this case, you can fully learn how the AliOS Things operating system connects to Wi-Fi, SNTP obtains network time, how the battery power is counted, and OLED display operations. By completing this case, developers will have a more comprehensive understanding of AliOS Things operating system.

 

2.2 Thermometer

 

In the Internet of Things scenario, temperature and humidity monitoring is a very common scenario, whether it is in smart homes, smart cities, or smart agriculture, smart industrial scenarios, there are a lot of adoption. This case contains the following main knowledge points:

  • I2C communication principle
  • SI7006 Digital Temperature and Humidity Sensor
  • OLED drawing

Through the study of this case, I can fully learn the operations of I2C communication in AliOS Things, sensor data reading OLED drawing display and so on. At the same time, it can also be extended to the case of Linkkit remote temperature and humidity monitoring. You can create your own home temperature and humidity monitor, vegetable greenhouse, flower breeding and other temperature and humidity remote monitors, and apply the technology to the actual scenes around you.

 

2.3, gyroscope ball

 

Speaking of gyroscopes, you may feel unfamiliar, but when it comes to how many steps you take every day, monitoring of exercise patterns, and somatosensory games, you may be familiar. Yes, their internal technology uses gyroscope balls. As a standard configuration of smart phones, a gyroscope sensor is also provided on HaaS EDU K1. This case includes the following main knowledge points:

  • Working principle of gyroscope
  • Drive and use of MPU-6050
  • The basic algorithm realizes the ball swings easily

Through the study of this case, you can fully learn the working principle of the gyroscope, read the gyroscope data in AliOS Things, and adjust the basic algorithm. At the same time, you can also extend more algorithms based on the gyroscope data, for example, use it to develop various motion monitoring algorithms, create your own motion monitor, etc., and apply the technology to the actual scenes around you. .

 

 

2.4, the dispute mechanism

 

Remember the "Shake" that swept the country? Draw a red envelope, draw a lottery ticket. So, how does Shake achieve it? Under what circumstances can it be determined that it is "shaking"? Horizontally, vertically, or fast or slow? Don't worry, the gyroscope and accelerometer provided in HaaS EDU K1 can fully demonstrate how this algorithm is built. This case includes the following main knowledge points:

  • Principle and use of three-axis acceleration sensor
  • Random number generation method
  • Jitter filtering algorithm

Through the study of this case, you can fully learn the principle and use of the three-axis acceleration sensor, the data reading of the acceleration sensor in AliOS Things, algorithm development and other operations. At the same time, you can also create more interesting scenes based on the acceleration sensor and gyroscope, for example, use it to develop somatosensory gamepads, etc., and apply the technology to the actual scenes around you.

 

2.5, electronic compass

 

As one of the ancient four great inventions, the compass appears as an electronic compass in modern smart phones. Why can the electronic compass find North? How does it work? HaaS EDU K1 comes with a geomagnetic sensor, you can create your own electronic compass by hand. This case includes the following main knowledge points:

  • The working principle of the geomagnetic sensor
  • The principle and use of QMC5883L three-axis AMR magnetic sensor
  • OLED drawing and dynamic refresh

Through the study of this case, you can fully learn the principle and use of the geomagnetic sensor, data reading of the geomagnetic sensor in AliOS Things, algorithm development, OLED dynamic drawing refresh and other operations. In the actual outdoor scene, you can also fully understand the working principle of the electronic compass, and you can also use it for path finding and map navigation development.

 

2.6, light information screen

 

It's another function that everyone uses every day. Will everyone's phone screen automatically dim under strong light and dim under dim light? How is this achieved? How is the surrounding light intensity monitored and how is the value calculated? HaaS EDU K1 has its own light sensor, which can read and display light intensity completely. At the same time, it also comes with a proximity sensor. When an object such as a finger approaches it, not only the light intensity will change, but it can also read the distance between the object and it. This case includes the following main knowledge points:

  • The working principle and use of AP3216C light sensor
  • Proximity sensor principle and use
  • Light intensity and close to simple algorithm

Through the study of this case, we can fully learn the principle and use of illumination and proximity sensor, data reading of illumination sensor in AliOS Things, algorithm development, simple approach distance algorithm and other operations. At the same time, if you need to judge the light intensity in your product, such as the sun rises and the curtain opens automatically, you can apply the sensor and algorithm described in this case.

 

2.7, atmospheric pressure altitude meter

 

As a classmate who likes outdoor sports, especially mountain climbing, the standing sports watch can provide information about atmospheric pressure and altitude. When the atmospheric pressure changes drastically, it usually represents the arrival of strong convective weather, such as heavy rains in summer, and everyone will feel dull before the arrival. So how to accurately measure atmospheric pressure and altitude? HaaS EDU K1 includes a digital air pressure sensor. This case includes the following main knowledge points:

  • SPL06 atmospheric pressure sensor working principle and use
  • I2C communication combat
  • Simple algorithm for air pressure and altitude
  • OLED drawing

Through the study of this case, you can fully learn the principle and use of the atmospheric pressure sensor, the data reading of the atmospheric pressure sensor in AliOS Things, the development of altitude algorithm, I2C operation and OLED drawing, etc. Based on the technology in this case, you can create a measurement of the altitude of your location. In many outdoor scenes and products, you can create your own equipment.

 

2.8 Retro music box

 

Music box is not the less 80,90 childhood memories, favorite sent a card to the students, turn on when you can play a simple melody, touched many, many people. As a technical guy, I also want to create a gift for my favorite friend. What techniques should I learn? HaaS EDU K1 includes a buzzer, which can completely create a music box. This case includes the following main knowledge points:

  • The working principle and use of PWM and buzzer
  • Music score coding
  • Player development

Through the study of this case, you can fully learn the principle and use of the buzzer, the coding and development of the music score, and at the same time, you can also develop a unique ring tone for your device. You can create your own creative equipment.

 

2.9 Snakes

 

Tired of development, it's fun to pass the time. The classic snake game is here. As a standard game in the era of feature phones, it carries the memories of many people. HaaS EDU K1 is designed so beautifully, and it also provides a complete development process of the snake game. This case includes the following main knowledge points:

  • Key event
  • Mini game design and development
  • Scoring system

Through the study of this case, you can fully learn the development principle of the mini game, the actual game mode design and development, and at the same time, you can also play the mini game you created by yourself after the development, which has a unique charm.

 

2.10, aircraft war

 

As a more intense classic game, the plane war is also a memory of many people. It’s more fun to play in portrait mode, so how do I develop one by myself? Naturally, the 4 programmable buttons of HaaS EDU K1 are symmetrically designed, which can be developed and played in portrait mode. Does it unlock a new gameplay? This case includes the following main knowledge points:

  • Vertical screen key event
  • OLED graphics and mini game design and development
  • Scoring system

Through the study of this case, you can fully learn the development principles of the mini game, the actual game mode design and development, and the adaptation of the horizontal and vertical screen buttons. At the same time, you can also play the mini games you created in addition to the development. Don't have a charm.

 

3. Developer technical support

If you need more technical support, you can join the DingTalk developer group or follow the WeChat public account

For more technology and solution introduction, please visit the Aliyun AIoT homepage https://iot.aliyun.com/

Guess you like

Origin blog.csdn.net/HaaSTech/article/details/113989581