Modifications

Sauter à la navigation Sauter à la recherche
4 736 octets ajoutés ,  11 juillet 2013 à 10:46
Ligne 60 : Ligne 60 :  
=== Instructions for Mac OS X ===
 
=== Instructions for Mac OS X ===
    +
The first time you plug an Esplora into a Mac, the "Keyboard Setup Assistant" will launch. There's nothing to configure with the Esplora, so you can close this dialogue by clicking the red button in the top left of the window.
   −
    The first time you plug an Esplora into a Mac, the "Keyboard Setup Assistant" will launch. There's nothing to configure with the Esplora, so you can close this dialogue by clicking the red button in the top left of the window.  
+
[[Fichier:Ard-Esplora-Demarrer-Install-10.jpg]]
 +
 
 +
== Instructions for Windows ==
 +
 
 +
The following instructions are for Windows 7. They are valid also for Windows XP, with small differences in the dialog windows.
 +
 
 +
* Plug in your board and wait for Windows to begin its driver installation process. If the installer does not launch automatically, navigate to the Windows Device Manager (Start>Control Panel>Hardware) and find the Arduino Esplora listing. Right click and choose '''Update driver'''.
 +
 
 +
[[Fichier:Ard-Esplora-Demarrer-Install-20.jpg]]
 +
 
 +
* At the next screen, choose "Browse my computer for driver software", and click '''Next'''.
 +
 
 +
[[Fichier:Ard-Esplora-Demarrer-Install-21.jpg]]
 +
 
 +
* Click the '''Browse'''... button. Another dialog appears: navigate to the folder with the Arduino software that you just downloaded. Select the '''drivers''' folder an click '''OK''', then click '''Next'''.
 +
 
 +
[[Fichier:Ard-Esplora-Demarrer-Install-22.jpg]]
 +
 
 +
* You will receive a notification that the board has not passed Windows Logo testing. Click on the button '''Continue Anyway'''.
 +
 
 +
[[Fichier:Ard-Esplora-Demarrer-Install-23.jpg]]
 +
 
 +
* After a few moments, a window will tell you the wizard has finished installing software for Arduino Esplora. Press the '''Close''' button.
 +
 
 +
=== Instructions for Linux ===
 +
 
 +
There is no need to install drivers for Ubuntu 12.04.
 +
 
 +
== Programming the board ==
 +
 
 +
=== Démarrer l'environnement ===
 +
Double-click the Arduino application. (Note: if the Arduino software loads in the wrong language, you can change it in the preferences dialog. See the [http://arduino.cc/en/Guide/Environment environment page] sur Arduino.cc for details.)
 +
 
 +
=== Open the Esplora Blink example ===
 +
 
 +
Open the LED Blink example sketch: File > Examples > Esplora > Beginners > EsploraBlink.
 +
 
 +
'''Note: If you do not see the EsploraBlink example, you may need to update the Esplora library'''. To do this, quit the Arduino IDE and download this [http://arduino.cc/en/uploads/Guide/Esplora.zip .zip file].  Look in your Documents folder (on OSX or Ubuntu) or My Documents folder (on Windows) for the Arduino sketches folder. It will be called "Arduino" and there should be a folder inside called "libraries". If not, create a libraries folder inside the sketches folder. Move the Esplora folder into the libraries folder. Then re-start the Arduino IDE. Now you should be able to open the EsploraBlink sketch as described above.
 +
 
 +
=== Configure Arduino for Esplora ===
 +
 
 +
Since the Arduino IDE is used for many different Arduino boards, you need to tell it that you're working with the Esplora. Open the '''Tools > Board''' menu and choose '''Arduino Esplora'''.
 +
 
 +
=== Select the right USB port ===
 +
 
 +
The Arduino IDE needs to know which of your USB ports the Esplora is connected to. The '''Tools > Serial''' menu lists the available ports:
 +
 
 +
* if only one item is shown, click on that one;
 +
 
 +
* if two or more are shown, you can disconnect the Esplora and re-open the menu; the entry that disappears should be the Esplora board. Reconnect the board and select that serial port.
 +
 
 +
=== Upload the program ===
 +
 
 +
Now, simply click the "Upload" button in the environment. Wait a few seconds - you should see the RX and TX leds on the board flashing. If the upload is successful, the message "Done uploading." will appear in the status bar of the software.
 +
 
 +
A few seconds after the upload finishes, you should see the yellow RGB LED on the board start to blink, changing color from red to green to blue to yellow to cyan to magenta to white. If it does, congratulations! You've gotten Esplora up and running.  
 +
 
 +
== Change the RGB LED ==
 +
 
 +
Now that you've verified that the Esplora can connect to your computer and you can upload code, it's time to try a few of its functions. The Esplora has input sensors, which you get information from using read commands, and output actuators, which you control using write commands. The RGB LED and the buzzer are the two main output actuators. The joystick, linear potentiometer slider, microphone, accelerometer, temperature sensor, and pushbuttons are the input sensors. You can also add your own inputs and outputs using the TinkerKit input and output connectors.
 +
 
 +
In this example, you'll get the RGB LED to blink each of its colors once, then all three at the same time. The Esplora library, included at the beginning of the sketch, has a number of methods that will simplify the code you need to use.
 +
 
 +
The sketch below is similar to the EsploraBlink example, but controls the LED in a slightly different way. You can either use the Esplora.writeRGB() command, and give it red, green, and blue values like so:
 +
 
 +
<nowiki>Esplora.writeRGB(255, 255, 255);  // sets red, green and blue all to full brightness</nowiki>
    
== Où acheter ==
 
== Où acheter ==
29 836

modifications

Menu de navigation