AdaFruit LOL Shield Programmation

De MCHobby - Wiki
Révision datée du 2 avril 2012 à 12:11 par Admin (discussion | contributions) (Page créée avec « First step is to be able to program the Arduino. == Diavolino == Diavolino est une plateforme dérivée d'Ardiono. L'Arduino recommandé par Jimmie P Rodgers pour son Shiel... »)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Sauter à la navigation Sauter à la recherche

First step is to be able to program the Arduino.

Diavolino

Diavolino est une plateforme dérivée d'Ardiono.

L'Arduino recommandé par Jimmie P Rodgers pour son Shield LoL est le Diavolino from Evil Mad Science, but the official one, or any of the clones that have the same footprint will work just fine. You will need to download the Arduino software on their website and get the FTDI driver installed (comes with the software). If you are using a Diavolino, then I have (Jimmie P Rodgers) special instructions up here.

Arduino

Once you have the Arduino software up and running, you should make sure that you can upload a sketch to it. Try to get something like “Blink” running on it first. After you’ve programmed your Arduino, go and grab the LoL Shield library from the google code project. You’ll need to unzip the file into your libraries folder. That will be located in the Arduino sketch folder that is created when you run it for the first time. There is some information on the Arduino site on how to install libraries located here.

Exemples

Once that is installed, you should find the LoL Shield under Examples. Select Basic_Test and hopefully all 126 of your LEDs light up appropriately! If some LEDs do not light up, check the solder joints and just re-heat them. Also look for any joints that may be connected with stray blobs of solder or leads. Also make sure that you are not shorting against the USB port. A bit of electrical tape will keep that from being a problem.

If you are seeing LEDs light up that shouldn’t be, then there is a short somewhere on the board. There is also an LED on most Arduinos connected to pin13, and drains to ground. This causes ghosting on some of the LEDs. I usually just cut the resistor out, because it is easily replaced later. This will be up to you though.