Wiki

Reso-nance numérique | Arts et cultures libres

Outils du site


materiel:teensy: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
materiel:teensy:accueil [2015/02/13 10:07]
resonance
materiel:teensy:accueil [2016/02/01 00:05] (Version actuelle)
resonance
Ligne 8: Ligne 8:
   * http://www.pjrc.com/teensy/teensyduino.html   * http://www.pjrc.com/teensy/teensyduino.html
   * http://www.pjrc.com/teensy/first_use.html   * http://www.pjrc.com/teensy/first_use.html
 +
 +
 +===== Teensy Vs Arduino =====
 +  * Tests de latence : http://neophob.com/2011/04/serial-latency-teensy-vs-arduino/
  
 ===== Pins ===== ===== Pins =====
 +  * http://www.pjrc.com/teensy/pinout.html
 +
 {{:materiel:teensy:wiring_pinout2h.png|}} {{:materiel:teensy:wiring_pinout2h.png|}}
 +
 +
 {{:materiel:teensy:teensy31_front_pinout.png|}} {{:materiel:teensy:teensy31_front_pinout.png|}}
  
 ===== Teensy et Raspberry Pi ===== ===== Teensy et Raspberry Pi =====
-http://www.teensypi.com/teensypi-board-version-5/+  * http://www.teensypi.com/teensypi-board-version-5/
 {{:materiel:teensy:teensypi-v5.jpg|}} {{:materiel:teensy:teensypi-v5.jpg|}}
 +
 +
 +
 +===== Ethernet =====
 +  * http://pjrc.com/teensy/td_libs_Ethernet.html
 +  * http://www.tweaking4all.com/hardware/arduino/arduino-enc28j60-ethernet/
 +  * https://bigdanzblog.wordpress.com/2015/01/01/wiring-teensy-3-1-and-enc28j60-ethernet-module-together/
 +
 +{{:materiel:teensy:teensy-ethernet.png|}}
 +
 +{{:materiel:teensy:teensy-enc28j60-wiring.png|}}
 +
 +
 +===== Touch > Midi =====
 +Envoie de valeurs avec touchRead() en MIDI.
 +
 +<code cpp>
 +// adpapted from http://reso-nance.org/wiki/projets/teensymiditouchcontroller/
 +
 +/* TOUCHPINS */
 +int const nbTouch = 6; // number of pins to use as touchpins, sending note values
 +int touch[nbTouch];
 +int touchOn[nbTouch];
 +int touchPins[] = {15,16,17,18,19,22,};
 +int touchPitch[] = {36,37,38,39,40,41}; // MIDI pitches
 +int touchThreshold = 3200; 
 +
 +const int channel = 1;
 +
 +void setup() { 
 +   Serial.begin(38400); 
 + 
 +
 +void loop() {
 +  
 +  for (int i = 0; i < nbTouch; i++) {
 +    
 +    touch[i] = touchRead(touchPins[i]);
 +    //Serial.print();
 +    //Serial.print("\t");
 +    
 +    if (touch[i] > touchThreshold && touchOn[i] == 0) {
 +      usbMIDI.sendNoteOn(touchPitch[i], map(touch[i],1300, 6000, 0, 127), channel);
 +      touchOn[i] = 1;
 +    }
 +    if (touch[i] < touchThreshold && touchOn[i] == 1) {
 +      usbMIDI.sendNoteOff(touchPitch[i], 0, channel);
 +      touchOn[i] = 0;
 +    }
 +  }
 +  
 + //Serial.println();
 + delay(10);
 +}
 +</code>
 +
 +{{tag>teensy}}
/home/resonancg/www/wiki/data/attic/materiel/teensy/accueil.1423818433.txt.gz · Dernière modification: 2015/02/13 10:07 de resonance