Close

Getting Started with Arduino YUN

zoyebellaZoyeBella wrote 11/16/2021 at 22:24 • 5 min read • Like

Arduino YUN is an integrated development board that combines the functionality of two boards into one unit. It allows Arduino to communicate with WiFi, Bluetooth, and ZigBee protocols. It can be used to build IoT projects with sensors and actuators. The Arduino YUN is a microcontroller board designed especially for IoT.

It's based on the popular Intel® Quark SoC X1000 application processor, running at 160 MHz and including 1 GB of RAM. It features Ethernet, WiFi, Bluetooth low energy (BLE), and an onboard SD card slot. That means you can get started without any additional hardware!

The Arduino YUN runs completely free software on its open-source Linux distribution. The board can be programmed in C++ or Arduino sketches with direct access to Linux APIs using the standard libraries within the official Arduino IDE or using NodeMCU firmware.

    

The Arduino YUN has a large, breadboard-friendly form factor which makes it easy to plug into a breadboard. However, it also features a USB host port and micro-USB port for advanced users who want to add custom hardware. Arduino YUN provides more connectivity and power, thus helping you to build innovative and complex projects. It supports more protocols than the normal Arduino Uno.

What is the difference between normal Arduino Uno and Arduino Yun?

Arduino Uno is a microcontroller board based on ATmega32u4. It has an ATMEGA328P core with 16MHz CPU speed. The programming language it supports is C/C++. It can control a maximum of 32 digital inputs with a 5V tolerant logic level which means that the voltage rating of digital inputs cannot be more than 5V.

On the other hand, Arduino YUN has a newer ATMEGA32U4 core with 16MHz CPU speed and full support for the Arduino programming language (both C/C++ and JavaScript). It has 32 digital inputs with a 5V tolerant logic level that means that the voltage rating of digital inputs cannot be more than 5V.

What is a connector header?

A connector header is a type of connector provided by a microcontroller board. It connects the pins of the microcontroller to other electronic circuits, making it easier for those circuits to know what signals are being received from the microcontroller. When you purchase Arduino YUN, there are two headers provided as follows: * 3.3V pin header, which gives the power supply to Arduino YUN * GND pin header, which provides ground connections for Arduino YUN.

What is a level shifter and what is its purpose?

A level shifter is a device that connects two circuits with different logic levels. In general, microcontrollers run at lower voltage levels while many sensors and other external devices work at higher voltage levels. In this situation, a level shifter can connect these two circuits to make them work together without damaging any components in them.

What is an RTC time clock? Why do we need it?

A real-time clock (RTC) is a real-time clock included in Arduino YUN which keeps track of the date and time even when Arduino YUN is not powered on. You can use the date and time information to generate alarms, trigger events, or other applications.

Can I use Arduino YUN with Arduino IDE?

Yes. It has an ATMEGA32u4 microcontroller running at 16MHz which works with the Arduino programming language (both C/C++ and JavaScript). You can upload code to it using the standard basic Arduino IDE. It's compatible with ESP8266 firmware libraries. That means you can use the Arduino IDE to program it normally. Arduino YUN has a built-in Ethernet, Serial ports, USB host port, Micro-USB port, and UART pins which are all available on the header. All of these options allow you to easily interface with other building blocks. This will allow you to program it directly in Lua language using the popular NodeMCU platform.

Can I use Arduino YUN with Android or iOS?

Yes. Arduino YUN module has a JTAG interface that allows you to upload sketches to it directly from your computer for programming in C/C++ language on an Android or iOS device. You can also use the Arduino software (IDE) to program it, then enable JTAG mode to upload code into it directly from your computer. Note: This JTAG interface requires a special cable so we will only provide the cable when we ship out our orders. You can also buy your cable on Amazon here.

What is the difference between Arduino YUN and Arduino Compatible board?

Arduino YUN is more advanced than Arduino Compatible board because it has built-in WiFi, Bluetooth, ZigBee, and Ethernet. You can connect it with your phone or tablet directly to test your IoT application. In the meanwhile, you can use it to control other devices if they have an OTG connector. It's much better to use this board as a development platform because its open-source nature allows you to customize it as if it were a standalone device without any external components.

Can we program Arduino YUN directly in the Lua language?

Yes. You can program it in Lua language using the popular NodeMCU platform. This means Arduino YUN already has a built-in Lua interpreter which is based on the Lua 5.1.4 programming language. You can program it in the Lua language without worrying about stack size, heap size, heap memory usage, free memory available, and so on because all these functions are already defined by the NodeMCU firmware team.

Can I program it by standard Arduino IDE?

Yes. You can program it in Lua language using the popular NodeMCU platform. This means Arduino YUN already has a built-in Lua interpreter which is based on the Lua 5.1.4 programming language. You can program it in the Lua language without worrying about stack size, heap size, heap memory usage, free memory available, and so on because all these functions are already defined by the NodeMCU firmware team.

Note: To write code in C/C++ programming language for Arduino YUN you need to install an open-source tool called "GNU ARM Embedded Toolchain". 

Like

Discussions