HL 21 Le cube : Différence entre versions

De Les Fabriques du Ponant
Aller à : navigation, rechercher
(Les images)
(48 révisions intermédiaires par 2 utilisateurs non affichées)
Ligne 3 : Ligne 3 :
 
==Le Cube==
 
==Le Cube==
  
 +
<br>
 +
'''Sources d’inspiration :'''
  
Sources d’inspiration :
+
https://www.instructables.com/Concrete-LED-Light-Cube/
  
https://www.instructables.com/Concrete-LED-Light-Cube/
 
 
https://www.instructables.com/LED-Cube-Light/
 
https://www.instructables.com/LED-Cube-Light/
 +
 
https://www.instructables.com/Awesome-led-cube/
 
https://www.instructables.com/Awesome-led-cube/
  
 +
https://www.teachmemicro.com/1-3-i2c-oled-arduino-esp8266-tutorial/
  
 +
<br>
 +
==membres du projet==
 +
'''Participants''' : Yann, Patrick, Pierre, Olivier
  
Participants : Yann, Patrick, Pierre, Olivier
+
<br>
 +
'''Experte conseil''' : Lisa et Pierre pour la bonne bibliothèque pour l'Oled
 +
<br>
  
 +
==prototype qu'on souhaite réaliser ==
 
Sur un idée de Yann, nous partons sur l’idée d’un cube qui va aider les enfants à prendre connaissance du rythme de la journée tel qu’il est fixé par les adultes.
 
Sur un idée de Yann, nous partons sur l’idée d’un cube qui va aider les enfants à prendre connaissance du rythme de la journée tel qu’il est fixé par les adultes.
 +
 
L’idée est de fournir des repères aux enfants en toute autonomie.
 
L’idée est de fournir des repères aux enfants en toute autonomie.
 +
 
En fonction des temps de la journée le cube éclairera d’une certaine couleur.
 
En fonction des temps de la journée le cube éclairera d’une certaine couleur.
  
 
Les temps de la journée sont :
 
Les temps de la journée sont :
  
     • Accueil arrivée
+
     • 7h30 : Accueil arrivée / jaune
     • Rangement  
+
     • 9h30 : Rangement rassemblement / blanc
     • Activité
+
     • 9h45 : Activité / Rouge
     • Rangement rassemblement
+
     • 11h30 : Rangement rassemblement / blanc
     • Repas  
+
     • 11h45 : Repas / vert
     • Temps sieste
+
    • 13h00 : Rangement rassemblement / blanc
     • Activité
+
     • 13h20 : Temps sieste / bleu
     • Goûter
+
     • 15h30 : Lever sieste / cyan
     • Accueil départ
+
    • 15h45 : Rassemblement / blanc
 +
     • 16h00 : Goûter / vert
 +
    • 16h30 : Activité temps libre / Rouge
 +
     • 17h00 : Accueil départ / orange
  
Liste de matériel :
+
==Liste du matériel==
  
 
* feuille de calque
 
* feuille de calque
* led patate
+
* led blanche diamètre 10mm
 
* interrupteur
 
* interrupteur
* wemos
+
* wemos D1 mini https://www.wemos.cc/en/latest/d1/d1_mini.html
* led rgb
+
* ruban led rgb WS2812
 
* batterie 18650
 
* batterie 18650
 
* shield batterie
 
* shield batterie
 
* clock shield
 
* clock shield
* ecran
+
* ecran oled 1.3"
 
* bois picto
 
* bois picto
  
to do
+
==Réalisation==
interface web
 
 
 
 
 
<pre>
 
/**
 
    Rework par 071V13R au HP 21 @Fab à Brest
 
 
 
  The MIT License (MIT)
 
 
 
  Copyright (c) 2018 by ThingPulse, Daniel Eichhorn
 
  Copyright (c) 2018 by Fabrice Weinberg
 
 
 
  Permission is hereby granted, free of charge, to any person obtaining a copy
 
  of this software and associated documentation files (the "Software"), to deal
 
  in the Software without restriction, including without limitation the rights
 
  to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 
  copies of the Software, and to permit persons to whom the Software is
 
  furnished to do so, subject to the following conditions:
 
 
 
  The above copyright notice and this permission notice shall be included in all
 
  copies or substantial portions of the Software.
 
 
 
  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 
  IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 
  FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 
  SOFTWARE.
 
 
 
  ThingPulse invests considerable time and money to develop these open source libraries.
 
  Please support us by buying our products (and not the clones) from
 
  https://thingpulse.com
 
 
 
  Tuto pour le wemos : https://www.teachmemicro.com/1-3-i2c-oled-arduino-esp8266-tutorial/
 
  attention inverser SDA / SDK
 
 
 
*/
 
 
 
// Include the correct display library
 
 
 
// For a connection via I2C using the Arduino Wire include:
 
#include <Wire.h>              // Only needed for Arduino 1.6.5 and earlier
 
#include"SH1106.h" // WEMOS
 
 
 
// Logo icone image
 
#include "sieste.h"
 
#include "activite.h"
 
#include "arrivee.h"
 
#include "gouter.h"
 
#include "repas.h"
 
#include "depart.h"
 
#include "rangement.h"
 
 
 
 
 
// Initialize the OLED display using Arduino Wire:
 
SH1106 display(0x3C,D1,D2); //WEMOS attenion inversion branchement par rapport au tuto
 
 
 
void setup() {
 
  Serial.begin(115200);
 
  Serial.println();
 
 
 
  // Initialising the UI will init the display too.
 
  display.init();
 
  //display.flipScreenVertically();
 
  Serial.print ("Fin du setup");
 
 
 
}
 
 
 
void loop() {
 
 
 
  // clear the display
 
 
 
  display.clear();
 
   
 
// routine de lancement
 
 
 
// affichage de "Bonjour"
 
  display.setTextAlignment(TEXT_ALIGN_LEFT);
 
  display.setFont(ArialMT_Plain_16);
 
  display.drawString(0, 0, "Bonjour");
 
  display.display();
 
  delay (1000);
 
  display.clear();
 
 
 
// affichage de "la journée commence bien avec le Cube"
 
  display.setFont(ArialMT_Plain_10);
 
  display.setTextAlignment(TEXT_ALIGN_LEFT);
 
  display.drawStringMaxWidth(0, 0, 128,"La journée commence bien avec le Cube." );
 
  display.display();
 
  delay (1000);
 
  display.clear();
 
 
 
// affichage de "c'est parti"
 
  display.setFont(ArialMT_Plain_10);
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(64, 22, "C'est parti.");
 
  display.display();
 
  delay (1000);
 
  display.clear();
 
 
 
// phase d'accueil
 
 
 
for (int t=0; t<100; t++)
 
{
 
  display.drawXbm(45,0, arrivee_width, arrivee_height, arrivee_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
 
 
// phase rangement rassemblement
 
 
 
for (int t=0; t<100; t++)
 
{
 
  display.drawXbm(48,0, rangement_width, rangement_height, rangement_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
 
 
// phase d activité
 
 
 
for (int t=0; t<100; t++)
 
{
 
  display.drawXbm(50,0, activite_width, activite_height, activite_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
 
 
// phase rangement rassemblement
 
 
 
for (int t=0; t<100; t++)
 
{
 
  display.drawXbm(48,0, rangement_width, rangement_height, rangement_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
 
 
// phase de repas
 
 
 
for (int t=0; t<100; t++)
 
{
 
  display.drawXbm(50,0, repas_width, repas_height, repas_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
 
 
// phase rangement rassemblement
 
 
 
for (int t=0; t<100; t++)
 
{
 
  display.drawXbm(48,0, rangement_width, rangement_height, rangement_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
 
 
// phase de sieste
 
  
for (int t=0; t<100; t++)
+
[[image:LeCube bb.png|600px]]
{
+
Le schéma électrique du Cube
  display.drawXbm(45,0, sieste_width, sieste_height, sieste_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
  
// phase rangement rassemblement
+
[[image:PiloterLeCube.png|300px]]
 +
L'interface web permet de gérer la luminosité du cube
  
for (int t=0; t<100; t++)
 
{
 
  display.drawXbm(48,0, rangement_width, rangement_height, rangement_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
  
// phase de gouter
+
Le code de l'application : [[Fichier:LeCube.zip]]
  
for (int t=0; t<100; t++)
+
Le cube est découpé et dépoli au laser (après un test sur du carton).
{
 
  display.drawXbm(45,0, gouter_width, gouter_height, gouter_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
  
// phase d activité
+
https://www.wiki.lesfabriquesduponant.net/images/c/c2/Decoupe%22_plexi_130x130x130.pdf
  
for (int t=0; t<100; t++)
+
https://www.wiki.lesfabriquesduponant.net/images/c/c4/Decoupe_embase_MDF135x135x60_3mm.pdf
{
 
  display.drawXbm(50,0, activite_width, activite_height, activite_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
  
// phase de depart
+
La base est modélisée sous inkscape testée sur carton puis découpée sur du mdf.
  
for (int t=0; t<100; t++)
+
Ce qu'il nous/vous reste à faire :
{
+
Interface web à améliorer
  display.drawXbm(35,0, depart_width, depart_height, depart_bits);
 
  display.drawProgressBar(5, 50, 120, 10, t);
 
  int progress = t;
 
  display.setTextAlignment(TEXT_ALIGN_CENTER);
 
  display.drawString(65, 32, String(progress) + "%");
 
  display.display();
 
  delay (25);
 
  display.clear();
 
}
 
}
 
</pre>
 
  
==Le Cube==
+
==Les images ==
 
[[Fichier:HL 21 Le cube.JPG|200px|thumb|left|tableau lowtech]]
 
[[Fichier:HL 21 Le cube.JPG|200px|thumb|left|tableau lowtech]]
 
[[Fichier:Activite.png|200px|thumb|left|icon activité]]
 
[[Fichier:Activite.png|200px|thumb|left|icon activité]]
Ligne 310 : Ligne 88 :
 
[[Fichier:Trio.jpg|200px|thumb|left|icon arrivee]icon rangement/rassemblement]]
 
[[Fichier:Trio.jpg|200px|thumb|left|icon arrivee]icon rangement/rassemblement]]
 
[[Fichier:Sieste.jpg|200px|thumb|left|icon sieste]]
 
[[Fichier:Sieste.jpg|200px|thumb|left|icon sieste]]
 +
[[Fichier:CubeLed.JPG|200px|thumb|left|CubeLed]]
 +
[[Fichier:Basecube.JPG|200px|thumb|left|Basecube]]
  
 +
[[Fichier:LeCubeInterne.jpg|200px|thumb|left|Intérieur du Cube]]
 +
[[Fichier:LeCubeExterne.jpg|200px|thumb|left|Extérieur du Cube]]
  
 
[[Catégorie:HP21 Lumière]]
 
[[Catégorie:HP21 Lumière]]
 
[[Catégorie:Hackathon Pédagogique]]
 
[[Catégorie:Hackathon Pédagogique]]

Version du 16 décembre 2021 à 12:02

HP 21 lumière : Le cube

Le Cube


Sources d’inspiration :

https://www.instructables.com/Concrete-LED-Light-Cube/

https://www.instructables.com/LED-Cube-Light/

https://www.instructables.com/Awesome-led-cube/

https://www.teachmemicro.com/1-3-i2c-oled-arduino-esp8266-tutorial/


membres du projet

Participants : Yann, Patrick, Pierre, Olivier


Experte conseil : Lisa et Pierre pour la bonne bibliothèque pour l'Oled

prototype qu'on souhaite réaliser

Sur un idée de Yann, nous partons sur l’idée d’un cube qui va aider les enfants à prendre connaissance du rythme de la journée tel qu’il est fixé par les adultes.

L’idée est de fournir des repères aux enfants en toute autonomie.

En fonction des temps de la journée le cube éclairera d’une certaine couleur.

Les temps de la journée sont :

   • 7h30 : Accueil arrivée / jaune
   • 9h30 : Rangement rassemblement / blanc
   • 9h45 : Activité / Rouge
   • 11h30 : Rangement rassemblement / blanc
   • 11h45 : Repas / vert
   • 13h00 : Rangement rassemblement / blanc
   • 13h20 : Temps sieste / bleu
   • 15h30 : Lever sieste / cyan
   • 15h45 : Rassemblement / blanc
   • 16h00 : Goûter / vert
   • 16h30 : Activité temps libre / Rouge
   • 17h00 : Accueil départ / orange

Liste du matériel

Réalisation

LeCube bb.png Le schéma électrique du Cube

PiloterLeCube.png L'interface web permet de gérer la luminosité du cube


Le code de l'application : Fichier:LeCube.zip

Le cube est découpé et dépoli au laser (après un test sur du carton).

https://www.wiki.lesfabriquesduponant.net/images/c/c2/Decoupe%22_plexi_130x130x130.pdf

https://www.wiki.lesfabriquesduponant.net/images/c/c4/Decoupe_embase_MDF135x135x60_3mm.pdf

La base est modélisée sous inkscape testée sur carton puis découpée sur du mdf.

Ce qu'il nous/vous reste à faire : Interface web à améliorer

Les images

tableau lowtech
icon activité
icon gouter
icon arrivee
icon depart
icon repas
icon arrivee]icon rangement/rassemblement
icon sieste
CubeLed
Basecube
Intérieur du Cube
Extérieur du Cube