教程

This section provides step-by-step tutorials to help you learn the Nexus platform through practical examples.

Tutorial Contents

Learning Path

If you're new to Nexus, follow these tutorials in order:

Beginner Tutorials (Weeks 1-2)

  1. 您的第一个 Nexus 应用程序 - Build your first Nexus application from scratch

  2. GPIO Control 教程 - Learn GPIO control and LED operations

  3. UART Communication 教程 - Add serial communication to your application

  4. 使用 OSAL 的多任务 - Create multi-task applications using OSAL

Intermediate Tutorials (Weeks 3-4)

  1. 中断处理教程 - Master interrupt handling and event-driven programming

  2. 定时器和 PWM 教程 - Timer and PWM control (LED dimming, servos, motors)

  3. SPI 通信教程 - SPI communication and peripheral control

Advanced Tutorials (Weeks 5-6)

  1. I2C Sensor Integration - Read sensor data using I2C protocol

  2. ADC Sampling and Signal Processing - Analog signal acquisition and processing

  3. DMA Transfers - Efficient data transfer techniques

  4. Multi-task Synchronization - Advanced OSAL synchronization mechanisms

  5. State Machine Design - Build robust state machine applications

Project Tutorials (Weeks 7-8)

  1. Weather Station Project - Complete system integrating multiple sensors

  2. Data Logger - Data acquisition and storage system

  3. Motor Control System - Closed-loop motor control

  4. IoT Device - Smart device connected to cloud platforms

Each tutorial builds on concepts from previous ones, so we recommend following them in order.

前置条件

Before starting these tutorials, ensure you have:

  • Completed the Environment Setup guide

  • A supported development board (STM32F4 Discovery recommended)

  • Basic knowledge of C programming

  • Familiarity with embedded systems concepts

Learning Stages

Stage 1: Fundamentals (1-2 weeks)

  • Complete beginner tutorials 1-4

  • Understand HAL and OSAL basic concepts

  • Able to create simple applications

Stage 2: Intermediate Skills (2-3 weeks)

  • Complete intermediate tutorials

  • Master interrupt and event-driven programming

  • Understand peripheral communication protocols

Stage 3: Advanced Applications (3-4 weeks)

  • Study advanced tutorials

  • Implement complex multi-task systems

  • Optimize performance and power consumption

Stage 4: Real Projects (4+ weeks)

  • Complete project tutorials

  • Build complete embedded systems

  • Apply best practices

Additional Resources

Example Applications

See 示例 Applications for complete example applications, including:

  • blinky - Basic GPIO control

  • config_demo - Configuration management demonstration

  • freertos_demo - Multi-task OSAL demonstration

  • shell_demo - Command-line interface demonstration

Getting Help

If you encounter issues:

  1. Check Frequently Asked Questions for common questions

  2. Review Debugging Guide debugging guide

  3. Consult platform-specific documentation

  4. Examine example code

  5. Ask on GitHub Discussions

Next Steps

After completing tutorials:

  • Explore User Guide for in-depth documentation

  • Review 平台 Guides for platform-specific features

  • Check API 参考 for complete API reference

  • Join the community and share your projects!