====== Phase gamma, 2me prototype ====== * Base de test raspberry , en devenir cubieboard * moteur python * rendu sonore pd-extended * 1 GPS (ok) * sortie son stereo (ok) * 2 boutons (ok) * 1 lecteur RFID i2c (en cours) * 1 boussole i2c(en cours) liaison avec pd pour spacialisation * 1 afficheur matrice 8x8 i2c (ok) (option) idée du prix: - sur rsp: 174 - rsp+sd+cable=40 - gps 35 [[http://www.robotshop.com/eu/4d-systems-miniature-66-channel-gps-receiver-3.html|robotshop]] - rfid 32 ou 15 [[http://www.lextronic.fr/P26731-module-oem-rfid.html|lextronic]] ou [[http://www.watterott.com/de/Sensoren/RFID|watterott]] - boussole 15 [[http://www.lextronic.fr/P6090-module-boussole-hmc5843.html|lextronic]] - afficheur 15 [[http://www.adafruit.com/products/902|adafruit]] - casque 15 sony chez cdiscount - regulation d'alim 15$ [[http://www.hobbyking.com/hobbyking/store/__18521__Turnigy_HV_SBEC_5A_Switch_Regulator_8_42V_input_.html|hobbyking]] - batteries plomb 2x5 [[http://alimentations.e44.com/accus/accus-a-cosses-au-plomb/batteries-plomb-calcium-6v/batterie-au-plomb-ultracell-6volts-1.3a-97x24x52mm-UL1.3-6.html|e44]] - sur cubieboard : 179 - cubbiboard+cable 45 [[http://www.seeedstudio.com/depot/cubieboard-p-1404.html?cPath=132_206|seedstudio]] ===== Achats en cours ===== * roboshop 1 gps,2 boussoles * watterott 2cubiboarb,2rfid,2 senseur lumiere,2 ttl->5v a faire : * http://www.robotshop.com/eu/4d-systems-miniature-66-channel-gps-receiver-3.html GPS * http://www.robotshop.com/search/search.aspx?locale=fr_eu&keywords=rfid+13.56 rfid * http://www.watterott.com/de/125Khz-RFID-Empfaenger-Modul rfid (2 roboshop) * https://www.sparkfun.com/products/10128 puces rfid * http://www.watterott.com/de/RFID-Tag-ABS-Token-Mifare-1K-1356-MHz?xecdc6=f0fd307b88c06b84174d71b67220c765 puces rfid * http://www.robotshop.com/eu/productinfo.aspx?pc=RB-Asp-07&lang=fr-CA puces rfid * http://www.lextronic.fr/P19593-platine-devaluation-pour-capteur-capacitif.html ===== Doc utile ===== * Générale sur Raspberry Pi et GPIO http://www.themagpi.com/en/issue/2 ==== Logiciels partie système ==== * récupérer le temps du GPS {{:beta:temps.pdf|remplacer l'extension par .py}} * puredata pd-extended on envoie par OSC un ordre de lecture d'un fichier dans le repertoire son à un serveur pure-data (écoutant le port 9001) en local sur la pi osc-send.pd #N canvas 816 78 450 300 10; #X declare -lib mrpeach; #X obj 86 60 import mrpeach; #X obj 106 164 packOSC; #X obj 74 209 udpsend; #X msg 250 35 disconnect; #X msg 108 116 send /ecouter \$1; #X msg 42 29 connect 192.168.1.25 9001; #X msg 101 87 hop sifflet.wav; #X connect 1 0 2 0; #X connect 3 0 2 0; #X connect 4 0 1 0; #X connect 5 0 2 0; #X connect 6 0 4 0; le script de lancement de pd-extended #!/bin/bash # petit lecteur puredata killall -9 pd sleep 2 cd /usr/lib/pd-extended pd-extended -nogui -channels 2 -r 44100 -audiobuf 75 -jack -nomidi -rt -path /usr/lib/pd-ex tended/extra/ggee -path /usr/lib/pd-extended/extra/cyclone /home/pi/patch/lire-son.pd 2>&1 > /dev/null & le patch de lecture sur la PI more lire-son.pd #N canvas 282 414 450 300 10; #X declare -lib mrpeach; #X obj 44 7 loadbang; #X obj 44 174 readsf~; #X msg 226 168 1; #X obj 44 241 dac~; #X obj 44 207 *~ 1; #X msg 162 28 \; pd dsp 1; #X obj 161 6 delay 100; #X obj 44 38 import mrpeach; #X obj 44 65 udpreceive 9001; #X obj 44 92 unpackOSC; #X obj 44 142 sprintf open /home/pi/son/%s; #X obj 44 117 routeOSC /ecouter; #X obj 226 119 loadbang; #X obj 226 142 delay 800; #X connect 0 0 6 0; #X connect 0 0 7 0; #X connect 1 0 4 0; #X connect 2 0 1 0; #X connect 4 0 3 0; #X connect 4 0 3 1; #X connect 6 0 5 0; #X connect 7 0 8 0; #X connect 8 0 9 0; #X connect 9 0 11 0; #X connect 10 0 1 0; #X connect 11 0 10 0; #X connect 11 0 12 0; #X connect 12 0 13 0; #X connect 13 0 2 0;