Différences
Ci-dessous, les différences entre deux révisions de la page.
Prochaine révision | Révision précédente | ||
projets:electronic_wind_bell:start [2020/10/29 11:19] 193.50.164.1 Créé depuis le formulaire creerunprojet |
projets:electronic_wind_bell:start [2020/10/30 11:41] (Version actuelle) 92.184.102.128 [Références et liens] |
||
---|---|---|---|
Ligne 10: | Ligne 10: | ||
Case : | Case : | ||
- | Nowind : no mp3 reading | + | * Nowind : no mp3 reading |
- | Little wind : few mp3 play - low audio volume | + | |
- | Medium wind : more mp3 play - medium audio volume | + | |
- | Little wind : allmp3 play - max audio volume | + | |
{{projets: | {{projets: | ||
==== Références et liens ==== | ==== Références et liens ==== | ||
- | * Notez ici les références artistiques et techniques, ou autres influences | + | * Maya Dunietz, " |
- | * | + | * Erik Samakh |
- | * | + | * Eol force , Impala Utopia |
===== Notes techniques et matériaux ===== | ===== Notes techniques et matériaux ===== | ||
- | Liste de matériel et composants nécessaires | + | * Arduino |
+ | * wind sensor | ||
+ | * mp3 player (arduino) +sd https:// | ||
+ | * amplifier | ||
+ | * Speakers | ||
+ | * Battery | ||
+ | |||
+ | |||
+ | ===== Codes ===== | ||
+ | * Anemometre branché sur A0 et GND. | ||
+ | * Lecteur mp3 - RX TX sur d11, | ||
+ | ===== Code pour serial mp3 player | ||
+ | |||
+ | <code c+ ># | ||
+ | #define TX 11 // tx en fait | ||
+ | #define RX 10 // rx en fait | ||
+ | SerialMP3Player mp3(RX, | ||
+ | |||
+ | // the setup routine runs once when you press reset: | ||
+ | void setup() { | ||
+ | // initialize serial communication at 9600 bits per second: | ||
+ | Serial.begin(9600); | ||
+ | mp3.begin(9600); | ||
+ | delay(500); | ||
+ | |||
+ | mp3.sendCommand(CMD_SEL_DEV, | ||
+ | delay(500); | ||
+ | } | ||
+ | |||
+ | // the loop routine runs over and over again forever: | ||
+ | void loop() { | ||
+ | // read the input on analog pin 0: | ||
+ | float sensorValue = analogRead(A0); | ||
+ | // print out the value you read: | ||
+ | |||
+ | Serial.println(sensorValue); | ||
+ | delay(1); | ||
+ | |||
+ | if (sensorValue > 3) { | ||
+ | | ||
+ | mp3.setVol(sensorValue/ | ||
+ | delay(10); | ||
+ | } | ||
+ | else { | ||
+ | | ||
+ | | ||
+ | } | ||
+ | } | ||
+ | </ | ||
===== Photos et médias===== | ===== Photos et médias===== |