arduino程序与c语言,Arduino平台与C语言程序设计

本课程介绍Arduino平台的基础知识,包括硬件板、集成开发环境(IDE)及兼容盾牌的使用。学员将学会编程、读取电路图、安装IDE,并掌握C语言变量、条件语句等概念。课程还涵盖调试技巧与串行通讯。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

课程概况

The Arduino is an open-source computer hardware/software platform for building digital devices and interactive objects that can sense and control the physical world around them. In this class you will learn how the Arduino platform works in terms of the physical board and libraries and the IDE (integrated development environment). You will also learn about shields, which are smaller boards that plug into the main Arduino board to perform other functions such as sensing light, heat, GPS tracking, or providing a user interface display. The course will also cover programming the Arduino using C code and accessing the pins on the board via the software to control external devices. Please note that this course does not include discussion forums.

Upon completing this course, you will be able to:

1. Outline the composition of the Arduino development board

2. Describe what it means to program the board’s firmware

3. Read board schematics

4. Install Arduino IDE

5. Describe what “shields” are and how they are used

6. Specify the role of libraries in the use of shields

7. Compile and run a program

8. Name C Variables and Types

9. Name common C operators

10. Use conditionals and loops

11. Explain functions, their definition and invocation

12. Explain the implications of global variables

13. Undertake the Arduino build process

14. Describe the role of the tools behind the IDE

15. Describe how to invoke functions in classes

16. Explain the structure of an Arduino sketch

17. Access the pins of the Arduino

18. Differentiate between digital and analog pin

19. Debug embedded software

20. Explain the importance of controllability and observability in the debugging process

21. Describe common debugging architectures for embedded systems

22. Explain how the UART Serial communication protocol works

23. Describe how the Arduino Serial library performs serial communication

课程大纲

周1

完成时间为 4 小时

Arduino Environment

This module provides an introduction to the Arduino environment which is composed of three things: the Arduino board, the Arduino IDE, and the Arduino-compatible shields together with their libraries. We first investigate the board, discussing all of its main components, inputs, and outputs. We discuss how each component is used and we examine the board schematic to see how they are connected. We then discuss the Arduino Integrated Development Environment (IDE) which is used primarily to write, compile, and upload code. We survey the interface of the IDE and discuss how to install and use it. We also examine the use of shields to extend the functionality of an Arduino-based system. We discuss how shield libraries provide a useful abstraction to facilitate programming.

9 个视频 (总计 51 分钟), 4 个阅读材料, 2 个测验

周2

完成时间为 4 小时

C Programming

This module covers the basics of the C programming language which will be used to write code for the Arduino. The course first covers basic syntax, variables, and types. Most of the basic C operators are presented. Conditional statements (if, switch) and loops (while, for) are described. The concept of functions is presented together with how to define and call functions. Creation and use of global variables is explained.

9 个视频 (总计 62 分钟), 3 个阅读材料, 2 个测验

周3

完成时间为 4 小时

Arduino Programs

This module describes the composition of an Arduino program, or sketch, and the process by which it is compiled and uploaded. The Arduino IDE is a user interface for the software tools which actually compile and upload the program. We outline the use of these tools in the build process. We describe the basic structure of a sketch, including the use of the setup() and loop() functions. The main interface of an Arduino is through its pins, so we describe how to access those pins from a sketch.

10 个视频 (总计 58 分钟), 3 个阅读材料, 2 个测验

周4

完成时间为 4 小时

Module 4

This module is an introduction on debugging embedded software on an Arduino. We discuss the basic debugging requirements: controllability and observability. The debugging environment available for an Arduino UNO is limited, so we describe how to use the UART communication protocol to gain controllability and observability. We present the use of the Serial library to communicate with the Arduino through the serial monitor.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值