ENIB 2023 : Les 7 erreurs : Différence entre versions
(→Code) |
|||
Ligne 42 : | Ligne 42 : | ||
==Code== | ==Code== | ||
<pre> | <pre> | ||
− | + | /* | |
+ | |||
+ | |||
+ | D1 mini | ||
+ | BROCHAGE | ||
+ | _________________ | ||
+ | / D1 mini \ | ||
+ | |[ ]RST TX[ ]| | ||
+ | |[ ]A0 -GPIO RX[ ]| | ||
+ | |[ ]D0-16 5-D1[ ]| SCL | ||
+ | |[ ]D5-14 4-D2[ ]| SDA | ||
+ | |[ ]D6-12 0-D3[ ]| | ||
+ | |[ ]D7-13 2-D4[ ]| LED_BUILTIN | ||
+ | |[ ]D8-15 GND[ ]| | ||
+ | |[ ]3V3 . 5V[ ]| | ||
+ | | +---+ | | ||
+ | |_______|USB|_______| | ||
+ | |||
+ | _______________ | ||
+ | |||
+ | 2 fois jaune | ||
+ | |||
+ | */ | ||
+ | |||
+ | |||
+ | |||
+ | int green=0; | ||
+ | int yellow=4; | ||
+ | int orange=2; | ||
+ | |||
+ | |||
+ | |||
+ | void setup() { | ||
+ | Serial.begin(9600); | ||
+ | |||
+ | pinMode(green, OUTPUT); | ||
+ | pinMode(yellow, OUTPUT); | ||
+ | pinMode(orange, OUTPUT); | ||
+ | |||
+ | |||
+ | } | ||
+ | |||
+ | void loop() { | ||
+ | |||
+ | digitalWrite(yellow, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(yellow, LOW); | ||
+ | delay(500); | ||
+ | digitalWrite(yellow, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(yellow, LOW); | ||
+ | delay(2000); | ||
+ | |||
+ | digitalWrite(orange, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(orange, LOW); | ||
+ | delay(2000); | ||
+ | |||
+ | digitalWrite(yellow, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(yellow, LOW); | ||
+ | delay(500); | ||
+ | digitalWrite(yellow, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(yellow, LOW); | ||
+ | delay(500); | ||
+ | digitalWrite(yellow, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(yellow, LOW); | ||
+ | delay(2000); | ||
+ | |||
+ | digitalWrite(green, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(green, LOW); | ||
+ | delay(500); | ||
+ | digitalWrite(green, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(green, LOW); | ||
+ | delay(2000); | ||
+ | |||
+ | digitalWrite(green, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(green, LOW); | ||
+ | delay(500); | ||
+ | digitalWrite(green, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(green, LOW); | ||
+ | delay(2000); | ||
+ | |||
+ | digitalWrite(green, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(green, LOW); | ||
+ | delay(2000); | ||
+ | |||
+ | digitalWrite(green, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(green, LOW); | ||
+ | delay(500); | ||
+ | digitalWrite(green, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(green, LOW); | ||
+ | delay(500); | ||
+ | digitalWrite(green, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(green, LOW); | ||
+ | delay(2000); | ||
+ | |||
+ | digitalWrite(orange, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(orange, LOW); | ||
+ | delay(500); | ||
+ | digitalWrite(orange, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(orange, LOW); | ||
+ | delay(500); | ||
+ | digitalWrite(orange, HIGH); | ||
+ | delay(500); | ||
+ | digitalWrite(orange, LOW); | ||
+ | delay(5000); | ||
+ | |||
+ | } | ||
</pre> | </pre> | ||
Version du 26 janvier 2023 à 15:49
Sommaire
Photo de l'équipe
Que fait ce projet ?
C'est un escape game centrée sur la langue des signes. Il faut se repérer à travers le puzzle de manière à trouver le mot caché. Du code cachée, à des séquences cachées il faut manœuvrer de manière subtile. Les leds sont de bons conseils.
Liste des composants
- Leds
- écran LCD
- interrupteur
- carte arduino
- cables
- images
Avancé du projet
Pour décrypter les lettres du code, le joueur devra comprendre des lettres en langues des signes (Un documentation est donné mais par forcément l'ordre ... )
Décor
Afin de placer un décor dans le style, nous avons créer sur inkskate nos propres images. Grâce à la découpe laser, nous avons pu le mettre sur une planche de bois. Les dessins n'ont pas été choisis par hasard, ils ont un rapport avec le mot à trouver.
Ici se trouve le fichier pour la réserve de carte
Ici se trouve le fichier du ring de box
Code
/* D1 mini BROCHAGE _________________ / D1 mini \ |[ ]RST TX[ ]| |[ ]A0 -GPIO RX[ ]| |[ ]D0-16 5-D1[ ]| SCL |[ ]D5-14 4-D2[ ]| SDA |[ ]D6-12 0-D3[ ]| |[ ]D7-13 2-D4[ ]| LED_BUILTIN |[ ]D8-15 GND[ ]| |[ ]3V3 . 5V[ ]| | +---+ | |_______|USB|_______| _______________ 2 fois jaune */ int green=0; int yellow=4; int orange=2; void setup() { Serial.begin(9600); pinMode(green, OUTPUT); pinMode(yellow, OUTPUT); pinMode(orange, OUTPUT); } void loop() { digitalWrite(yellow, HIGH); delay(500); digitalWrite(yellow, LOW); delay(500); digitalWrite(yellow, HIGH); delay(500); digitalWrite(yellow, LOW); delay(2000); digitalWrite(orange, HIGH); delay(500); digitalWrite(orange, LOW); delay(2000); digitalWrite(yellow, HIGH); delay(500); digitalWrite(yellow, LOW); delay(500); digitalWrite(yellow, HIGH); delay(500); digitalWrite(yellow, LOW); delay(500); digitalWrite(yellow, HIGH); delay(500); digitalWrite(yellow, LOW); delay(2000); digitalWrite(green, HIGH); delay(500); digitalWrite(green, LOW); delay(500); digitalWrite(green, HIGH); delay(500); digitalWrite(green, LOW); delay(2000); digitalWrite(green, HIGH); delay(500); digitalWrite(green, LOW); delay(500); digitalWrite(green, HIGH); delay(500); digitalWrite(green, LOW); delay(2000); digitalWrite(green, HIGH); delay(500); digitalWrite(green, LOW); delay(2000); digitalWrite(green, HIGH); delay(500); digitalWrite(green, LOW); delay(500); digitalWrite(green, HIGH); delay(500); digitalWrite(green, LOW); delay(500); digitalWrite(green, HIGH); delay(500); digitalWrite(green, LOW); delay(2000); digitalWrite(orange, HIGH); delay(500); digitalWrite(orange, LOW); delay(500); digitalWrite(orange, HIGH); delay(500); digitalWrite(orange, LOW); delay(500); digitalWrite(orange, HIGH); delay(500); digitalWrite(orange, LOW); delay(5000); }