Hi, I'm Jeff Ackerman (aka ChefJeffPhD), and I'm a PhD mechanical engineer, educator, and entrepreneur. I plan to use my RU-vid channel to create content about learning engineering, developing technical skills, and to showcase some cool projects.
Your video is excellent, explain clearly and in detail. Learn a lot indeed. Do you use Ansys? I am eager to watch your some video Ansys thermomechanical simulation using Ansys software.
This video reallh helped me submit my diagram for my technical project professionally. I dont know why they dont have the H-bridgequad driver IC natively, so I created one with the assistance 5 mins of this video. Thanks!!
I’d recommend trying to verify and identify the Serial COM port in the Arduino IDE, view the data in the Arduino IDE Serial Monitor, close it, and try to connect to it in Excel.
hi please help me out, i have a arduino uno r4 wifi board and everything is working fine except when i press start data, no data seems to be streaming in
I think that's a known issue. It's not quite compatible with recent new arduino versions. The potential solution is to add Serial.dtr(); in the loop function.
Thats good stuff. I am trying really hard to learn Arduino but most people do not explain what the line functions are like you have. That is very helpful to a guy starting out.
I didn't realize that Excel had that feature, this will be very handy - thank you. Also, you can copy from the Arduino IDE serial monitor, I did it this afternoon.
This is a great presentation. I did not know this can be done. And in addition, I too use SolidWorks in my daily work and I noticed you have several SolidWorks related videos. Thank you for sharing the Arduino information.
Hello, i have a project that is using MP3 all the code is fine and if i connect my earpiece to the MP3 it will work but when i connect to the speaker its very soft, what can i do?
I followed exactly but cant get it to trigger at all. I dont understand high or low. what do you mean? Plus I cant see exactly where the wires are plugged in on your modules. Too blurry.
I got this board. It is perfect for what I want to do . I am using a ultrasonic sensor at 2 different thresholds I want to play a sound. It works but when I have it set to return to high after my last threshold. It just repeats the last sound byte . What am I doing wrong?
I found that it works best if you trigger an adjacent pin with no sound or a short sound to interrupt playing the first sound. It’s a bit of a hacky solution, but it usually works. The pins sometimes play the whole song or sound when triggered with a short press. There may be some timing to the triggering it I’m unaware of. Try triggering an adjacent pin to stop the sound.
@@ChefJeffPhD wow didn't think you was going to reply so fast for being a older video.. I'll give it a shot. I have a couple more things I want to trigger with it. by looking at vague instructions, it says once trigger 7 is done it goes back high. I have 6 things to have triggered and I will make 7 no sound .
@@ChefJeffPhD hey there, after many many attempts to get this to work. I figured it out .. I had to write the code in the void setup to treat the mp3 trigger by receiving a signal from a button. But there is no button.
im asumming this could be connected to a 3.3 v pico too as long as as the voltage is taken care of.i am wondering though,how would i go about attaching leds to this also.Is this possible?
I believe that this chip is supposed to work on 5V. I’m not sure if 3.3V will provide enough power for the chip and electronics on board, but it could be worth a try. I don’t have this board on hand anymore to check. You could attach LEDs onto the trigger pins to visualize the trigger logic - they will be high by default and low when triggered. It would probably be better to use the microcontroller to attach the LEDs.
Professor I still have a question, can this board respond to PWM? I know that I can use individual PWM switch boards in order to control each pin via PWM, but is there ANY other playback board like this one that responds to PWM?
Thanks for the video. I'm not using an arduino, though. How might I trigger this using, say, a "Try me" button? Also, I'm using the DY-HU8F module, and I rashly deleted the files that were on it, but I remember that they were named like "1-whatever.mp3", "2-whatever.mp3", and so on. So, is there flexibility in the naming? As you observed, instructions are minimal.
I believe the filing naming needs to be “0001.mp3”, “0002.mp3”, etc. the file naming does need a specific format when triggering them directly from the pins. If your using another device or a button, you can give the board 0V and 5V and solder a connection to one or more trigger pins that correspond to the file naming convention. You pull the trigger HIGH (5V) to not trigger the mp3, and pull the trigger pin LOW (0V) when you want to play a song. That should work!
I have a question… is it possible to activate those “audio pins” via PWM signal?.. if not, will Arduino help make that possible?.. I certainly do not want an individual relay for each pin, but my application is PWM and I would greatly appreciate it if you could give me any info and point me in the right direction?🙏
Hey, great video. I need some help.... am using an MP3 trigger board to play a sound to sync with lights from a prop but there always seems to be a 1.5 sec delay for the MP3 to play when triggered (even using a relay). Do you have any tips as to how to make a sound play instantly as soon as a trigger voltage (high 3.3v) is applied so it syncs perfectly with the prop I am using (which triggers instantly). Delaying the prop is not an option in this case unfortunately. Thanks in advance
I haven’t used this chip in awhile, but I recall that there was very little delay between grounding the pin and the audio playing. Keep in mind that the pins need to be grounded to play (with a common ground to the Arduino), not pulled high to 5V or 3.3V. This may be part of the reason why there is a delay in the sound playing, or there is a blocking delay of some kind in your code. You could test the functionality by manually grounding the trigger pin with a wire by hand to check the triggering and sound delay.
@@ChefJeffPhD thanks for the quick reply. Yes I think you are correct, grounding the pin does work a lot quicker. How could I make the sound trigger this way without having to physically touch the pins or press a switch? I need a digital pulse to ground the pins with no delay to make the sound work
Couple of things: First, make sure your sound file doesn't have empty space at the start of the file. If there's a 1 sec gap of no sound at the start of the file, the device will "play" it, but since there's 1 sec of no sound, you won't hear anything for 1 second. Two, relays aren't instant. If you need to trigger this when something goes high instead of low, use a transistor. I see in your other message that you need a digital pulse. Are you using a microprocessor? If so, you would set the digital output to pull up HIGH, and then trigger it by writing LOW to trigger the sound.
Thanks man, ive been trying too get this to work for my project for so long. You made it easy to follow, enjoyable and yes, got me with the rick roll lol
… I’ll try to answer.. the playback module just holds onto the audio files and has 7 channels or contact points that activate the assigned audio to that given channel number file to play. So having an arduino or raspberry is just another board added to the equation because those boards perform the action for you.. so instead of you manually triggering the playback module to play an audio file just by you closing the circuit with the ground wire, the arduino or raspberry can do that for you. So now what’s missing is the tool or method you want to use to trigger arduino to trigger the playback module at any of the given 7 channels. The arduino and raspberry can be activated by using a voice detection board, a motion detection board, a vibration detection board, a temperature detection board, and even a hand gesture sensing board. These are small and cheap and most other boards that perform tasks will respond to any of these sensor boards I mentioned. However if you’re wanting the music to repeat or play the next song fully automatically., then you need to tell arduino or raspberry exactly what to do and when to do it, which might just be coding jargon. The least complicated way to avoid coding or just the thought process in general would be to have a board, any board, but one that has a “shuffle” feature or random select feature and let it do all the communicating with the playback module for you. Hope that was helpful I’m still learning, I haven’t even touched one of these things yet, I’m still researching for myself so I can apply the technology to my large scale RC cars🙏👌💯
Nice video! FYI TX transmits data and RX receives data so you always have to connect the TX of one device to the RX of the other so you having to flip the pins is totally normal. if TX is connected to TX and RX to RX neither device can transmit or receive data. Device 1 TX goes to Device 2 RX Device 1 RX goes to Device 2 TX for serial communication to function. Thanks again for the video!
Great video. Im using a Nano Every board and a YX5300 and I want to play more than one song on the card, without buttons. Just play from "track1" and go through what's on the SD card once it boots up. I'm extreme newbie. Any help would be great!
Hi Jeff. Thanks for this video - I know you did it a year ago already (it is May 2023 now) but it is still very current. Thanks for taking the time to do this - what I find invaluable is all the problems you come up against and how you fix them - this is all learning for us minions and we learn by your mistakes (LOL). Some bloggers edit all the problems out and leave us with a clean video but you still include them and it is very important. Thanx dude. Well done. Subscribed and Liked tick :¬) 🤓p.s. I can't get my to work properly yet but it is early days. Cheers. PJ.. read on... EDITED----X well there I was trying to get it to work and this little voice came in my head ...."I had to change the TX pin to RX and the RX pin to TX" I swapped the leads... and.... KERCHING!!!! it works. Thanx Matey <phew!> 🔆🔆
It may just be your cable. Some cables are only for charging and do not have the data lines. It's worth a try to change the cable out for one that you know works with data.
Does the serial player block? Can you kick off the sound and then have the arduino do other tasks? I have yet to purchase one and so can not try it to answer my own question. A demo where for example you blink the BUILTIN_LED while the music plays might demonstrate the point I am trying to get at. Your code in this example does not make it clear of blocking is happening. Regardless, Thanks for making the video.
This device doesn’t block. Once you trigger the MP3 to play with a digitalWrite() LOW, it will play and you can do other things with your code. I’ve had difficulty stopping the MP3 from playing in its entirety after it’s triggered, but an easy fix for that is to pull another one of the trigger pins low that doesn’t have an MP3 file, triggers a silent file, or triggers a very short sound file.
I don’t know exactly, but the trigger time is pretty fast with no obvious delay from a human perspective, so I would guess some number of milliseconds response time (less than 50 ms ish) from triggering to playing.