issue87:arduino
Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
issue87:arduino [2014/10/30 16:08] – créée andre_domenech | issue87:arduino [2015/01/07 16:09] (Version actuelle) – auntiee | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | Several months ago, I took the plunge and decided to risk buying a couple of cheap Arduino Nanos from China. These are still Arduinos – but just not from the original designers. They were listed on eBay for £3 each so I went for three of them. Apparently keeping it under £15 means no import tax, which turned out to be true. | + | **Several months ago, I took the plunge and decided to risk buying a couple of cheap Arduino Nanos from China. These are still Arduinos – but just not from the original designers. They were listed on eBay for £3 each so I went for three of them. Apparently keeping it under £15 means no import tax, which turned out to be true. |
The Nanos arrived complete with a dinky USB cable. I hooked it up to my laptop and tried running the blinking LED sketch. Error. Now I was worried. I feared the worst in that either they were damaged or just plain didn’t work. Then I realised that I hadn’t changed the Arduino model in the IDE menu. Oops! | The Nanos arrived complete with a dinky USB cable. I hooked it up to my laptop and tried running the blinking LED sketch. Error. Now I was worried. I feared the worst in that either they were damaged or just plain didn’t work. Then I realised that I hadn’t changed the Arduino model in the IDE menu. Oops! | ||
- | With the LED sketch uploaded and running I now knew the Nanos were working. Great! | + | With the LED sketch uploaded and running I now knew the Nanos were working. Great!** |
- | The plan for one Nano was to realise my dream of having indicators on my bicycle. First I dug out the old sketch for the spaceship panel which covered holding down a button to flash an LED. I removed the unnecessary code and comments and now had a Nano with one flashing LED when a button was held down. I now duplicated the button, LED and wiring and voila! Bicycle indicators! | + | Il y a plusieurs mois, j'ai sauté le pas et j'ai pris le risque d' |
+ | |||
+ | Les Nanos sont arrivés complets avec un câble USB miniature. Je l'ai connecté à mon portable et j'ai essayé de lancer la séquence de la LED clignotante. Erreur. Du coup, j' | ||
+ | |||
+ | Après avoir téléchargé la séquence de la LED et l' | ||
+ | |||
+ | **The plan for one Nano was to realise my dream of having indicators on my bicycle. First I dug out the old sketch for the spaceship panel which covered holding down a button to flash an LED. I removed the unnecessary code and comments and now had a Nano with one flashing LED when a button was held down. I now duplicated the button, LED and wiring and voila! Bicycle indicators! | ||
Note that the Nano slots directly into the breadboard unlike the Uno which sits separately. | Note that the Nano slots directly into the breadboard unlike the Uno which sits separately. | ||
Ligne 13: | Ligne 19: | ||
Obviously, this would now leave the breadboard and be physically soldered onto veroboard with wires running the length of the bicycle. But that’s for me to figure out later. | Obviously, this would now leave the breadboard and be physically soldered onto veroboard with wires running the length of the bicycle. But that’s for me to figure out later. | ||
- | My (butchered) code is at: http:// | + | My (butchered) code is at: http:// |
+ | |||
+ | Pour un Nano, mon plan était de réaliser mon rêve d' | ||
+ | |||
+ | Notez que le Nano est inséré directement sur la platine contrairement au Uno qui est à part. | ||
+ | |||
+ | Je pensais modifier le code pour qu'une pression rende la LED clignotante puis qu'une autre l' | ||
+ | |||
+ | Bien entendu, tout cela devrait quitter la platine pour être soudé physiquement sur du Veroboard avec des fils sur toute la longueur du vélo. Mais c'est à moi de régler ça plus tard. | ||
+ | |||
+ | Mon code (bâclé) est sur : http:// |
issue87/arduino.1414681735.txt.gz · Dernière modification : 2014/10/30 16:08 de andre_domenech