Hi, readers welcome to the new post. In this post, we will discuss Introduction to Arduino Yun. This category of Arduino is similar to other types of Arduino boards. Its programming configuration is like the Arduino Leonardo and comes with the processor features like to Atmel ATmega32U4.
In this post, we will learn different features applications and some other points with the details. so let get started..
Introduction to Arduino Yun
- Using the 32U4, you can code some fantastic code, such as controlling a light bulb. With the 32U4 and a suitable plug-in module, you can also program a camera. You can also use the 32U4 as a general-purpose microcontroller, which makes it ideal for projects.
- One of the most exciting possibilities for the 32U4 is in the IoT world. For the Circuit used an ATtiny48 toggle switch. Although it looks more like a coffee maker switch, I chose the ATtiny48 switch for its miniaturization capabilities.
- The small size of the switch is the result of the use of glass as the resistive touch sensor. Glass also makes the switch faster and safer to use. A 10KΩ resistor and capacitor in series with the switch supply power to operate the LED.
- The signal output from the switch is used to program the 32U4.
Arduino Yun Pinout
|Pin Number||Pin Name||Pin Function||Additional Information|
|1||D13||Digital I/O||Built-in LED|
|6||AREF||Analog reference voltage|
|9||D5||Digital I/O||PWM capable|
|10||D4||Digital I/O||PWM capable|
|11||D3||Digital I/O||PWM capable|
|12||D2||Digital I/O||PWM capable|
|13||D1||Digital I/O||Serial RX|
|14||D0||Digital I/O||Serial TX|
|23||A4||Analog input / I2C|
|24||A5||Analog input / I2C|
Arduino Yun Technical Features
|Clock Speed||16 MHz|
|Digital I/O Pins||14|
|Analog Input Pins||6|
|DC Current per I/O Pin||20 mA|
|DC Current for 3.3V Pin||50 mA|
|DC Current for 5V Pin||800 mA (total board current)|
|Flash Memory||32 KB (ATmega32u4)|
|SRAM||2.5 KB (ATmega32u4)|
|EEPROM||1 KB (ATmega32u4)|
|USB||1x USB 2.0 Host, 1x USB 2.0 Device|
|MicroSD Card Slot||Yes|
Arduino Yun details a comparison with other top 10 Arduinos
|Board||Digital I/O Pins||Analog Input Pins||PWM Pins||Microcontroller||Clock Speed||Ethernet||WiFi||USB|
|Arduino Yun||14||6||7||ATmega32u4||16 MHz||10/100 Mbps||IEEE 802.11b/g/n||1x USB 2.0 Host, 1x USB 2.0 Device|
|Arduino Uno||14||6||6||ATmega328P||16 MHz||No||No||1x USB 2.0 Device|
|Arduino Mega||54||16||14||ATmega2560||16 MHz||No||No||1x USB 2.0 Device|
|Arduino Due||54||12||12||SAM3X8E||84 MHz||No||No||1x USB 2.0 Device|
|Arduino Nano||22||8||6||ATmega328P||16 MHz||No||No||1x USB 2.0 Device|
|Arduino Pro Mini||14||8||6||ATmega328P||16 MHz||No||No||No|
|Arduino Leonardo||20||12||7||ATmega32u4||16 MHz||No||No||1x USB 2.0 Device|
|Arduino Micro||20||12||7||ATmega32u4||16 MHz||No||No||1x USB 2.0 Device|
|Arduino Zero||14||6||10||ATSAMD21G18||48 MHz||No||No||1x USB 2.0 Device|
|Arduino MKR1000||8||7||7||ATSAMD21G18||48 MHz||10/100 Mbps||IEEE 802.11b/g/n||1x USB 2.0 Device|
- The Arduino Mega and Leonardo are both powered by Atmel’s ATmega32U4 CPU, which is also used in the ATmega32U4.
The ATmega32U4 has four DDR2 256-bit cores (6 in total).
- These cores can be used for general computing, running at a maximum frequency of 2.0GHz, or as the CPU for the Bluetooth or WiFi controller. The 32U4 is typically utilized for video and audio processing since the ARM Cortex A8 cores are quicker but less dependable than the other cores.
- The 32U4 is typically utilized for video and audio processing since the ARM Cortex A8 cores are quicker but less dependable than the other cores.
- Although the Arduino Yun will only work with Arduino boards, the Arduino Yun uses the official Arduino SDK to make the initial configuration of the board easy.
- The Atheros AR9331, not to be confused with the Wi-Fi 802.11b/g standard, was designed to be more reliable than the Atmel ATmega32U4 because it has a larger, more reliable flash ROM with 8K of RAM and uses the same universal library for low-level CPU processing.
- The result is more reliable code and faster performance when you’re downloading firmware. It’s also possible to use the ATmega32U4 to save the state between programs and interrupt the AR9331 from time to time if you want to change out one microcontroller for another. These two microprocessors are configured with the ATmega32U4.
- Although the ATmega32U4 and Atmel ATmega1284P seem identical, they differ significantly in a number of ways. The ATmega32U4 consumes less power and features 8 IO pins instead of 16 for digital input and output.
Wiring Things Up
- Connect the included USB cable to the Arduino Yun. Then plug the Yun USB header into the USB connector on your computer.
- Then use the USB programmable headers to install the Arduino software onto the Yun.
- Step 1: Download the latest version of Arduino onto your computer.
- Step 2: Unzip the Arduino Yun zip file. Extract the data of files to the directory there you have unzipped.
- You will find the Yún program on the first directory, subfolders:
- Step 3: Once you’re in the Arduino Yun folder, select the upload Arduino program icon.
- Step 4: Connect the Yún to your computer’s USB cable.
- Step 5: Upload the Arduino program to the Yún.
- Unlike the Arduino Leonardo, which has a built in shield for the Yun, the Yun doesn’t have one. So you have to use the shield for your Arduino project.
- The Yun shield is a rectangular enclosure with a fan on the front and a slider to control it’s temperature and airflow. This enclosure has three headers attached to it.
- The three header headers are: VCC, GND and Power. The header for the Yún Shield There are two Arduino pins in this header that allow you to control the fan speed.
- The Arduino Yn is communicated with via the first connector, USB, and the second connector, VCC, both of which are utilized during board setup and computer communication.
- The Yun has onboard WiFi.Simply connect the 32U4 and its WiFi module to your computer via USB to begin programming it.
You will need to use Linux to program the 32U4.
- The free Arduino IDE supports Windows, Mac, and Linux. Along with working with IDEs such as Visual Studio and Eclipse, it also supported all other languages likeJava, Python, C, and Ruby.
- The Yun also works as a USB programmer, thanks to its small size and the extremely small header pins on the 32U4. Programming the 32U4 Using the Arduino IDE on a Mac or PC, you will need to do the following: Boot your Yún into Bootloader mode.
- Make sure the bootloader has not been deactivated if your Yn is running Linux since this might prevent the Yn from booting.
Board Layout and Pin Mapping
- The Yun is an ATmega32U4 with 16 analog inputs and 12 digital I/O pins. The board itself contains 64kB of flash storage and a MicroSD slot for additional storage.
- It has support for the Arduino IDE and can be powered either through an internal 22u3 Li-ion coin cell or via an external 18VDC 1A charger. Power for the board is regulated by a 40 pin header.
- Design and Programming For those of us who need to program the Yún via USB and need to do it in order to get up and running with our Arduino software, this board is a major step forward in our experience as developers.
- The way you program the board using Linux is almost exactly the same as programming the Arduino Leonardo with the Arduino IDE.
Programming the Arduino Yun via USB
- The new board supports only barebones projects, including: Software for running open source firmware A wealth of online code repositories for popular projects Fun Coding Frameworks (C, C++, Java, Python, etc.)
- No microSD card is required and other “platform tools.” The open-source software ecosystem around Arduino is really what makes this thing so fantastic. Do you want to program the Yun? Then you should utilize the WiringPi project that we previously discussed.
- Basically, it’s a suite of Python scripts, with the main one called #wiringpi.py which will actually run the Arduino libraries needed for most projects.
Programming the Yunvia WiFi
- The Yun runs an operating system called ‘Octopixel’ (with an additional python library), the software on the Yun can run in either a development mode, that monitors the 16×8 LCD, or an emulated x86 mode that allows the Yun to run desktop applications like Windows 7. While the software running on the Yún can run these desktop applications, running a full windowed Windows 7 environment is not very comfortable.
- Programming with Octopixel Fortunately, the user’s taskbar will be resizable to fill the entire display, and Windows 7’s taskbar is always resizable. Additionally, all the desktop applications you’ll need are available via the Octopixel software.
Arduino Yun isn’t just for beginners. Programming this board should be one of the basics that beginners learn when they start out with Arduino. I’ve been programming it for a while and I’m constantly improving the speed and programming techniques that I use on it. If you’re a beginner, I recommend that you get the Yun. See also: If you want to add a dual-core processor, the Arduino Leonardo, to your Arduino Yun, buy one here. Have a great programming experience with the Arduino Yun