Outils pour utilisateurs

Outils du site


lovetape

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édentesRévision précédente
Prochaine révision
Révision précédente
Dernière révisionLes deux révisions suivantes
lovetape [2018/11/28 06:09] – [Installer un nouveau type de carte pour L'IDE Arduino] sergelovetape [2020/02/07 10:39] – ↷ Liens modifiés en raison d'un déplacement. serge
Ligne 31: Ligne 31:
 schéma simple + pcb en forme de labomedia schéma simple + pcb en forme de labomedia
  
-{{:8bitLoveTape-sch.png?300|fig:8bitLoveTape-sch.png}} {{:8bitLoveTape-pcb2.png?300|fig:8bitLoveTape-pcb2.png}} {{:8bitLoveTape-pcb.png?300|fig:8bitLoveTape-pcb.png}}+{{media_02:8bitlovetape-sch.png?300|fig:8bitLoveTape-sch.png}} {{media_02:8bitlovetape-pcb2.png?300|fig:8bitLoveTape-pcb2.png}} {{media_02:8bitlovetape-pcb.png?300|fig:8bitLoveTape-pcb.png}}
  
 ===== Materiel ===== ===== Materiel =====
Ligne 118: Ligne 118:
  
   * Installer les logiciels/librairies   * Installer les logiciels/librairies
- +  sudo apt-get install gcc-avr avr-libc avrdude 
-''%%sudo apt-get install gcc-avr avr-libc avrdude%%''\\ +  git clone https://github.com/8BitMixtape/8BitMixtapeManila.git
-''%%git clone https://github.com/8BitMixtape/8BitMixtapeManila.git%%''+
  
   * Compiler le fichier binaire depuis le fichier source (identique au fichier .ino mais en .c)   * Compiler le fichier binaire depuis le fichier source (identique au fichier .ino mais en .c)
- +  cd 8BitMixtapeManila-master/src 
-''%%cd 8BitMixtapeManila-master/src%%''\\ +  avr-gcc -Wall -g -Os -mmcu=attiny85 -o main.bin main.c
-''%%avr-gcc -Wall -g -Os -mmcu=attiny85 -o main.bin main.c%%''+
  
   * Tester le binaire   * Tester le binaire
- +  avr-size -C main.bin
-''%%avr-size -C main.bin%%''+
  
 ce qui nous donne : ce qui nous donne :
  
-''%%  AVR Memory Usage%%''\\ +<code> 
-''%%----------------%%''\\ +  AVR Memory Usage 
-''%%Device: Unknown %%''\\+---------------- 
 +Device: Unknown 
 \\ \\
-''%%Program:    2752 bytes%%''\\ +Program:    2752 bytes 
-''%%(.text + .data + .bootloader)%%''\\+(.text + .data + .bootloader)
 \\ \\
-''%%Data:         31 bytes%%''\\ +Data:         31 bytes 
-''%%(.data + .bss + .noinit)%%''+(.data + .bss + .noinit) 
 +</code>
  
   * Générer le .HEX   * Générer le .HEX
  
-''%%avr-objcopy -j .text -j .data -O ihex main.bin main.hex%%''+  avr-objcopy -j .text -j .data -O ihex main.bin main.hex
  
   * Téléverser le programme   * Téléverser le programme
  
-''%%avrdude -p attiny85 -P /dev/ttyACM0 -c avrisp -b 19200 -U flash:w:main.hex%%''+  avrdude -p attiny85 -P /dev/ttyACM0 -c avrisp -b 19200 -U flash:w:main.hex
  
 ça marche!!! ça marche!!!
Ligne 156: Ligne 155:
  
 Un petit test (il suffit de branché un haut parleur de 8 Ohms sur la pin 0) Un petit test (il suffit de branché un haut parleur de 8 Ohms sur la pin 0)
- +<code> 
-''%%// 8Step MixTape Example Code%%''\\ +// 8Step MixTape Example Code 
-''%%// Basic Onliner%%''\\ +// Basic Onliner 
-''%%// Crazy shit 8-bit symphony generator                   %%''\\ +// Crazy shit 8-bit symphony generator                    
-''%%/*%%''\\ +/* 
-''%% inspired by:%%''\\ + inspired by
-''%%  %%''[[http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html|''%%http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html%%'']]\\ +  [[http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html|http://countercomplex.blogspot.com/2011/10/algorithmic-symphonies-from-one-line-of.html]] 
-''%%  %%''[[http://countercomplex.blogspot.com.es/2011/10/some-deep-analysis-of-one-line-music.html|''%%http://countercomplex.blogspot.com.es/2011/10/some-deep-analysis-of-one-line-music.html%%'']]\\ +  [[http://countercomplex.blogspot.com.es/2011/10/some-deep-analysis-of-one-line-music.html|http://countercomplex.blogspot.com.es/2011/10/some-deep-analysis-of-one-line-music.html]]\\ 
-''%% *%%''\\ + * 
-''%%  try it online:%%''\\ +  try it online
-''%%  %%''[[http://wurstcaptures.untergrund.net/music/|''%%http://wurstcaptures.untergrund.net/music/%%'']]\\ +  [[http://wurstcaptures.untergrund.net/music/|http://wurstcaptures.untergrund.net/music/]]\\ 
-''%% *%%''\\ + * 
-''%% */%%''\\ + */ 
-''%% %%''\\ +  
-''%%// ATMEL ATTINY85 / ARDUINO%%''\\ +// ATMEL ATTINY85 / ARDUINO 
-''%%//%%''\\ +// 
-''%%//                      +-\/-+%%''\\ +//                      +-\/-+ 
-''%%//  Reset A0 (D 5PB5 1   |8  Vcc%%''\\ +//  Reset A0 (D 5PB5 1   |8  Vcc 
-''%%//        A3 (D 3PB3 2   |7  PB2 (D 2) A1%%''\\ +//        A3 (D 3PB3 2   |7  PB2 (D 2) A1 
-''%%//   A2 pwm4 (D 4PB4 3   |6  PB1 (D 1) pwm1%%''\\ +//   A2 pwm4 (D 4PB4 3   |6  PB1 (D 1) pwm1 
-''%%//                 GND 4   |5  PB0 (D 0) pwm0%%''\\ +//                 GND 4   |5  PB0 (D 0) pwm0 
-''%%//                      +----+   %%''\\+//                      +----+   
 \\ \\
-''%%int speakerPin = PB0;%%''\\ +int speakerPin = PB0; 
-''%%int snd = 0; %%''\\ +int snd = 0;  
-''%%long t = 0; %%''\\+long t = 0; 
 \\ \\
-''%%void setup () {%%''\\ +void setup () { 
-''%%  pinMode (speakerPin, OUTPUT);%%''\\ +  pinMode (speakerPin, OUTPUT); 
-''%%}%%''\\ +
-''%% %%''\\ +  
-''%%void loop () { %%''\\+void loop () { 
 \\ \\
-''%%    snd  t * ((t>>7|t>>6)*100+4)*(t&7>>13|t>>6);%%''\\ +    snd  * ((t>>7|t>>6)*100+4)*(t&7>>13|t>>6); 
-''%%    digitalWrite (speakerPin, snd);%%''\\ +    digitalWrite (speakerPin, snd); 
-''%%    %%''\\ +     
-''%%    t++;%%''\\ +    t++; 
-''%%    %%''\\ +     
-''%%}%%''+} 
 +</code>
  
 ==== Plein d'exemples de jolies chansons ==== ==== Plein d'exemples de jolies chansons ====
Ligne 261: Ligne 261:
 https://www.reddit.com/r/bytebeat/comments/20km9l/cool_equations/ https://www.reddit.com/r/bytebeat/comments/20km9l/cool_equations/
  
-{{tag>faire_du_bruit}}+{{tag>faire_du_bruit attiny pcb ibniz}}
lovetape.txt · Dernière modification : 2020/10/29 13:58 de serge