Wiki

Reso-nance numérique | Arts et cultures libres

Outils du site


projets:tourne-data:accueil

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
projets:tourne-data:accueil [2020/09/07 13:06]
oyomaker [Description]
projets:tourne-data:accueil [2020/09/07 13:22] (Version actuelle)
oyomaker [Description]
Ligne 37: Ligne 37:
  
 ===== Matériaux ===== ===== Matériaux =====
-Liste de matériel et composants nécessaires.+Liste de course a faire avant septembre pour avoir de quoi decliner 5 modèles fin septembre : 
 +  - [[https://www.ecosia.org/search?q=5V-12V+DC+Brushless+Motor+Driver+Board&addon=firefox&addonversion=4.0.4|5V-12V DC Brushless Motor Driver Board]] ou [[https://www.amazon.fr/smallJUN-5V-12V-Contr%C3%B4leur-Vitesse-Commande/dp/B083J9DGKF/ref=sr_1_fkmr1_2?__mk_fr_FR=%C3%85M%C3%85%C5%BD%C3%95%C3%91&dchild=1&keywords=DC+5V-12V+2A+15W+Brushless+Motor+Speed+Controller&qid=1593985176&sr=8-2-fkmr1 |modèle chez amazon]] 
 +  - [[https://fr.rs-online.com/web/p/led/8106705/?relevancy-data=636F3D3126696E3D4931384E525353746F636B4E756D626572266C753D656E266D6D3D6D61746368616C6C26706D3D5E2828282872737C5253295B205D3F293F285C647B337D5B5C2D5C735D3F5C647B332C347D5B705061415D3F29297C283235285C647B387D7C5C647B317D5C2D5C647B377D2929292426706F3D3126736E3D592673723D2673743D52535F53544F434B5F4E554D4245522677633D4E4F4E45267573743D3831302D36373035267374613D3831303637303526&searchHistory=%7B%22enabled%22%3Atrue%7D|LED Blanc, Traversant, 5 mm (T-1 3/4), 4 V - 15°]] 
 +  - [[https://www.ebay.fr/itm/224069862049|Mini panneau solaire 0.5 V 100 mA]]
  
-===== Tutoriel ===== +=== todo==
-Guide pas à pas pour la réalisation du projet.+dessiner les 5 modèles/déclinaisons différentes (fonctionnalités, comportements, particularité... 
 +===== DEV =====
  
 +==== Arduino Mozzi ====
 +++++ Le codebase de test (sinusoide frequence variable (potentiometre)  |  
 +<code c+>
 +/*  Example playing a sinewave at a set frequency,
 +    using Mozzi sonification library.
 +  
 +    Demonstrates the use of Oscil to play a wavetable.
 +  
 +    Circuit: Audio output on digital pin 9 on a Uno or similar, or
 +    DAC/A14 on Teensy 3.0/3.1, or 
 +    check the README or http://sensorium.github.com/Mozzi/
 +  
 +    Mozzi help/discussion/announcements:
 +    https://groups.google.com/forum/#!forum/mozzi-users
 +  
 +    Tim Barrass 2012, CC by-nc-sa.
 +*/
 +
 +//#include <ADC.h>  // Teensy 3.0/3.1 uncomment this line and install http://github.com/pedvide/ADC
 +#include <MozziGuts.h>
 +#include <Smooth.h>
 +#include <Oscil.h> // oscillator template
 +#include <tables/sin2048_int8.h> // sine table for oscillator
 +#include <AutoMap.h> // maps unpredictable inputs to a range
 +
 +// use: Oscil <table_size, update_rate> oscilName (wavetable), look in .h file of table #included above
 +Oscil <SIN2048_NUM_CELLS, AUDIO_RATE> aSin(SIN2048_DATA);
 +
 +// desired carrier frequency max and min, for AutoMap
 +const int MIN_CARRIER_FREQ = 22;
 +const int MAX_CARRIER_FREQ = 440;
 +const int KNOB_PIN = 0; // Pitch
 +
 +// use #define for CONTROL_RATE, not a constant
 +#define CONTROL_RATE 64 // powers of 2 please
 +
 +AutoMap kMapCarrierFreq(0,1023,MIN_CARRIER_FREQ,MAX_CARRIER_FREQ);
 +float smoothness = 0.95f;
 +Smooth <long> aSmoothIntensity(smoothness);
 +
 +void setup(){
 +  startMozzi(CONTROL_RATE); // set a control rate of 64 (powers of 2 please)
 +  Serial.begin(115200); // set up the Serial output so we can look at the light level
 +  aSin.setFreq(440); // set the frequency
 +}
 +
 +
 +void updateControl(){
 +  // put changing controls in here
 +  int freqVal = mozziAnalogRead(KNOB_PIN); // value is 0-1023
 +  //int FRQ = mapThis(freqVal);
 +  aSin.setFreq(freqVal); // set the frequency
 +}
 +
 +
 +int updateAudio(){
 +  return aSin.next(); // return an int signal centred around 0
 +}
 +
 +
 +void loop(){
 +  audioHook(); // required here
 +}
 +
 +
 +
 +</code>
 +++++
 ===== Photos ===== ===== Photos =====
-Code pour afficher les images du projet : +{{gallery>?&crop&lightbox}}
-<code>{{gallery>?&crop&lightbox}}</code>+
  
  
  
/home/resonancg/www/wiki/data/attic/projets/tourne-data/accueil.1599476760.txt.gz · Dernière modification: 2020/09/07 13:06 de oyomaker