Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentes Révision précédente Prochaine révision | Révision précédente | ||
| 
                    projets:e_fabrik_2018 [18/05/2018 20:08] Mathieu Hery [Besoins]  | 
                
                    projets:e_fabrik_2018 [20/05/2019 19:08] (Version actuelle) Mathieu Hery  | 
            ||
|---|---|---|---|
| Ligne 1: | Ligne 1: | ||
| - | ====== Projets E-Fabrik' ====== | + | ====== Projets E-Fabrik 2018 ====== | 
| ==== Résumé ==== | ==== Résumé ==== | ||
| Ligne 21: | Ligne 21: | ||
| ==== David : Horloge à couleur ==== | ==== David : Horloge à couleur ==== | ||
| - | Un objet/horloge qui indique les moments de la journée avec une couleur plutôt qu'en affichant l'heure | + | Un objet/horloge qui indique les moments de la journée avec une couleur : | 
| + | |||
| + | *6h - 12h : Jaune | ||
| + | *12h - 14h : Vert | ||
| + | *14h - 17h : Bleu | ||
| + | *17h - 20h : Rouge | ||
| + | *20h - 00h : Blanc | ||
| === Apprentis === | === Apprentis === | ||
| Ligne 29: | Ligne 35: | ||
| {{projets:oeuf_horloge.png?200}} | {{projets:oeuf_horloge.png?200}} | ||
| + | {{projets:horloge_couleur.jpg?200}} | ||
| + | {{projets:horloge_couleur_cablage.png?400}} | ||
| === Besoins === | === Besoins === | ||
| Ligne 39: | Ligne 47: | ||
| === Arduino === | === Arduino === | ||
| + | // | ||
| + | Attention, si besoin de réinitialiser l'heure dans le chip DS3231 il faut impérativement utiliser l'heure d'été pour que le code fonctionne correctement.// | ||
| ++++ Code Arduino | | ++++ Code Arduino | | ||
| Ligne 44: | Ligne 54: | ||
| /* Color Clock | /* Color Clock | ||
| E-Fabrik' 2018 - Pop [lab] | E-Fabrik' 2018 - Pop [lab] | ||
| + | |||
| + | A clock-like object changes color according to which part of the day it is. | ||
| ######## | ######## | ||
| WIRING : | WIRING : | ||
| ######## | ######## | ||
| - | Plug a DS3231 chip DS3231 on 5V/GND | + | Plug a DS3231 chip on 5V/GND | 
| SDA > A4 | SDA > A4 | ||
| SCL > A5 | SCL > A5 | ||
| + | |||
| + | Use DS3231 lib examples to set the time. | ||
| + | Warning : Time must be set using summer-time (no daylight saving) for this code to work properly. | ||
| Ledstrips on 5V/GND | Ledstrips on 5V/GND | ||
| Ligne 60: | Ligne 75: | ||
| --> LOW : Winter time, daylight saving (-1h) | --> LOW : Winter time, daylight saving (-1h) | ||
| - | Last update : 18/05/2018 | + | Last update : 24/05/2018 - mh8 | 
| */ | */ | ||
| Ligne 166: | Ligne 181: | ||
| else { | else { | ||
| - | //do nothing | + | color = ledstrip.Color(0, 0, 0); | 
| + | lightLeds();  | ||
| } | } | ||
| Ligne 175: | Ligne 191: | ||
| void lightLeds() { | void lightLeds() { | ||
| - | for (uint16_t i = 0; i < ledstrip.numPixels(); i++) { | + | for (uint8_t i = 0; i < ledstrip.numPixels(); i++) { | 
| ledstrip.setPixelColor(i, color); | ledstrip.setPixelColor(i, color); | ||
| ledstrip.show(); | ledstrip.show(); | ||
| } | } | ||
| } | } | ||
| + | |||
| + | |||
| </code> | </code> | ||
| ++++ | ++++ | ||
| + | === Fichiers === | ||
| + | *[[http://poplab.maisonpop.fr/ressources/3D/oeuf_OK.123dx|Oeuf, fichier 123 Design]] | ||
| + | *[[http://poplab.maisonpop.fr/ressources/3D/oeuf_OK.stl|Oeuf, fichier STL]] | ||
| + | *[[http://poplab.maisonpop.fr/ressources/3D/socle.123dx|Socle, fichier 123 Design]] | ||
| + | *[[http://poplab.maisonpop.fr/ressources/3D/socle.stl|Socle, fichier STL]] | ||
