Skip to content
Ideen gibt es dafür genug. Wer alles richtig gemacht hat, wird in diesem Moment auch schon Geräusche oder Töne aus dem Lautsprecher gehört haben.Der Sketch kann nun also nur noch eine MP3-Datei abspielen und ist sehr übersichtlich geworden. Wichtiger Hinweis : Die SD-Karte muss das FAT32 Format haben. Zusätzlich zum bisherigen Aufbau schließen wir an Pin 7 einen Taster an.Als zweites Beispiel programmieren wir noch die schimpfende Zimmerpflanze.
I have recently become very interested in music. Groß-, Klein-, oder Privatbestellung. In this article you will learn how to control your DFMini Player MP3 module with Arduino. 22 de February de 2019 8 de April de 2020 Robson Couto Arduino, Tutoriais. Change audio channels to Mono. The DFMini Player module is shown in Figure 1.To control it, it is important to use the basic standalone circuit. The electronic scheme of the control circuit is shown in Figure 4.First, we must assemble the circuit shown in the Figure below.After assembling this circuit, you must add the songs on your memory card. Wie man in dem Bild sehen kann, gibt es jedoch auch weitere passende Librarys, die andere Vorteile bieten, wie bspw.
This circuit is shown in Figure 2.Figure 2 - Standalone circuit of DFMini Player Module.The two buttons shown in the circuit above are used to change the music tracks and control the volume of the sound.The button connected to pin IO1 is used to go to the previous track and reduce the volume.With a quick touch the system returns to the previous song, however, if you press the button for more than 1 second, the system will reduce the volume of the song.The button connected to pin IO2 is used to go to the next track and increase the volume.With a quick touch the system advances to the next song, however, if you press the button for more than 1 second, the system will increase the volume of the song.In this standalone method, the songs must be saved on the memory card, as shown in Figure 3.This way, each time the buttons are pressed, the system will play each song in ascending or descending order.However, when using Arduino or another control device, we must modify the way of organizing the musical files on the SD Card.Now, I'll explain how to control the DFMini Player using the Arduino through serial communication.In this step, the volume control, range control, equalization commands and other features will be sent by Arduino.The Arduino must communicate via the serial with the DFMini Player and send the control commands.
This way, each time the buttons are pressed, the system will play each song in ascending or descending order. So, I thought that adapting scores as songs for arduino would be a good exercise. The Audio library enables an Arduino Due board to play back .wav files from a storage device like an SD card. Für die Sprachausgabe eines kleinen Roboters ideal.Als nächstes wird eine passende Library benötigt. weniger Speichernutzung bei abgespeckten Funktionen.Um mit dem Modul zu arbeiten rufen wir zunächst einen ganz einfachen Beispielcode auf. The Arduino MP3 Shield Have many Advantages such like Control by Serial UART interface or keys onboard, Have Build in Audio Amplifier 3W, and has On board 64MBit SPI-FLASH, which you can Save Your Audio file, and play it later. Bring mir etwas zu trinken“.Sobald der Wert der Feuchtigkeit den Grenzwert von 300 unterschreitet, wird nun die MP3-Datei vom Arduino Mikrocontroller aktiviert und mit Hilfe des „DFPlayer Mini MP3 Player„ abgespielt.Weitere Informationen über das Modul findet man auf der Seite des Herstellers:// Nach dem Abspielen der Datei pausiert der Sketch für drei Sekunden.//Das Wort „tasterstatus“ steht jetzt zunächst für den Wert 0. Dazu schließen wir am Analogen Pin A0 einen Feuchtigkeitssensor an. Compatible with Arduino Due only.
If it is not inserted, the system presents a message to alert the user.In addition, the system displays messages with system configuration options.If the memory card is inserted, the code flow will enter the loop function.The user can send the following control characters:From these signals, letters, and numbers, the Arduino will receive them via the serial and will control the music to be played.Each condition is presented below and internally, with its respective commands.So, if you applied all the steps presented, you were able to learn:From this code, you are able to develop other projects that need to use sound as system functionality.To finish, we thank you for your reading and the support of We provide a place for makers like you to share your designs, collaborate with one another, and learn how to take your product to market. Das Ergebnis wird unter der Variable „tasterstatus“ mit dem Wert „HIGH“ für 5Volt oder „LOW“ für 0Volt gespeichert.//Verarbeitung: Wenn der Taster gedrückt ist (Das Spannungssignal ist hoch)//Unter der Variablen "messwert" wird später der Messwert des Sensors gespeichert.//Die Spannung an dem Sensor wird ausgelesen und unter der Variable „messwert“ gespeichert.//Verarbeitung: Wenn der Messwert kleiner als 500 ist, dann...Deswegen subventionieren wir unser Produkt dort für eine begrenzte Zeit.bei AMAZON günstiger sein, als in unserem eigenen Shop.Solange der Vorrat reicht. Egal ob Schul-. In optional settings, change bit resolution to 8 bit. Schauen wir uns ein paar Kombinationen an:Wir starten mit der Türklingel. Follow the steps given below to make songs compatible with your Arduino audio player: Upload a music file or enter a link for the song or audio file to be converted. Alternativ, vorallem bei Platzmangel, kann das Modul aber auch über einzelne male/female Kabel am Arduino Mikrocontroller angeschlossen werden.
In this step, the songs should be renamed as 01, 02, 03, for example.You cannot leave the songs with their names, as there will be a problem when the Arduino sends the command to execute the specific track. Several projects require sound reproduction to add some kind of functionality.
Skip to main content. Toggle navigation.