Arduino Yun


Quantity:
Regular Price:
$69.95
Item #:82P-A000008
Additional add-on (optional):
Rating:
Availability:Usually ships the next business day


Overview

The Arduino Yśn is a microcontroller board based on the ATmega32u4 (datasheet) and the Atheros AR9331. The Atheros processor supports a Linux distribution based on OpenWRT named Linino. The board has built-in Ethernet and WiFisupport, a USB-A port, micro-SD card slot, 20 digital input/output pins (of which 7 can be used as PWM outputs and 12 as analog inputs), a 16 MHz crystal oscillator, a micro USB connection, an ICSP header, and a 3 reset buttons.

The Yśn distinguishes itself from other Arduino boards in that it can communicate with the Linux distribution onboard, offering a powerful networked computer with the ease of Arduino. In addition to Linux commands like cURL, you can write your own shell and python scripts for robust interactions.

The Yśn is similar to the Leonardo in that the ATmega32u4 has built-in USB communication, eliminating the need for a secondary processor. This allows the Yśn to appear to a connected computer as a mouse and keyboard, in addition to a virtual (CDC) serial / COM port.

The Bridge library facilitates communication between the two processors, giving Arduino sketches the ability to run shell scripts, communicate with network interfaces, and receive information from the AR9331 processor. The USB host, network interfaces and SD card are not connected to the 32U4, but the AR9331, and the Bridge library also enables the Arduino to interface with those peripherals.

Summary

Because the Yśn has two processors, the summary section shows the characteristics of each one in two separate tables.

AVR Arduino microcontroller
Microcontroller ATmega32u4
Operating Voltage 5V
Input Voltage 5V
Digital I/O Pins 20
PWM Channels 7
Analog Input Channels 12
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 32 KB (of which 4 KB used by bootloader)
SRAM 2.5 KB
EEPROM 1 KB
Clock Speed 16 MHz
Linux microprocessor
Processor Atheros AR9331
Architecture MIPS @400MHz
Operating Voltage 3.3V
Ethernet IEEE 802.3 10/100Mbit/s
WiFi IEEE 802.11b/g/n
USB Type-A 2.0 Host/Device
Card Reader Micro-SD only
RAM 64 MB DDR2
Flash Memory 32 MB
PoE compatible 802.3af card support  

Schematic & Reference Design

Schematic: arduino-Yun-schematic.pdf

Power

It is recommended to power the board via the micro-USB connection with 5VDC.

If you are powering the board though the Vin pin, you must supply a regulated 5VDC. There is no on-board voltage regulator for higher voltages, which will damage the board.

The Yśn is also compatible with PoE power supply but in order to use this feature you need to mount a PoE module on the board or buy a preassembled one.

The power pins are as follows:

  • VIN. The input voltage to the Arduino board. Unlike other Arduino boards, if you are going to provide power to the board through this pin, you must provide a regulated 5V.
  • 5V. The power supply used to power the microcontrollers and other components on the board. This can come either from VIN or be supplied by USB.
  • 3V3. A 3.3 volt supply generated by the on-board regulator. Maximum current draw is 50 mA.
  • GND. Ground pins.
  • IOREF. The voltage at which the i/o pins of the board are operating (i.e. VCC for the board). This is 5V on the Yśn.

Memory

The ATmega32u4 has 32 KB (with 4 KB used for the bootloader). It also has 2.5 KB of SRAM and 1 KB of EEPROM (which can be read and written with the EEPROM library).

The memory on the AR9331 is not embedded inside the processor. The RAM and the storage memory are externally connected. The Yśn has 64 MB of DDR2 RAM and 16 MB of flash memory. The flash memory is preloaded in factory with a Linux distribution based on OpenWRT called Linino. You can change the content of the factory image, such as when you install a program or when you change a configuration file. You can return to the factory configuration by pressing the "WLAN RST" button for 30 seconds.

Input and Output

It is not possible to access the I/O pins of the Atheros AR9331. All I/O lines are tied to the 32U4.

Each of the 20 digital i/o pins on the Yśn can be used as an input or output, using pinMode()digitalWrite(), anddigitalRead() functions. They operate at 5 volts. Each pin can provide or receive a maximum of 40 mA and has an internal pull-up resistor (disconnected by default) of 20-50 kOhms. In addition, some pins have specialized functions:

  • Serial: 0 (RX) and 1 (TX). Used to receive (RX) and transmit (TX) TTL serial data using the ATmega32U4hardware serial capability. Note that on the Yśn, the Serial class refers to USB (CDC) communication; for TTL serial on pins 0 and 1, use the Serial1 class. The hardware serials of the ATmega32U4 and the AR9331 on the Yśn are connected together and are used to communicate between the two processors. As is common in Linux systems, on the serial port of the AR9331 is exposed the console for access to the system, this means that you can access to the programs and tools offered by Linux from your sketch.
  • TWI: 2 (SDA) and 3 (SCL). Support TWI communication using the Wire library.
  • External Interrupts: 3 (interrupt 0), 2 (interrupt 1), 0 (interrupt 2), 1 (interrupt 3) and 7 (interrupt 4). These pins can be configured to trigger an interrupt on a low value, a rising or falling edge, or a change in value. See the attachInterrupt() function for details. Is not recommended to use pins 0 and 1 as interrupts because they are the also the hardware serial port used to talk with the Linux processor. Pin 7 is connected to the AR9331 processor and it may be used as handshake signal in future. Is recommended to be careful of possible conflicts if you intend to use it as interrupt.
  • PWM: 3, 5, 6, 9, 10, 11, and 13. Provide 8-bit PWM output with the analogWrite() function.
  • SPI: on the ICSP header. These pins support SPI communication using the SPI library. Note that the SPI pins are not connected to any of the digital I/O pins as they are on the Uno, They are only available on the ICSP connector. This means that if you have a shield that uses SPI, but does NOT have a 6-pin ICSP connector that connects to the Yśn's 6-pin ICSP header, the shield will not work.

The SPI pins are also connected to the AR9331 gpio pins, where it has been implemented in software the SPI interface. This means that the ATMega32u4 and the AR9331 can also communicate using the SPI protocol.

  • LED: 13. There is a built-in LED connected to digital pin 13. When the pin is HIGH value, the LED is on, when the pin is LOW, it's off.
  • There are several other status LEDs on the Yśn, indicating power, WLAN connection, WAN connection and USB.
  • Analog Inputs: A0 - A5, A6 - A11 (on digital pins 4, 6, 8, 9, 10, and 12). The Yśn has 12 analog inputs, labeled A0 through A11, all of which can also be used as digital i/o. Pins A0-A5 appear in the same locations as on the Uno; inputs A6-A11 are on digital i/o pins 4, 6, 8, 9, 10, and 12 respectively. Each analog input provide 10 bits of resolution (i.e. 1024 different values). By default the analog inputs measure from ground to 5 volts, though is it possible to change the upper end of their range using the AREF pin and the analogReference() function.
  • AREF. Reference voltage for the analog inputs. Used with analogReference().

There are 3 reset buttons with different functions on the board:

  • Yśn RST. Bring this line LOW to reset the AR9331 microprocessor. Resetting the AR9331 will cause the reboot of the linux system. All the data stored in RAM will be lost and all the programs that are running will be terminated.
  • 32U4 RST. Bring this line LOW to reset the ATmega32U4 microcontroller. Typically used to add a reset button to shields which block the one on the board.
  • WLAN RST. This button has a double feature. Primarly serves to restore the WiFi to the factory configuration. The factory configuration consist to put the WiFi of the Yśn in access point mode (AP) and assign to it the default IP address that is 192.168.240.1, in this condition you can connect with your computer to the a WiFi network that appear with the SSID name "Arduino Yun-XXXXXXXXXXXX", where the twelve 'X' are the MAC address of your Yśn. Once connected you can reach the web panel of the Yśn with a browser at the 192.168.240.1 or "http://arduino.local" address. Note that restoring the WiFi configuration will cause the reboot of the linux environment. To restore your WiFi configuration you have to press and hold the WLAN RST button for 5 seconds. When you press the button the WLAN blue LED will start to blink and will keep still blinking when you release the button after 5 seconds indicating that the WiFi restore procedure has been recorded. The second function of the WLAN RST button is to restore the linux image to the default factory image. To restore the linux environment you must press the button for 30 seconds. Note that restoring the factory image make you lose all the files saved and softwares installed on the on-board flash memory connected to the AR9331.

See also the mapping between Arduino pins and ATmega32u4 ports.

Communication

The Yśn has a number of facilities for communicating with a computer, another Arduino, or other microcontrollers. TheATmega32U4 provides a dedicated UART TTL (5V) serial communication. The 32U4 also allows for serial (CDC) communication over USB and appears as a virtual com port to software on the computer. The chip also acts as a full speed USB 2.0 device, using standard USB COM drivers. The Arduino software includes a serial monitor which allows simple textual data to be sent to and from the Arduino board. The RX and TX LEDs on the board will flash when data is being transmitted via the USB connection to the computer.

Digital pins 0 and 1 are used for serial communication between the 32U4 and the AR9331. Communication between the processors is handled by the Bridge library.

SoftwareSerial library allows for serial communication on any of the Yśn's digital pins except for pins 0 and 1.

The ATmega32U4 also supports I2C (TWI) and SPI communication. The Arduino software includes a Wire library to simplify use of the I2C bus; see the documentation for details. For SPI communication, use the SPI library.

The Yśn appears as a generic keyboard and mouse, and can be programmed to control these input devices using theKeyboard and Mouse classes.

The onboard Ethernet and WiFi interfaces are exposed directly to the AR9331 processor. To send and receive data through them, use the Bridge library. To configure the interfaces, you can access the network control panel as described in the getting started page.

The Yśn also has USB host capabilities through Linino. You can connect peripherals like USB flash devices for additional storage, keyboards, or webcams. You may need to download and install additional software for these devices to work. For information on adding software to the AR9331, refer to the notes on using the package manager.

Programming

The Yśn can be programmed with the Arduino software (download). Select "Arduino Yśn from the Tools > Board menu (according to the microcontroller on your board). For details, see the reference and tutorials.

The ATmega32U4 on the Arduino Yśn comes preburned with a bootloader that allows you to upload new code to it without the use of an external hardware programmer. It communicates using the AVR109 protocol.

You can also bypass the bootloader and program the microcontroller through the ICSP (In-Circuit Serial Programming) header; see these instructions for details.

Automatic (Software) Reset and Bootloader Initiation

Rather than requiring a physical press of the reset button before an upload, the Yśn is designed in a way that allows it to be reset by software running on a connected computer. The reset is triggered when the Yśn's virtual (CDC) serial / COM port is opened at 1200 baud and then closed. When this happens, the processor will reset, breaking the USB connection to the computer (meaning that the virtual serial / COM port will disappear). After the processor resets, the bootloader starts, remaining active for about 8 seconds. The bootloader can also be initiated by pressing the reset button on the Yśn. Note that when the board first powers up, it will jump straight to the user sketch, if present, rather than initiating the bootloader.

Because of the way the Yśn handles reset it's best to let the Arduino software try to initiate the reset before uploading, especially if you are in the habit of pressing the reset button before uploading on other boards. If the software can't reset the board you can always start the bootloader by pressing the reset button on the board.

USB Overcurrent Protection

The Yśn has a resettable polyfuse that protects your computer's USB ports from shorts and overcurrent. Although most computers provide their own internal protection, the fuse provides an extra layer of protection. If more than 500 mA is applied to the USB port, the fuse will automatically break the connection until the short or overload is removed.

Physical Characteristics

The maximum length and width of the Yśn PCB are 2.7 and 2.1 inches respectively, with the USB connector extending beyond the former dimension. Four screw holes allow the board to be attached to a surface or case. Note that the distance between digital pins 7 and 8 is 160 mil (0.16"), not an even multiple of the 100 mil spacing of the other pins.

Using your Yun

There is an extensive Getting Started Guide and a number of tutorials found on the library reference page.

Our warranty/ return / exchange policy is very simple. If the item we sent you is defective when you received the shipment from us (NOT AFTER USE), you can report to us by email for return / exchange / refund arrangement.

Request(s) for return or exchange and report(s) of missing or damaged part(s) must be received within 30 days of your receipt of merchandise(s). We reserves the rights to entertain requests received thereafter.

Items returned must be in as-new conditions with the packing slips, manuals, accessories and all other items intact in original packaging. Returned merchandise must be received from our customer before we will process and ship out any replacement. All merchandise should be returned to us by shipping carriers with safe method which provides proof of shipment (just in case your item does not reach us. so you can check with your local shipping carrier.) We will not responsible for the lost of returned merchandise in shipping.

Shipping and handling charges for all orders are non-refundable, as we have paid the Post Office to send the shipment and the Post Office will NOT refund the postage cost back to us after they processed the shipment. Customer will be responsible for the return shipping cost to send return back to us. For returned merchandise that is found to be genuinely defective, we ship out replacement for free (we pay for the replacement shipping cost) and will not charge additional shipping and handling fees.

We reserves the right to return merchandise to its customer and not refund money, if we in our opinion deem that the merchandise has been used, crashed, abused, misused or modified in any form, or has been damaged by water, dust, or other contaminants.

*** All items are tested by manufactures to make sure they are working properly before we ship them to our customers.

*** Please inspect the product when you received the shipment, identified any issue and report to us BEFORE you try to fly / use it. Please also check over the product (especially the helicopters and air planes) and make sure they are all good every time before use (or taking to the air).

*** Return / exchange / refund is not allowed if the item has been used or flew. Please understand that RC helicopters and airplanes can crash if mistake made or you do not know how to fly, any kind of crash or hard landing may caused damage(s) to the helicopter or plane. We have no control over your flying skill, behavior or the conditions you have chosen to fly in. We tested all products before shipment as we stated above, if you have any problem with the aircraft or other product(s) you ordered from us, please report it at the time when you received the shipment (not after use please).

*** If you used / flew the product, or crashed product, no matter what the reason. We are sorry but we can not be responsible for your crash or use. Hobbypartz.com will not be responsible for incidental or consequential damages including bodily injuries and property damages arising from the use of any product(s) that it sells. Hobbypartz.com reserves the right to refuse service to anyone. Remote controlled products and accessories can be very dangerous.  Please read the operating manual before use.  We have no control over the correct use, installation, application, or maintenance of our products, no liability shall be assumed nor accepted for any damages, losses or costs resulting from the use of the products. Any claims arising from the operating, failure or malfunctioning etc. will be denied. We assume no liability for personal injuries, property damages or consequential damages resulting from our products.

*** These terms applied to all sales made from our website, email, phone, or fax. If you do not agree to our terms, please do not make the order.

We reserves the right to amend this policy without further notification(s).


To experience 5-Star Customer Service & Tech Support from HobbyPartz.com, visit us at RCDiscuss.com

 


HobbyPartz Clearance Deals
HobbyWing eZRun-35A Brushless ESC for 1/10 Car (Version 2) w/ Reverse programming
Regular Price: $69.00
On Sale Now: $31.99
You save 54%
STAYPRO 45G HD-DVR 5-MegaPixel Micro FPV Video Recorder w/ HDMI 1280 x 720 30fps
Regular Price: $59.00
On Sale Now: $39.95
You save 32%
Hidden Covert Camera, Great for First Person View Camera system for RC Planes, Cars, Helicopters
Regular Price: $17.50
On Sale Now: $13.00
You save 26%
Detrum GY48V Head-Lock Gyro for 3D RC Helicopters
Regular Price: $19.95
On Sale Now: $12.95
You save 35%
ARF Foam Field Stand-Green
Regular Price: $29.95
On Sale Now: $14.90
You save 50%
64mm 12 Blade Fan Unit for Electric Ducted Fan Jet
Regular Price: $19.95
On Sale Now: $12.95
You save 35%
HobbyPartz 2-Meter Warm-White LED-120 Lights
Regular Price: $24.95
On Sale Now: $11.95
You save 52%
Dynam Brushless Motor (3000kv)
Regular Price: $29.00
On Sale Now: $19.00
You save 34%
1/10 Touring Car Run Flat Tire Black
Regular Price: $4.95
On Sale Now: $4.00
You save 19%
Dynam Motor ESC Combo  BM2826D-KV3000+60A ESC for 70MM EDF Jets
Regular Price: $49.95
On Sale Now: $34.95
You save 30%
Exceed RC Rocket 2205-1600KV Brushless Motor for RC Plane
Regular Price: $29.95
On Sale Now: $12.95
You save 57%
Tail rotor blade for Exceed RC 40 or Compatiable RC Helicopters
Regular Price: $5.00
On Sale Now: $0.77
You save 85%
Training Gear Sets for All Kinds of RC helicopters
Regular Price: $10.00
On Sale Now: $3.00
You save 70%
Tacon 3650-11T Brushless Motor 3200KV for 1/10 On-Road RC Car
Regular Price: $49.95
On Sale Now: $24.09
You save 52%
Exceed RC Proton 12A ESC Brushless Electronic Speed Controller
Regular Price: $19.95
On Sale Now: $10.95
You save 45%
Solar Servo A106 Analog 9g  0.12@4.8v Micro Servo
Regular Price: $11.95
On Sale Now: $4.14
You save 65%
HobbyWing Program Card for ESC RC Plane
Regular Price: $15.00
On Sale Now: $6.99
You save 53%
Exceed RC Rocket 4120-400KV Brushless Motor for RC Plane
Regular Price: $79.00
On Sale Now: $38.50
You save 51%
Main rotor blades for Walkera Genius CP RC Helicopter
Regular Price: $6.97
On Sale Now: $5.00
You save 28%
Gens Ace 4mm Banana Battery Connector
Regular Price: $4.00
On Sale Now: $2.00
You save 50%
Exceed RC Rocket 2205-1400KV Brushless Motor for RC Plane
Regular Price: $29.95
On Sale Now: $12.99
You save 57%
Li-poly Spare Battery for Syma S33 RC Helicopters
Regular Price: $12.50
On Sale Now: $6.66
You save 47%
HobbyPartz Red LED-30 Lights
Regular Price: $7.99
On Sale Now: $3.50
You save 56%
HobbyPartz Blue LED-240 lights
Regular Price: $49.00
On Sale Now: $24.00
You save 51%
Tacon 3650-10T Brushless Motor 3500KV for 1/10th On-Road RC Car
Regular Price: $49.95
On Sale Now: $24.09
You save 52%
Exceed RC Proton 40A ESC Brushless Electric Motor Speed Controller
Regular Price: $49.95
On Sale Now: $27.95
You save 44%
Dynam Motor ESC Combo BM2810A-KV810+25A ESC for 3D Planes
Regular Price: $39.95
On Sale Now: $24.95
You save 38%
Solar Servo D770 High Voltage Low Profile .06sec@7.4v Digital Metal Gear 47g
Regular Price: $29.95
On Sale Now: $17.95
You save 40%
High Performance Brushless T-Motor MT4006 740KV for Quadcopter/Multi-Rotor
Regular Price: $124.35
On Sale Now: $82.90
You save 33%
Sky RC Charger 6200 200W Multifunction LiPo/LiFe(1-6S) NiMH/NiCD(1-18S) DC Charger/Balancer
Regular Price: $84.95
On Sale Now: $44.95
You save 47%
GENS ACE 5000mah 3S1P 11.1V 40C hard case Lipo battery Racing Approved Batteries
Regular Price: $62.67
On Sale Now: $50.00
You save 20%
GENS ACE 5000mAh 2S2P 65C Lipo RC Battery (Hardcase)
Regular Price: $89.00
On Sale Now: $60.00
You save 33%
GENS ACE 3800mah 4S1P 14.8V 25C Lipo battery pack
Regular Price: $56.70
On Sale Now: $49.95
You save 12%
Gens Ace LIPO  Battery 1200mah  22.2V 40c
Regular Price: $24.00
On Sale Now: $22.00
You save 8%
HD 720p Dice Mini Camera with Night Vision LxWxH: 1 3/8"x1 3/8"x1 1/4"
Regular Price: $69.95
On Sale Now: $34.95
You save 50%
Mini Sport Camera w/ WiFi Pro Version HD
Regular Price: $199.00
On Sale Now: $99.00
You save 50%
8-Pack AA 2200mAh NiMH Rechargerable Battery
Regular Price: $19.95
On Sale Now: $10.90
You save 45%
HobbyWing 1/8 Scale C-Xerun 150A Brushless ESC
Regular Price: $129.95
On Sale Now: $99.00
You save 24%
Fly Sky CT6B 6-Ch 2.4Ghz Radio Remote Transmitter w/ Receiver * Brand New Complete Exceed RC OEM Remote System
Regular Price: $99.00
On Sale Now: $44.95
You save 55%
Thunder 1030 Charger 1000 Watt 30 Amps
Regular Price: $249.00
On Sale Now: $139.00
You save 44%
Sky RC E3 2-3S Lithinum 100-240v Balance Charger
Regular Price: $19.95
On Sale Now: $9.70
You save 51%
Out of Stock!
EXI Aluminum Helicopter Carrying Case Perfect For 450 Class Helicopters
Regular Price: $79.00
On Sale Now: $34.95
You save 56%
Tail motor heat-sink for Esky RC Helicopters
Regular Price: $3.00
On Sale Now: $0.55
You save 82%
Main blade grip set for 9053 RC Helicopter
Regular Price: $5.00
On Sale Now: $0.55
You save 89%
50H08-01 Main Rotor Blade
Regular Price: $13.00
On Sale Now: $4.00
You save 69%
Suggested by HobbyPartz
8-Pack AA 2200mAh NiMH Rechargerable Battery
Regular Price: $19.95
On Sale Now: $10.90
You save 45%
JumpStart Intelligent Fast Charger for AA & AAA NiMH Batteries
Regular Price: $19.95
On Sale Now: $12.77
You save 36%
2.4G Fly-Sky (FS) CT6B 6-Channel Transmitter+Receiver (R6B)
Regular Price: $79.00
On Sale Now: $39.00
You save 51%
FlySky FS-T6 2.4ghz Digital Proportional 6 Channel Transmitter and Receiver System
Regular Price: $99.00
On Sale Now: $54.95
You save 44%
Thunder AC6 Smart LiPo Balance Charger/Discharger w/ AC Adapter for 1-6 Lipo/ 1-15 Nimh + USB to PC Software
Regular Price: $99.95
On Sale Now: $48.95
You save 51%
FLY SKY FS-GT3B Digital 3-Channel 2.4ghz TX & RX LCD Transmitter & Receiver
Regular Price: $79.95
On Sale Now: $39.95
You save 50%
First Person View System with Sony CCD image Sensor Camera
Regular Price: $499.00
On Sale Now: $289.00
You save 42%
FLY SKY FS-iT4 4-CH 2.4ghz Telemetry RC Radio Control Transmitter w/ LCD Touch Screen (Orange)
Regular Price: $249.00
On Sale Now: $139.95
You save 44%
FLY SKY GT3C 2.4ghz 3-Channel Radio Transmitter and Receiver w/ LCD+Lipo Battery and Charger
Regular Price: $99.00
On Sale Now: $54.00
You save 45%
FS-TH9X 2.4GHz 9CH Transmitter - RC Helicopters/ Airplanes Transmitter Receiver
Regular Price: $199.00
On Sale Now: $89.00
You save 55%
GENS ACE 5000mAh 50C 7.4V Hardcase Lipo Battery Pack ROAR Racing Approval (Direct)
Regular Price: $79.00
On Sale Now: $47.00
You save 41%
Sky RC Charger 6200 200W Multifunction LiPo/LiFe(1-6S) NiMH/NiCD(1-18S) DC Charger/Balancer
Regular Price: $84.95
On Sale Now: $44.95
You save 47%