Modifications

Sauter à la navigation Sauter à la recherche
4 881 octets ajoutés ,  14 octobre 2013 à 14:34
Ligne 18 : Ligne 18 :     
La librairie "Bridge" (librairie "pont" de liaison) facilite la communication entre les deux processeurs, permettant au sketch Arduino d'exécuter des scripts Shell, communiquer avec les interfaces réseaux et recevoir des informations depuis le processeur AR9331. L'hôte USB, interfaces réseaux et carte SD ne sont pas connectés sur le processeur 32U4, mais le processeur AR9331 et la librairie Bridge permettent à Arduino d'accéder à ces périphériques.
 
La librairie "Bridge" (librairie "pont" de liaison) facilite la communication entre les deux processeurs, permettant au sketch Arduino d'exécuter des scripts Shell, communiquer avec les interfaces réseaux et recevoir des informations depuis le processeur AR9331. L'hôte USB, interfaces réseaux et carte SD ne sont pas connectés sur le processeur 32U4, mais le processeur AR9331 et la librairie Bridge permettent à Arduino d'accéder à ces périphériques.
 +
 +
{{ARDImage|Arduino-Yun-Pres10.jpg}}<small> Traduction: MCHobby.be</small>
 +
 +
* '''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 [http://arduino.cc/en/Reference/AnalogReference analogReference()] function.
 +
* '''AREF'''. Reference voltage for the analog inputs. Used with [http://arduino.cc/en/Reference/AnalogReference 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/ 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.
 +
 +
{{ARDImage|Arduino-Yun-Pres11.jpg}}<small> Traduction: MCHobby.be</small>
 +
 +
See also the [http://arduino.cc/en/Hacking/PinMapping32u4 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. The ATmega32U4 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 [[Arduino Yun-Librairie|Bridge library]].
 +
 +
A [[ARDLib-SoftwareSerial|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 [[ARDLib-Wire|documentation for details]]. For SPI communication, use the [[ARDLib-SPI|SPI library]].
 +
 +
The Yún appears as a generic keyboard and mouse, and can be programmed to control these input devices using the [[ARDLib-Keyboard|Keyboard 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 [[Arduino Yun-Librairie|Bridge library]]. To configure the interfaces, you can access the network control panel as described in the [[Arduino Yun-Guide|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  [[Arduino Yun-PackageManager|package manager]].
    
== Détails techniques ==
 
== Détails techniques ==
29 917

modifications

Menu de navigation