4860

Happy Holidays Readers ! New version : Piano-PlayList-Metronome There are many variations of Piano based on 555, UNO, ATtiny, Nano, touch or BP On a challenge, caused by Paolina and her father, "a toy in 48 hours!", I rummaged in my room and I found a bag of TTP223 touch pads and a ATtiny85. I thought to myself, a paper keyboard that can be placed on any support. In addition, no drilling or bp to manage! :) I had the idea to make a tactile analog key to have a "keyboard with capacitive keys one wire"

See Tiny Piano One Octave for an extended version of this piano.

Specifications :
The piano must work on battery or battery. Power supply from 5v to 3v7 (18650 battery recovered from pc batteries for example)
8 notes, capacitive keyboard on ATtiny85
Three operating modes : 
1 -> Piano mode, Keyboard, it's up to you to play the notes. 
2 -> PlayList mode, choose a melody to play from the keys. 
3 -> Metronome mode, adjustable bpm

You can imagine other modes... ex: replay PlayList x times...record .. 
Principle adopted : 

If first run, we launch the tempo to wait (about 3 seconds),
   -> if touch1 Do on the keyboard: mode 1 playStore.
   -> if touch2 Re on the keyboard: mode 2 metronome.
     --------------------------------------------------  
  play_Store >>
     - key1 Do => Play melodies 1,
     - key2 Re => Play melodies 2...
     -....
     - key8 Do1 => Exit PlayStore or Metronome mode. Return Piano, mode 0.
   -------------------------------------------------- 
   metronome >>
   - key1 Do     => Start ticTac
   - key2 Re     => Stop, ticTac
   - key3 Mi     => Bpm -1 (min =40)
   - key4 Fa     => Bpm +1, (max =240
   - key5 Sol    => Bpm -10
   - key6 La     => Bpm +10
   - key7 Si      => Bpm =80
   - key 8 Do1 => Exit PlayStore or Metronome mode. Return Piano, mode 0.
    -------------------------------------------------- 
   After the start delay time, if Do or Re key not touched :),
   We are in mode 0, Keyboard, piano mode.
   We play the Piano (standing?), we signal to the user by a sequence of 8 notes.
   -------------------------------------------------- 
There are 10 TTP keys in a bag, I added a key for the ON/OFF mode managed directly by the key via a transistor.

Happy Holidays Readers
Version code three mode In ZIP TINY_PIANO => Tiny_Piano_8-Touch-sens_One_Analog_EN-V3
LOOK HERE : https://www.youtube.com/watch?v=Fptp8sL4SRY

FR :
Il existe bien de nombreuses variantes de Piano à base de 555, de UNO, d'Attiny, de NANO ..., tactile ou à BP
Sur un défit, causée par Paolina et son père, "un jouet en 48h !", j'ai farfouillé dans mon local et j'y ai retrouvé un sachet de touche tactils TTP223 et un ATtiny85.
Je me suis dit, un clavier en papier pouvant être disposé sur n'importe quel support.
 De plus, pas de perçage ou bp à gérer !  :)
J'ai eu l'idée de réaliser une clé analogique tactile pour avoir un "clavier à touches capacitives one wire
"Ayant trouvé sur le net la méthode de génération de note avec un Attiny, (ici :: http://www.technoblogy.com/show?KVO) j'ai validé le cahier des charges.
Le piano doit fonctionner sur pile ou batterie. Alimentation de 5v à 3v7 (accu 18650 récupérés dans des batteries de pc par exemple)
8 notes, clavier à touches capacitive
Trois modes de fonctionnement :
1 ->Mode Piano, Keyboard, à vous de jouer les notes
2 ->Mode PlayList, choisir une mélodie à jouer à partir des touches. 
3 -> Mode Métronome, vitesse bpm ajustable ++ --

Vous pouvez imaginer d'autres mode... ex : rejouer la PlayList x fois...enregistrement.
Principe adopté : 
 Si first run, on lance la tempo pour attendre (env 3seconde),
  -> si touch Do du clavier : mode 1 playStore.
  -> si touch Ré du clavier : mode 2 métronome.
  play_Store >>
  - touche1 Do => Joue la mélodies 1,
  - touche2 Ré => Joue la mélodies 2...
  -....
  - touche8 Do1 =>  Quitter mode PlayStore ou Métronome. Retour Piano, mode 0.
  ---------------------------------------------------------------------
  métronome >>
  - touche1 Do =>  Start ticTac
  - touche2 Ré =>  Stop, ticTac
  - touche3 Mi =>  Bpm -1 (min =40)
  - touche4 Fa =>  Bpm +1,(max =240
  - touche5 Sol => Bpm -10
  - touche6 La =>  Bpm +10
  - touche7 Si =>  Bpm =80
  - touche8 Do1 =>  Quitter mode PlayStore ou Métronome. Retour Piano, mode 0.

  Passé le délais temporisation de démarrage, si touche Do ou Ré non touchée :),
  On est en mode 0, Keyboard.
  On joue du Piano (debout ?), on signal à l'utilisateur par une séquence de 8 notes.

Il y a 10 touches TTP dans un sachet, j'ai ajouté une touche pour le mode ON/OFF géré directement par la touche via un transistor.

Joyeuses fêtes aux lecteurs :
Version code trois modes dans le ZIP TINY_PIANO => Tiny_Piano_8-Touch-sens_One_Analog_FR-V3
LOOK HERE : https://www.youtube.com/watch?v=Fptp8sL4SRY 

brUNO