Difference between revisions of "Tutorial:Arduino"
From MobiNetS
Line 2: | Line 2: | ||
===Here we introduce Arduino=== | ===Here we introduce Arduino=== | ||
Arduino is a <u>convenient</u>,<u> flexible</u> and <u>easy-to-use</u> <u>open source</u> electronic prototyping platform that includes '''hardware''' (various models of arduino boards) and '''software''' (arduino IDE) | Arduino is a <u>convenient</u>,<u> flexible</u> and <u>easy-to-use</u> <u>open source</u> electronic prototyping platform that includes '''hardware''' (various models of arduino boards) and '''software''' (arduino IDE) | ||
===Hardware=== | ===Hardware=== | ||
* [[Image:Lora1.jpg|thumb]] | *[[Image:Lora1.jpg|thumb]] | ||
all kinds of Arduino: | all kinds of Arduino: | ||
insert a picture: | insert a picture: | ||
===Software=== | ===Software=== | ||
====Arduino IDE:==== | |||
Arduino 编程,只需要在特定的框架下编写代码(语法跟C语言类似)。 | |||
有两段代码结构: | |||
* setup() { | |||
} | |||
所有需要初始化的代码,都可以放在setup()函数体中(例如lora发射参数的设置),这里面的代码只会执行一次,接着就进入loop()循环里面,一直重复执行 | |||
* loop(){ | |||
} | |||
在这里面的代码一直会重复执行,除非Arduino板子断电。例如用传感器采集数据的代码,或者发送数据的代码都可以放在这里,以便周期性的发送数据 |
Revision as of 17:10, 25 September 2019
Introduction to Arduino
Here we introduce Arduino
Arduino is a convenient, flexible and easy-to-use open source electronic prototyping platform that includes hardware (various models of arduino boards) and software (arduino IDE)
Hardware
all kinds of Arduino:
insert a picture:
Software
Arduino IDE:
Arduino 编程,只需要在特定的框架下编写代码(语法跟C语言类似)。 有两段代码结构:
- setup() {
}
所有需要初始化的代码,都可以放在setup()函数体中(例如lora发射参数的设置),这里面的代码只会执行一次,接着就进入loop()循环里面,一直重复执行
- loop(){
}
在这里面的代码一直会重复执行,除非Arduino板子断电。例如用传感器采集数据的代码,或者发送数据的代码都可以放在这里,以便周期性的发送数据