Это видео недоступно.
Сожалеем об этом.
Easy Sound fx With A DFPlayer Mini For Your Model Railroad
- Добавить в
- Мой плейлист
- Посмотреть позже
- Поделиться
Поделиться
HTML-код
Размер видео:
- Опубликовано: 17 авг 2024
Комментарии • 131
Следующие
Автовоспроизведение
How To Create A Welding Scene With SoundToms Trains and Things
Просмотров 4,3 тыс.
Audio modules for electronics projectPlayful Technology
Просмотров 45 тыс.
Модули воспроизведения звука для Arduinokote315
Просмотров 9 тыс.
The Stakes Just Got Higher | Warhammer 40,000: Kill Team Cinematic 2024Warhammer
Просмотров 636 тыс.
Lil Yachty & Veeze - Sorry Not Sorry (Official Music Video)Lyrical Lemonade
Просмотров 769 тыс.
Benson Boone - Pretty Slowly (Official Music Video)Benson Boone
Просмотров 331 тыс.
Le Havre vs PSG | LIGUE 1 HIGHLIGHTS | 08/16/24 | beIN SPORTS USAbeIN SPORTS USA
Просмотров 155 тыс.
Mini MP3 player and ArduinoHome Made
Просмотров 49 тыс.
DFPlayer Mini MP3 Module TestingFads To Obsessions
Просмотров 33 тыс.
10 Most Common Mistakes Made By Model Railroaders - Model Railroading For Beginners Ep 18Toms Trains and Things
Просмотров 145 тыс.
These Illusions Fool Almost EveryoneVeritasium
Просмотров 2,2 млн
Add Bell sound to Gate Crossing with DFPlayer and Arduino NanoRon Karlsson's Baldy & Palms Railroad
Просмотров 1 тыс.
Background Sound System for Your Model RailroadToy Man Television
Просмотров 9 тыс.
Lightning and Thunder Effect - Arduino, DfPlayer Mini, NeoPixelsRandom Making Encounters
Просмотров 29 тыс.
Arduino C++ DFPlayer Mini module v's MP3-T-16P v 3.0Digital Town
Просмотров 4,1 тыс.
Master the MP3-TF-16P (DF Player Mini) on Arduino: Seamless Sound Integration & Easy Setup! 🎶The Last Outpost Workshop
Просмотров 40 тыс.
Classic Italian Pasta Dogalbert_cancook
Просмотров 4,7 млн
@RoomFactoryy КОРОЧЕ ГОВОРЯ, ЗАКАЗАЛИ ВСЕ МЕНЮ ИЗ KFC / 100.000 КАЛОИЙ ЗА 24 ЧАСАКОРОЧЕ ГОВОРЯ.
Просмотров 101 тыс.
УГАДАЙ КТО Я? *Янгер, Даник, Саня Монтажник, Чернец, Виолетта*ЯЯНА
Просмотров 921 тыс.
【搞笑漁民真實生活】日出日落,勤勤恳恳!#fishing #shorts搞笑渔民生活
Просмотров 1,5 млн
Х..евый доктор 😂КАРЕНА МАКАРЕНА
Просмотров 260 тыс.
BIP HOUSE / БИП ХАУС #SHORTS #Subscribe Subscribe to the channel #vibe2021bip_house
Просмотров 563 тыс.
@RoomFactoryy КОРОЧЕ ГОВОРЯ, СЪЕЛИ 100.000 КАЛОРИЙ / КТО ДОЛЬШЕ ПОТОЛСТЕЕТ ЧЕЛЛЕНДЖКОРОЧЕ ГОВОРЯ.
Просмотров 156 тыс.
Best car sound you ever heard 😳 @MrCarSounds #beatboxCHEZAME
Просмотров 1,6 млн
This video is exactly what I needed at the moment: My current project is using an Arduino to replicate the chimes of an old clock. I couldn't figure out how to wait for a sample to stop before playing the next one. Many thanks!!!! :)
Glad I could help!
T
Tom you are the man! I have ordered the parts I will need to build it. I got one from the manufacture and one from your amazon page along with the IR. Thanks!! keep you posted
Glad I could help Will. let me know if you need any help with it.
Thank you! Finally someone is explaining the code. Thank you.
Glad I could help.
Thank Toms Trains, Good video. Thanks for your helps. Loved the info.
Glad it was helpful!
That sounds very crisp and clean!
Thanks Joe
Thanks Tom your video is going into my saved playlist Ive been looking for something like this for a while as Im new to DCC-EX. I want announcements to play when a train pulls into the station.
Glad it was helpful! With the new version of DCC-EX, the DFPlayer mini code is written in so you can have sound files and also lighting. Here's a link to their Discord where you can get instant updates and chat with the developers: discord.gg/ff9r3NtATN
@@TomsTrainsandThings Thanks again.
I am mounting my board in the tender with an auto Chuff sensor on the drive gear and key fob radio receiver, I have a chuff trigger and 4 buttons to send IR Pulse to the MP3 Player. 5VDC from the regulator and rectifier from AC track. I wanted stereo so chuff can operate un interrupted but for $5 I can add a second MP3 board. I play in 1950s American FLyer S Gauge so we have bigger tenders. I hope it works. Dennis
Great idea. Thanks for the input!
@@TomsTrainsandThings I can report back it worked . BUT you need two speakers Not a big deal There are some tiny speakers.
The pop is a design "feature", You can modify the 8002 amplifier pinout, the shutdown pin (pin 1) is connected to ground via a 0 ohm resistor (at bottom), so the amplifier is always operational. You can change this and use an Arduino pin to fire up the amplifier when needed. This strongly reduces the power up pop.
Design Feature? I contacted DF Robot 3 years ago asking how to correct this pop. They know nothing about it and had no answer to correct it. I heard form another user a while back on how to eliminate the pop with a little bit of soldering on the bottom side.
@@TomsTrainsandThings I solve it by controlling the 8002 amplifier with a digital IO pin. Using the busy signal of the MP3 decoder solves the big pop, but a small pop remains and sometimes pops between tracks are detectable.
Great how to Tom I will be using some like this on my layouts for sure.
Thanks Zane. easy and cheap!
thank you very much! I didn't use this for a railroad, but is sure helped either way!
Glad I could help!
Thanks for sharing - very helpful
Glad it was helpful!
Hey Tom, Im getting back into the hobby after 30+ years, and looking for sounds for a Blacksmith Forge, Sawmill and I wasnt sure if there is/was a program to let the trains run an operation through the computer so we can just sit and watch. I seen your video to have different sounds as the train moved around the track, but could it be set with an IR detector, so as the train goes round and trip the sounds? Thx, Jeff
I'm not aware of any commercially available product for that.
You may have to build your own with Arduino and DF Player or if you want more control, DCC-EX allows lighting & sound in their setup
Kool I need one of those for my crossing bells.
works great
@@TomsTrainsandThings Would it work hooked up on IR sensor?
I've got a sound module that I put a bell on but not sure how to hook up up with my arduino an board.
I seen this thinking maybe it would work put a few bell an engine sounds on the card.
Take a look at this one: ruclips.net/video/CvSN1GUt5ak/видео.html
Thanks for the Arduino Made Easy series. The series and your other tutorials have been immensely valuable and helpful to me. I've been able to get some Details West flashing cross bucks to work using the IR sensors and simply Daisy chained several of them in an East/West approach senario to have them work over multiple tracks. Just now I'm experimenting using the dfplayer and IR to sound bells at a crossing on a seperate Arduino...now to figure out if there is a way to combine the two into one seamless sketch, or somehow wire the same sensors to work with the second Arduino? (scratches head).
Glad I could help. I have a video that uses two arduinos for lighting & sound. It's the one with the welder. You can use the same principle.
@@TomsTrainsandThings Thanks, I just watched the video and checked out the sketch. I'll give it a go and see what I can come up with. I'll be sure to let you know.
look forward to hearing from ou on this.
Hi question for you? How can I add this to your railroad crossing sketch? I noticed in the loop that they are similar written but I've been trying to add the df player to it...and so far I've been unsuccessful.
Could you possibly make a video on this subject or be able to walk me through on how to add.
Sprry for the late reply, was on vacation.
I don't have a video for this but... This video may help you to understand how to add the DFPlayer to a sketch
ruclips.net/video/CvSN1GUt5ak/видео.html
You can find more information on my website
tomstrainofthought.com/projects/
Good video Tom! Im having same problem with speaker popping at power up and off. Also have a little back noise "bep bep bep" when song is playing. Other than that works great
Thanks Austin. I think the popping at power up can be eliminated with a capacitor. I'll have to try that out if and when it becomes annoying. lol
To remove the pwr pop sound and background noise I cut the ground wire from the speakers going to the dfplayer. That worked for me
Thank you! such a helpful video mate, greetings form Mexico!
Glad I could help.
Hi Tom great channel I think I have learnt more over the last couple of weeks watching your videos than I have in the last 10 yrs !!
On a tech point being a beginner at this do I cut and paste the sketch and put it int Arduino ??
Thanks Stewart, yes you and cut and paste, or copy an entire sketch. You can do whatever is easiest for you to get your sketch running.
Thank you Tom from Ukraine.
Your welcome. Glad I could help.
Wow! This is just what the doctor ordered for me Tom! I've incorporated your arc welding sketch using an Arduino UNO board at several locations of my train layout and would love to add sound to them. Soooo, is it just a matter of adding your sound sketch onto the tail end of the welding sketch or is it more involved than that?
And just as a side bar, I thoroughly enjoy watching your tutorial's. You have a wonderful way of taking what appears to be a daunting project into a way that makes sense and easy to understand. Keep up the great work!
Jack
Thanks Jack. I made a few modifications to the basic welding sketch to have the led's come on with the welding sound. Here it is: ruclips.net/video/CvSN1GUt5ak/видео.html
I'm working on a new web site right now, so the reference to the code in the video is incorrect. I should have the code to all my sketches on the new web site with in a few weeks.
@@TomsTrainsandThings Hey Tom, man, that was a lightning fast response. You must have yourself wired to your computer 24/7 (lol). I just clicked on the link you sent me and then in the description the link that shows the sketch's of how you wired the led's to the sound. Unfortunately that link just says you may be selling your domain and lists a bunch of other unrelated links. Hmmm, did I miss something along the way?
You just lucked out. I was answering comments from a recent upload when yours showed up. Like I stated in my previous comment, the code is no longer available. The old domain name was hijacked by the provider when I discontinued service with them. I paid for an additional year for the domain name but they cut me off of that also when I closed my web page. New site is:tomstrainofthought.com/ Still under construction.
@@TomsTrainsandThings I do consider myself lucky. I really do. I figured you'd knocked off for the weekend and I wouldn't hear from you for years but there you are.
Had I read your mail and absorbed it I would have saved myself the embarrassment of sending my last email. Fortunately the red is beginning to fade out of my face.
I shall anxiously await your newly created website to be complete. In the mean time I'll tell the boys down at trackside they'll have to wait a wee bit longer for that welder sound...
@@TomsTrainsandThings And by the way, how rude of that provider just cut you off after you had paid for another year. I think I'd let the air out of his tires if I could find him. All...four...tires.
Is there any Arduino code to increase and decrease the playback speed to make some chiptune music?
Use Audacity to for your audio clips
Hi Tom...enjoyed your video...entered the code as you show on video and then opened serial monitor...(isBusy) command always stays low for some reason...cant get it to show high. I changed your if statements to reflect ir sensor low and can get music to play. Any ideas why this is happening? Thanks for reading this.
Your IR sensor may work differently than the one I used. The isBusy statement was very hard for me to catch a change also in the serial monitor. As long as the LED on the DF Player is lit, you know the condition has been met (isBusy). It's an indication for the code to know when the DF Playerr is playing a clip, and waits till it's over.
It was a pain to troubleshoot this in the beginning because it was hard to pin down actually when the isBusy was initiated and ended.
Hi Tom...thank you for your reply...I will play with the code over the next few days. It appears on my DF player, "is busy" appears to be reading low from start up. Also, in another or your videos, you mentioning a pro version...how are you liking that compared to just the mini? Thanks again from British Columbia...Geoff
@@gjdanco4260 I just received my Pro last month, haven't tested it out yet, but in looking at the wiki, the code is much easier to use and there is nearly no set up.
Will be looking at it next week
@@TomsTrainsandThings hi Tom...went back to project and thought to myself the code says int busy =5; but I don't have a jumper to pin 5. I wired up the breadboard as per instructions in the DF player link as you had no schematic provided. Went back and listened to your video and you mention a busy pin on DF player. Went back to instruction sheet, found that pin and provided a jumper to pin 5 on the uno....SUCCESS. Enjoying the satisfaction of troubleshooting this and getting it to work....something I have been unable to do until I discovered your video.....thanks for helping me out with this.
I must have something wrong in the pin connections from the arduino to the mini df player and sensor. It is not working at all. The wiki dos not help because the sketch isn't the same as yours. do you have a fritzing diagram of the connections?
Unfortunately I'm between web pages and there is no Fritzing component for the DFPlayer available anywhere. All the connections are on my paper onscreen & in the code on screen.
VCC - 5V
RX - 11 with iK Resister
TX - 10 with 1K Resister
SPK 1 - Speaker
SPK 2 - Speaker
Busy - 5
GND - Ground
If you want a sensor to trigger the activity, hook it up to pin 3 or any other pin you desire that you would declare in the code.
@@TomsTrainsandThings Thank you
Is there a way to make this device play more than 2 songs at a time... I thought of making a launchpad or keyboard.
Anything is possible
@@TomsTrainsandThings Sir can you please tell me the command or perhaps provide code snippet...?
Do you recommend me any mini speaker I want it portable and light
nice tutorial, but i have a question... it's possible to define different audio samples from SD card and to modify the code to play that on different conditions?
example: if i made a thermometer and it show a specific value, on 25 degrees to play a specific sample from SD card, and so on... what you think, it is possible ?
Thank you. You can do anything with code. In your example a switch/case statement would work to access specific clips for each condition. I found when uploading clips to the SD card, even though you have them numbered sequentially and time & date stamp are in order, the SD reader reads them offset by 1. I'll have to look at my video clips that I haven't published yet to see how it was done correctly to get the desired results. If you run into this problem send me an email and I'll let you know how I did it.
Ok, thanks for the reply :D
Having a code that plays different sounds at different temp's is exactly what i want. Can't make it happen, i can't code.
@1:20 well done...
Thanks Joe
Hey Tom, thank you for the great video. I’m not looking to make a railroad, but I am looking to make a toy that can play a random assortment of sounds and flash some lights. I’m very new to this and was wondering what I should look out for when it comes to speakers? I need a tiny speaker, and I found 1 that is 8 ohm and 3 watt with full range audio. Didn’t know if there is anything specific I should worry about. Thank you and have a wonderful day
I have a few more videos on the DF Player where I show speakers and even hooking up an amplifier.
@@TomsTrainsandThings thank you very much. Just bought all of the primary components (including the speakers). Really excited. Thanks once again!
Fantastic video but was wondering what the connections were from the arduino to the DFPlayer and the infrared sensor. Do you have a diagram, the DFRobot one doesn't show everything.
You can find the pin designation other than the obvious in the code. The rest are on the diagram in the DFRobot wiki which is in the description.
I also have a few more videos on the DFPlayer mini.
@@TomsTrainsandThings Thanks for your quick reply>
Also what about the connections for the infrared sensor and arduino?
Just went back thru the code and I found what I needed. Thanks again
I'm obviously not looking in the right place, but I cannot find your sketch code!
Still working on building all the pages for the code on my new web site: Should be up shortly: tomstrainofthought.com/projects/
Hi Mr. Tom I'll be receiving my df mini today an I downloaded the full sketch my question is do I copy it under the void set up or the loop set up ?
If you download the entire sketch, you don't need to add it to anything. Use it as is.
@@TomsTrainsandThings okay, so question how do I change the EQ levels 🤔 and setting it for my SD card and stuff ?
I'm sorry for asking so many questions but just trying to get familiar with this unit.
@@TomsTrainsandThings and also how do I add it in with my sketch to perform with it ?
I was copying your sketch with IR sensors so my sound would activate when the train hit the IR sensor.
Hi Mr. Tom, I finally got it working
Now question can I use your sketch that you made for the IR sensors?
Or could you send me a copy of your sketch 🤔 ?
Hi Tom, I have no electronic knowledge, or coding knowledge. I’m trying to do what you are showing here, but I. can’t see how you have everything set on the breadboard and uno. Can you tell/show me where all the wires go for this setup. Thanks in advance.
Ronnie
There is a link to the DF Player Mini Wiki in the description that shows everything.
I don't want to use Arduino, I have the DF player working with momentary switch but want to make it loop, without Arduino. Thoughts?
Check the df player wiki for the manual commands. You can do almost anything through the matrix
Hello, Tom. Would you happen to recall what sensor you were using in the video? If so, it'd be greatly appreciated. Thanks.
You'll find a link to my Amazon page in the description. The sensor is listed in the Arduino section.
@@TomsTrainsandThings Hello again, Tom! Please excuse my hiatus, however I was not notified of your response. I would just like to say thanks !
- Tomm.
Wonder if this is adaptable to a scalextric 🚗 sample from the motor signal, i wouldnt have a clue how to write a sketch that could take advantage of throttle curve and time duration etc seems a complex little problem.
Im sure i can get enough full audio volume and compact from using a modern smartphone setup ;)
3d print a micro speaker enclosure with a tuned chamber for a smart phone setup and mount the board amp etc to it keep it compact.
Neither would I, not familiar with it!
@@TomsTrainsandThings nice sounding loco mind i like it 👌
thank you for the fantastic videos you make ps i finally figured out how to post a comment.
Glad you finally got it Michael.
Hi everyone, i cant communicate between Arduino and dfplayer mini.i followed dfrobot.com but im getting an error " unable to begin".im in need of help,pleaseee
Contact dfrobot for help. They have a forum for issues. I have around 10 df players with no issues. recheck your wiring. try another player.If you think your player is defective, contact the vendor where your purchased the device.
Hello, I am setting up a project that is a plug-in keyboard, (a toy), where the child will put the letters and a led will light and play an audio speaking letters (A, B, C ...).
So I am using MEGA arduino, and the DFPlayer Mini board for this project, besides 26 green LEDs, everything is working fine.
The contacts fit leds and even the audio. But the audio goes into a loop, and I would like the audio of each letter to be played only once.
How can I be solving this?
I'm sure it's something about my code that is attached here.
So how do I disable looping using DFPlayer mini ????
For each note you should choose a specific track: myDFPlayer.play(001);
Make sure this line is no where in your code: myDFPlayer.enableLoopAll();
@@TomsTrainsandThings This my code, how can I be breaking the loop?
pastebin.com/UACNiXm4
@@TomsTrainsandThings I saw in my code is has no line with myDFPlayer.enableLoopAll ();
Use your print command to see what is going on in your (for) loop with nElements & .play. Maybe take out the +1 in myDFPlayer.play(i+1); see how it reacts to that.
@@TomsTrainsandThings I tried all this and a little more than I saw in forums and nothing.
www.reddit.com/r/arduino/comments/d8ww3s/help_with_audio_loop_dfplayer_mini/
facebook.com/groups/Arduino.AtMega8/permalink/2768831833128319/?notif_id=1569316995958637¬if_t=group_post_approved
good video, but you can operate the dfplayer mini without a microcontroller, u can just use the IO1 or IO2 port directly
Yep, but this is a build up of what can be done with it with Arduino. Like animating lights and other things with sound.
@@TomsTrainsandThings ohhh right, that makes sense. BTW I already finish my project with dfplayer mini also and this module really sensitive, if the module cannot play the mp3 again, that's maybe because of the memory card was broke
I am using an metro m0 express and when I try using the SoftwareSerial.h and upload into my board it says that the library is not found can anyone help...
Make sure it's entered into your sketch as follows:
#include
SoftwareSerial.h should be highlighted in the code.
Too hi-tech for me. I’m still wobbling a piece of steel to make a thunder sound effect. Great video as always though! -Mark
Thanks Mark. Webols wobble, but they don't fall down! Never thought about wobbling the steel, I always vocalize the sound fx. lol
Using amplifier is optional or Mandatory in some cases?!
So far I have not found the need to amplify, but I may find a need some day! Thanks
Good afternoon sir i hope this message finds you well, did you ever solve the powerup pop issue?
No. When contacting the manufacturer they were no help in resolving the issue.
@@TomsTrainsandThings Would it help to start with low volume and then ramp it up?
The code in the description doesn't match the code on your screen... several lines are missing.
I managed to re-make some of it from the text on the screen. Compared to other peoples missing or broken code this is actually almost about to kind of work. Limited options but.. works to a degree.
If your talking about the Serial.Print Lines. Those are only used for the setup for the sketch while I'm building the sketch . This makes it easier to find what happens when during the execution of the sketch.
how much memory is your computer
32 GB
Thank you for the info love your show Merry Christmas you and yours
Great stuff, Tom. I plan to use some of theae on my layout. Miles Hale has doe this using a child's science kit to make the sensor.
Thanks Ron. There are some on Amazon that I found 5 for $10. I may order them but they will take 3-4 weeks for delivery. I'm impatient though. lol I looking for a different sensor with a longer range.