Connect Arduino Yun to QNAP NAS-Lesson 1

In this part, there are four parts:

A: Download Arduino IDE

B: Configure and test your device

C: Get IP address of your Arduino Yun

D: Install development tools for your Arduino Yun

Part A: Download Arduino IDE

Part B: Configure and test your device

If this is the first time you use your Arduino Yun, you will have to follow some steps to assemble it.

  • Connect Arduino Yun to your PC with USB.

  • Open your Arduino IDE and find Blink example.

Arduino Blink
Arduino Blink
  • Configure your board:

Configure board
Configure board
  • Configure your port:

configure port
configure port
  • Verify and upload your Blink example to Arduino Yun

Verify and upload your Blink example to Arduino Yun
Verify and upload your Blink example to Arduino Yun
  • If you success upload your code to Arduino Yun, please check your Arduino Yun and you could see L13 is blink now:

L13 is blink
L13 is blink

 

  • Connect your DHT11 sensor to “Ground”, “5V”, “Pin 2(Digital)” on Arduino Yun respectively.

Connect sensor
Connect sensor

Part C: Get IP address of your Arduino Yun

  • Press Wifi reset button (need to press 5 seconds)

    Wifi reset
    Wifi reset
  • Go to your Wifi settings and choose “Arduino-Yun-XXXXXXX”. The “XXXXXXX” is MAC address of your Arduino Yun.

    Wifi settings and choose
    Wifi settings and choose
  • Open your browser and type in “http://192.168.240.1” or “http://arduino.local”. The default password is “arduino”.

    http://arduino.local
    http://arduino.local
  • Complete your Board setting and link your Arduino Yun to the router you are using. Skip “API  setting” and click on save to complete.

    API setting
    API setting
  • On your PC, change your Wifi network to your router and now your NAS and Arduino is under the same network.

Part D: Install development tools for your Arduino Yun

  • Open Terminal from http://arduino.local

  • Type your login account “root” and your password. The default password is “arduino”.

    arduino
    arduino
  • Install PIP and MQTT Library by tying in the following commands.

  • In next lesson will install QIoT Suite and connect to NAS by sample code.Lesson 2 Install QIoT Suite Lite.

    Please visit QNAP github for QIoT Suite Lite sample code

    QNAP-Github

Related posts

5 thoughts on “Connect Arduino Yun to QNAP NAS-Lesson 1

  1. i can connect arduino uno?

    1. Cheng Anderson

      Yes, you can use MQTT to connect with QIoT Suite Lite

    2. Cheng Anderson

      need MQTT lib ex. pubsubclient

  2. Dmitry

    getting this error

    root@disf:~# easy_install pip
    Searching for pip
    Reading http://pypi.python.org/simple/pip/
    Couldn’t find index page for ‘pip’ (maybe misspelled?)
    Scanning index of all packages (this may take a while)
    Reading http://pypi.python.org/simple/
    No local packages or download links found for pip
    error: Could not find suitable distribution for Requirement.parse(‘pip’)

  3. No name

    Is anyone how have working sketch to Ardiuno UNO?

Leave a Reply