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. The Circuit I 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.
- The ATmega32U4 is an Atmel ATmega32U4, the same processor that powers the Arduino Leonardo and the Arduino Mega. 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 ARM Cortex A8 cores, while faster, are less reliable than the 32U4’s other cores, so the 32U4 should generally be used for video and audio processing.
- The WiFi and Bluetooth controllers are only 0.2Mhz, but using them is much more reliable than using the 0.7Mhz Arduino chips and doesn’t require you to hack the Arduinos.
- 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 state between programs and interrupt the AR9331 from time to time if you want to change out one microcontroller for another. Both microprocessors are based on the ATmega32U4.
- The ATmega32U4 is similar in appearance to the Atmel ATmega1284P, but has several significant differences. The number of digital IO pins is decreased from 16 to 8, and the ATmega32U4 has a lower power consumption.
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 ( https://www.arduino.cc/en/latest/ ) onto your computer. Step 2: Unzip the Arduino Yun zip file. Unzip the file and extract the contents to the directory where you unzipped it.
- 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 first connector is USB, which we will use to communicate with the Arduino Yún and the second connector is VCC, which we will use to communicate with the Arduino Yún when it boots the board up and for communication with the computer.
- The Yun has onboard WiFi. To program the 32U4 on your PC, you simply connect the 32U4 and its WiFi module to your computer via USB. You will need to use Linux to program the 32U4.
- The free Arduino IDE supports Windows, Mac, and Linux. It also works with all other popular languages like Java, Python, C, and Ruby, as well as IDEs like Visual Studio and Eclipse.
- 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.
- If your Yún is running Linux, ensure that the bootloader has not been disabled, since this may prevent the Yún 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’ll want to use the WiringPi project that we’ve covered before. 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