Bookmark, share, and hop your favorite sites with SiteHoppin Toolbar for Firefox! Marque-page, partager, et hop vos sites favoris avec SiteHoppin d'outils pour Firefox!
Search on Zedomax.com Recherche sur Zedomax.com



DIY HACK - HOWTO make some sounds with Arduino! DIY HACK - HOWTO faire des sons avec Arduino! Sound Part 3 - Playing a Melody Sound Partie 3 - Lecture d'un Melody

Posted in Publié dans Arduino , Audio , Circuits , Cool , DoItYourself! Bricolage! , Hack , Microcontroller Micro - , Music Musique by max on the November 24th, 2007 at 3:30 am par Max sur le Novembre 24 janvier 2007 à 3h30

DIY HACK - HOWTO faire des sons avec Arduino! Sound Partie 3 - Lecture d'un Melody

Check out the Consultez le Part 3 of “HOWTO make sounds with Ardunio” and learn to play melody La partie 3 de "HOWTO faire des sons avec Ardunio" et apprendre à jouer la mélodie .

Bit-Banging Sound Bit-frapper son
To bit-bang sound we toggle an output pin at the desired frequency. Pour peu son bang-nous passer une broche de sortie à la fréquence souhaitée. To play a musical note, we need to use specific frequencies and play the sound for a specific amount of time. Pour lire une note de musique, nous avons besoin d'utiliser des fréquences et de jouer le son pour un montant spécifique de temps.

Generating the desired frequency big-bang style means figuring out what the period or cycle time of the desired frequency is. Génération de la fréquence souhaitée big-bang style faut donc comprendre ce que la période ou la durée du cycle de la fréquence désirée. This is easy to calculate, it’s the reciprocal (1/F) of the frequency. Cela est facile à calculer, c'est la réciproque (1 / F) de la fréquence. As we found in part 2, 1KHz is 1000 cycles per second. Comme nous l'avons trouvée dans la partie 2, 1 kHz est de 1000 cycles par seconde. So, one cycle takes 1 one-thousandth (1/1000) of a second or 0.001 seconds (1 millisecond). Ainsi, un cycle prend 1-un millième (1 / 1000) d'un deuxième ou 0,001 secondes (1 milliseconde). We need to toggle the pin at this rate so we want to keep it low for 1/2 the time then high for 1/2 the time. Nous avons besoin de basculer la broche à ce taux que nous voulons tenir faible pour les 1 / 2 puis le temps élevé pour les 1 / 2 temps. Therefore we want to set the I/O pin low for 500uS, then high for 500uS and do this over and over for as long as the duration requires. C'est pourquoi nous voulons régler la broche d'E / S bas pour 500US, puis élevé pour 500US et ce à plusieurs reprises aussi longtemps que la durée exige.

Part I and Part II Partie I et Partie II

via uchobby par uchobby

Related Posts: Postes connexes:

DIY HACK - HOWTO faire une bière Arduino Thermostat3

HOWTO make Beer Thermostat with Arduino HOWTO Thermostat faire de la bière avec Arduino

http://zedomax.com/image/200611/audiovideocontroller.jpg

Here’sa cool audio and video controller DIY using Arduino. Voici frais audio et vidéo contrôleur de bricolage en utilisant Arduino.


, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
1 Star2 Stars3 Stars4 Stars5 Stars (No Ratings Yet) (Pas d'évaluation encore)
Loading ... Loading ... Chargement ...