0 Introduction
Hello everyone! My name is LeChuang IoT, and I mainly work in the fields of industrial automation and the Internet of Things (IoT). I am familiar with the industrial automation sector and have developed IoT-related products. My initial goal was to work on industrial IoT, but the system is too vast, so I will learn about it independently later. For now, I will start with smaller systems, such as building a complete smart home system, covering everything from hardware to software. Let’s begin with how this smart home system is constructed based on IoT. Here you can start from 0 and reach 1 transformation, just by learning the IoT architecture with me.
Recapping the last section “Introduction to Actuators in IoT Architecture”, we discussed the introduction of actuators, introduced several common IoT actuators, and finally shared an application example of actuators (for instance, controlling an LED light). In this section, we will talk about the middleware Arduino in the hardware layer of the perception layer. The perception layer is the most fundamental part of IoT, akin to human senses that perceive the world.
LeChuang IoT Learning Path
1 What is Arduino?
Arduino is an open-source electronics platform that combines hardware and software, suitable for interactive projects. Arduino senses the environment by receiving input from many sensors and affects its surroundings by controlling lights, motors, and other actuators. You can tell Arduino what to do by writing code using the Arduino IDE.
Arduino
Learning Website
Official Arduino Website
https://www.arduino.cc/
Arduino Chinese Community
https://www.arduino.cn/
2 Arduino Create
Arduino Create is an integrated online platform that allows makers and professional developers to write code, configure development boards, and share projects. It makes the process of turning an idea into a completed IoT project much more convenient than before. With Arduino Create, you can use the online IDE to connect multiple devices to the Arduino IoT Cloud, browse project collections on the Arduino Project Hub, and remotely connect to your boards using the Arduino Device Manager. You can also share your projects and receive feedback from others.
Arduino Create
1) Arduino Web Editor
It is a simple plugin that works on Windows, Mac, and Linux. After installation, you can write code through a web browser (recommended Chrome), save the code to the cloud, and upload the code to any Arduino board.
2) Arduino Project Hub
It is a tutorial platform as well as a platform for learning and sharing.
3) Arduino IoT Cloud
It is an IoT application platform currently in public beta. Arduino IoT Cloud allows you to quickly, easily, and securely create connected objects. You can connect multiple devices to each other and allow them to exchange real-time data. You can also monitor them from anywhere using a simple user interface. It supports many third-party devices that you can add to your projects and control via a web dashboard. With the Arduino API, you can use your own app to control things and devices in the Arduino IoT Cloud. Notably, ESP8266 is also supported.
4) Arduino Device Manager
The Arduino Device Manager allows remote connections to cloud-enabled boards and manages the boards and devices added to Arduino Create.
3 Types of Arduino Boards
boards
shields
retired boards
retired shields
4 Arduino IDE
The desktop version of Arduino IDE compared to the online Arduino IDE.
Download Arduino IDE
https://www.arduino.cc/en/Main/Software
Arduino Create Plugin
https://create.arduino.cc/getting-started/plugin/welcome
Download and Install
Install arduino-create-agent, just go ahead
The online Arduino IDE is similar to the desktop version. The difference is that it stores code in the cloud. It allows you to code from any compatible internet-connected device. The Arduino web editor benefits from the cloud advantages. After uploading code or libraries, you can access it from anywhere. The Arduino server already has 700 of the most popular libraries, so they do not need to be reloaded.
Arduino Web Editor
https://create.arduino.cc/editor
Arduino Web Editor
//Blink Source Code:
// the setup function runs once when you press reset or power the board
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Blink
5 What Can Arduino Do?
What is Arduino and what can it do?
http://m.elecfans.com/article/576697.html
10 Arduino projects that anyone can do!
http://www.elecfans.com/d/680627.html
6 Conclusion
These are all verified through practice. I originally planned to wait until I opened a column to post this, but since it doesn’t make money now, let’s make friends! Join me in starting with IoT!