Introduction: Connect Raspberry Pi to QNAP NAS Via QIoT Suite Lite
In this tutorial, you will learn the basics of working with Raspberry Pi (that runs the Debian-based Raspbian). You will then learn how to connect your devices to QNAP NAS using QIoT Suite Lite.
Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.
Step 1: Connect Raspberry Pi to QNAP NAS
Please configure your Raspberry Pi device with an operating system, set up your development environment, and deploy an application to Raspberry Pi.
1.1 What will you need
- Raspberry Pi
- SD card (an 8GB class 4 SD card is recommended) with NOOBS installed.
- HDMI display.
- USB keyboard and mouse.
- Power Supply: The Pi requires a USB micro power supply with at least 2A at 5V for the Model 3B, or 700mA at 5V for earlier models.
1.2 Set up Raspbian
- Insert the SD card containing extracted NOOBS files into the Raspberry Pi
- Connect the keyboard, mouse, and HDMI display to the Raspberry Pi. Plug in the power adapter. The Raspberry Pi does not have a power switch, and will automatically power on once the adapter is connected.
- A menu will ask what OS to install and what language and keyboard layout to use. Check the box next to Raspbian and click "Install".
Step 2: The Installation Process May Take Up to 20 Minutes, and Will Restart to the Raspbian Desktop When Complete.
Step 3: Configure Wi-Fi – in the Desktop Environment Locate the Wireless Network Icon in the Top-right Menu and Click the Icon to View a List of Available Wi-Fi Networks.
Step 4: To Connect to Your Raspberry Pi From Another Device, You Must Know the Pi’s IP Address. Using the Terminal (Ctrl + Alt + T to Open Terminal), Enter Hostname -I.
- More Raspberry Pi setup guides can be found at: https://www.raspberrypi.org/learning/software-gui...
Step 5: Install Nodejs and Required Libraries
- Install node.js v6
- Please visit QNAP github for QIoT Suite Lite sample code
Step 6: Create Your Device in QIoT Suite Lite
Install QIoT Suite Lite
- QIoT Suite Lite can be installed from the App Center.
Step 7: Launch and Log in QIoT Suite Lite. the Default Username and Password Is "admin".
Step 8: Create a New IoT Application
If this is your first time to use QIoT Suite Lite, QIoT Suite Lite provides a wizard to help you quick setup a IoT application.
- Click “Quick Setup Wizard” to start quick setup wizard. After you read the QIoT Suite Lite introduction in pop window, click Next button.
Step 9: Create a New IoT Application
- Enter IoT Application name, e.g., app_1.
- Rule name and Dashboard name will be generated automatically based on the name of IoT Application you fill in.
- Click “Next” to complete create a new IoT application
Step 10: Click "+ Add" to Add This Application’s Device.
Step 11: After Click "+ Add", in “Add Thing”:
- Enter a name for your device (e.g., raspberrypi) and provide the device information (such as serial number and manufacturer) in Add attribute.
- If your device is already supported by QIoT (Arduino Yun,Raspberry Pi, Edison, and Linkit 7688 (Duo)), choose a pre-defined Thing Type.
- Click Add to add the device.
Step 12: Enter the IP Address, User Name, and Password of Your Device and Click the Connect Icon. QIoT Suite Lite Will Check the Connection With the Device. After the Connection Is Verified, Click Next.
Step 13: In "Resources", Click "Add Resource".
Step 14: After Click "Add Resource", in "Add Thing Resource":
- Enter the name and ID for the sensor in Resource Name and Resource ID. Please note that the Resource ID will be used to create a Topic in the QIoT Broker. This ID should be unique for the device and no duplicates should be allowed for the same device.
Step 15: In "API Keys"
- If you want to embed QIoT dashboard widgets into web pages or access QIoT APIs from third-party applications, go to the API Keys tab and click "Generate New API Key". Click "Done".
Step 16: Your IoT Application Will Now Be Created. Node.js Sample Codes and Related Files (certificate, Resource Information) Will Be Uploaded to the Specified Path on Your Device.
Step 17: A Sample Dashboard Will Be Created.
Step 18: Go to the Rule Tab to Define the Flow or Rules on How to Process the Data Sent From the Device, and How to Present in a Dashboard.
Step 19: More Information About QNAP QIoT Suite Lite
Please visit https://www.qnap.com/solution/qiot-suite/en/
More Tutorial https://www.qnap.com/en/how-to/tutorial/qiot-suite...