Sound cards

A place for discussing battery-electric locomotives, whether they're diesel, steam or even electric outline
User avatar
philipy
Moderator
Moderator
Posts: 5033
Joined: Sun Jan 30, 2011 3:00 pm
Location: South Northants

Re: Sound cards

Post by philipy » Wed May 03, 2023 1:42 pm

-steves- wrote: Wed May 03, 2023 11:19 am

I have just found that a 7805 regulator and a couple of capacitors might do the job,
Yes that works, I've done it a number of times. Just a fiddle to get the right value caps.
-steves- wrote: Wed May 03, 2023 11:19 am but finding the components at a reasonable price seems more difficult :oops:
errr... how cheap do you want...10 for £2.75 sounds very reasonable to me?

https://www.amazon.co.uk/Voltage-Regula ... 12&sr=8-11


Or you can do much the same using an LM317 and a couple of resistors, and if one of those is a variable resistor you can tweak the voltage easily. Doing it this way, you can solder the the resistors ( carefully!) directly to the legs of the LM317 and don't even need a piece of pcb/veroboard!
Variable voltage.jpg
Variable voltage.jpg (96.87 KiB) Viewed 3375 times
https://www.electronics-tutorials.ws/bl ... upply.html
Philip

User avatar
-steves-
Administrator
Administrator
Posts: 2412
Joined: Thu Jul 28, 2011 1:50 pm
Location: Cambridge & Peterborough

Re: Sound cards

Post by -steves- » Wed May 03, 2023 1:54 pm

philipy wrote: Wed May 03, 2023 1:42 pm
-steves- wrote: Wed May 03, 2023 11:19 am

I have just found that a 7805 regulator and a couple of capacitors might do the job,
Yes that works, I've done it a number of times. Just a fiddle to get the right value caps.
-steves- wrote: Wed May 03, 2023 11:19 am but finding the components at a reasonable price seems more difficult :oops:
errr... how cheap do you want...10 for £2.75 sounds very reasonable to me?

https://www.amazon.co.uk/Voltage-Regula ... 12&sr=8-11
It's actually the capacitors that are expensive, the regulators themselves are very reasonably priced. From what I have read I need a 10uf 25v cap and a 1uf 10v cap for 12v to 5v, but no idea what I would need for a 2s pack? I am not an electronics guru as you have probably guessed by now, lol :shock: :oops: I can buy bulk packs of caps cheap, but I just don't need the range that's offered and it seems a waste to buy stuff I will probably never use :dontknow:

I do like the idea of using resistors on the other one though, I do have packs and packs of those, lol :thumbup:

I was never planning on using a board, just carefully soldered direct to the regulator. :thumbup:
The buck stops here .......

Ditton Meadow Light Railway (DMLR)
Member of Peterborough and District Association
http://peterborough.16mm.org.uk/

User avatar
philipy
Moderator
Moderator
Posts: 5033
Joined: Sun Jan 30, 2011 3:00 pm
Location: South Northants

Re: Sound cards

Post by philipy » Wed May 03, 2023 2:35 pm

Capacitor voltage doesn't much matter in this kind of application, as long as its rated above the actual likely voltage of the circuit. The downside is that the higher the voltage the physically bigger they tend to be. Personally I'd stick with the LM317 for this job. No doubt electronic purists might quibble!
Philip

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Sound cards

Post by ge_rik » Wed May 03, 2023 7:37 pm

Rather than making your own, it's probably cheaper (and easier) to buy a buck converter module like this one - https://www.ebay.co.uk/itm/155366512858
This has variable outputs but you can get them with dedicated 5v (and 3.3v) output.

A bit more searching and you can probably track down even cheaper versions, especially if you're prepared to get them from China

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

Phil.P
Fireman
Fireman
Posts: 430
Joined: Thu Jan 31, 2019 3:28 pm
Location: Staffs. UK

Re: Sound cards

Post by Phil.P » Wed May 03, 2023 11:36 pm

If you email me, I will stick a Micron one in the post..

If you are averse to soldering, I can even solder wires on it for you.

Phil.P

User avatar
-steves-
Administrator
Administrator
Posts: 2412
Joined: Thu Jul 28, 2011 1:50 pm
Location: Cambridge & Peterborough

Re: Sound cards

Post by -steves- » Sat May 06, 2023 3:29 pm

Phil.P wrote: Wed May 03, 2023 11:36 pm If you email me, I will stick a Micron one in the post..

If you are averse to soldering, I can even solder wires on it for you.

Phil.P
Many thanks for the offer Phil.

I managed to pick up some like Rik mentioned, I got them from eBay for £1.80 each and are very easy to tune to the required voltage. What did surprise me was that once set, you can put any voltage in and still get the set voltage out, I thought it might change if I added another 3.7v battery, but it remained within 0.2v tolerance no matter what I tried, and I tried from 8.2v up to 25v.
The buck stops here .......

Ditton Meadow Light Railway (DMLR)
Member of Peterborough and District Association
http://peterborough.16mm.org.uk/

Phil.P
Fireman
Fireman
Posts: 430
Joined: Thu Jan 31, 2019 3:28 pm
Location: Staffs. UK

Re: Sound cards

Post by Phil.P » Sat May 06, 2023 5:02 pm

The things you do have to watch, are boost-converters..

Most will give you the required output from a lower voltage, but then the output tracks the input, once it exceeds your initial setting..

You can get a combination of a boost-converter, and buck-converter, on the same board.

Just a little something to be aware of..

Phil.P

User avatar
-steves-
Administrator
Administrator
Posts: 2412
Joined: Thu Jul 28, 2011 1:50 pm
Location: Cambridge & Peterborough

Re: Sound cards

Post by -steves- » Sun May 07, 2023 2:04 pm

Well I managed to fit everything into my tiny little HUGHIE, speaker in the firebox and all electrics in the boiler, with 2 flickering LEDs in the firebox which has an open door to see red and yellow flickering in the firebox as it goes by, not that you can see it in this video.

I know it's a single track which just repeats after 40 seconds, but for me, for the cost of it, I am more than happy :D


The buck stops here .......

Ditton Meadow Light Railway (DMLR)
Member of Peterborough and District Association
http://peterborough.16mm.org.uk/

User avatar
philipy
Moderator
Moderator
Posts: 5033
Joined: Sun Jan 30, 2011 3:00 pm
Location: South Northants

Re: Sound cards

Post by philipy » Sun May 07, 2023 4:24 pm

That seems fine Steve. I couldn't detect the join at 40 seconds.
Philip

User avatar
-steves-
Administrator
Administrator
Posts: 2412
Joined: Thu Jul 28, 2011 1:50 pm
Location: Cambridge & Peterborough

Re: Sound cards

Post by -steves- » Sun May 07, 2023 5:20 pm

philipy wrote: Sun May 07, 2023 4:24 pm That seems fine Steve. I couldn't detect the join at 40 seconds.
To be fair, I don't think it finished the first loop, but the looping time is slightly noticeable, but enough that I am happy to live with, especially if was a full train clattering around. I just press and hold the bind button for more than one second and it loops.

Just have to work out how to do a diesel start and then loop a running diesel at the end of it? I have the files made up, just no idea how to do the task yet.
The buck stops here .......

Ditton Meadow Light Railway (DMLR)
Member of Peterborough and District Association
http://peterborough.16mm.org.uk/

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Sound cards

Post by ge_rik » Mon May 08, 2023 6:06 pm

-steves- wrote: Sun May 07, 2023 5:20 pm
philipy wrote: Sun May 07, 2023 4:24 pm That seems fine Steve. I couldn't detect the join at 40 seconds.
To be fair, I don't think it finished the first loop, but the looping time is slightly noticeable, but enough that I am happy to live with, especially if was a full train clattering around. I just press and hold the bind button for more than one second and it loops.

Just have to work out how to do a diesel start and then loop a running diesel at the end of it? I have the files made up, just no idea how to do the task yet.
I've not tried it myself with this module but a few years ago I used a similar MP3 player for the sounds on my Ford(ish) railbus. I have to manually switch from one track to the next using the outputs from the Deltang receiver to trigger the Next and Previous track inputs on the player (Pins 9 and 11 on the DF player).

By arranging the tracks on the SD card carefully you can go from:
  • silence
  • Start up to tickover
  • Tickover to accelerate and running
  • Deceleration to tickover
  • Tickover to run down and silence
Each track lasts for 20 minutes - so saves having to loop the track
There's more about it on my blog (ignore the bit about having to invert the output from the Rx, that was before David changed the outputs to provide 0v triggers for soundcards).

https://riksrailway.blogspot.com/2015/1 ... sytem.html

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
-steves-
Administrator
Administrator
Posts: 2412
Joined: Thu Jul 28, 2011 1:50 pm
Location: Cambridge & Peterborough

Re: Sound cards

Post by -steves- » Fri May 12, 2023 4:49 pm

ge_rik wrote: Mon May 08, 2023 6:06 pm
By arranging the tracks on the SD card carefully you can go from:
  • silence
  • Start up to tickover
  • Tickover to accelerate and running
  • Deceleration to tickover
  • Tickover to run down and silence
Each track lasts for 20 minutes - so saves having to loop the track


Rik
Well I have created the appropriate files as you suggested, that part is fine.

I am however really struggling to get the files to play in the correct order. I have numbers them, copied them to the card in the right order, recreated the files in the right time order, but alas it still plays them in the order I would like.

Any thoughts anyone?
The buck stops here .......

Ditton Meadow Light Railway (DMLR)
Member of Peterborough and District Association
http://peterborough.16mm.org.uk/

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Sound cards

Post by ge_rik » Fri May 12, 2023 6:54 pm

-steves- wrote: Fri May 12, 2023 4:49 pm Well I have created the appropriate files as you suggested, that part is fine.

I am however really struggling to get the files to play in the correct order. I have numbers them, copied them to the card in the right order, recreated the files in the right time order, but alas it still plays them in the order I would like.

Any thoughts anyone?
Hmmmm ....
Not sure why you're having problems. Did you drag and drop each file one at a time in the correct order on to the SD card? That was the only way I could feel certain they would be played in sequence. It seems that numbering them makes no difference to how they are played despite what it says in the blurb.

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
-steves-
Administrator
Administrator
Posts: 2412
Joined: Thu Jul 28, 2011 1:50 pm
Location: Cambridge & Peterborough

Re: Sound cards

Post by -steves- » Fri May 12, 2023 7:16 pm

ge_rik wrote: Fri May 12, 2023 6:54 pm
-steves- wrote: Fri May 12, 2023 4:49 pm Well I have created the appropriate files as you suggested, that part is fine.

I am however really struggling to get the files to play in the correct order. I have numbers them, copied them to the card in the right order, recreated the files in the right time order, but alas it still plays them in the order I would like.

Any thoughts anyone?
Hmmmm ....
Not sure why you're having problems. Did you drag and drop each file one at a time in the correct order on to the SD card? That was the only way I could feel certain they would be played in sequence. It seems that numbering them makes no difference to how they are played despite what it says in the blurb.

Rik
I indeed copied them singularly, even making sure that it was at least the next minute before copying the next so the time stamps were minutes apart and not just seconds, but alas, it still does it's own thing? :dontknow:
The buck stops here .......

Ditton Meadow Light Railway (DMLR)
Member of Peterborough and District Association
http://peterborough.16mm.org.uk/

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Sound cards

Post by ge_rik » Sat May 13, 2023 6:52 am

I'll have a play with one to see if I can figure out what's going on

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
GAP
Trainee Driver
Trainee Driver
Posts: 686
Joined: Sun Dec 23, 2012 10:34 pm
Location: Bundaberg QLD Australia
Contact:

Re: Sound cards

Post by GAP » Sat May 13, 2023 10:36 pm

-steves- wrote: Fri May 12, 2023 4:49 pm
ge_rik wrote: Mon May 08, 2023 6:06 pm
By arranging the tracks on the SD card carefully you can go from:
  • silence
  • Start up to tickover
  • Tickover to accelerate and running
  • Deceleration to tickover
  • Tickover to run down and silence
Each track lasts for 20 minutes - so saves having to loop the track


Rik
Well I have created the appropriate files as you suggested, that part is fine.

I am however really struggling to get the files to play in the correct order. I have numbers them, copied them to the card in the right order, recreated the files in the right time order, but alas it still plays them in the order I would like.

Any thoughts anyone?
Maybe try adding a letter in front of each file eg asong, bsong, csong and see if that works.
Graeme
From the home of the Ringbalin Light Railway
https://ringbalin-light-railway.blogspo ... -page.html

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Sound cards

Post by ge_rik » Sun May 14, 2023 7:18 pm

GAP wrote: Sat May 13, 2023 10:36 pm Maybe try adding a letter in front of each file eg asong, bsong, csong and see if that works.
Not had a chance to play with mine as yet but the DF Robot website about the DF player clearly says

NOTE: The order you copy the mp3 into micro SD card will affect the order mp3 played , which means play(1) function will play the first mp3 copied into micro SD card.

I think this is irrespective of what the files are called

I'm 98% certain that I solved the problem of file order by copying each file one at a time on to the card.

Silly question to someone with your knowledge and experience of IT, but have you tried formatting the SD card before copying the files on to it?

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
-steves-
Administrator
Administrator
Posts: 2412
Joined: Thu Jul 28, 2011 1:50 pm
Location: Cambridge & Peterborough

Re: Sound cards

Post by -steves- » Sun May 14, 2023 8:18 pm

ge_rik wrote: Sun May 14, 2023 7:18 pm
GAP wrote: Sat May 13, 2023 10:36 pm Maybe try adding a letter in front of each file eg asong, bsong, csong and see if that works.
Not had a chance to play with mine as yet but the DF Robot website about the DF player clearly says

NOTE: The order you copy the mp3 into micro SD card will affect the order mp3 played , which means play(1) function will play the first mp3 copied into micro SD card.

I think this is irrespective of what the files are called

I'm 98% certain that I solved the problem of file order by copying each file one at a time on to the card.

Silly question to someone with your knowledge and experience of IT, but have you tried formatting the SD card before copying the files on to it?

Rik
I have indeed tried that, as I say, I even waited for the minute to pass, just to make sure, tried 3 different cards, all the same and the same track is the one that it plays in the wrong place, very very strange.
The buck stops here .......

Ditton Meadow Light Railway (DMLR)
Member of Peterborough and District Association
http://peterborough.16mm.org.uk/

User avatar
ge_rik
Administrator
Administrator
Posts: 6497
Joined: Sun Oct 25, 2009 10:20 pm
Location: Cheshire
Contact:

Re: Sound cards

Post by ge_rik » Mon May 15, 2023 7:57 am

Hi Steve
I've browsed a few forums and the only suggestion I can make is that it seems some cheaper cloned DF Players behave differently to genuine DF Players. Might be worth investing in a DF Player from a reliable source to see if you get the same problem.

Rik
------------------------
Peckforton Light Railway - Blog Facebook Youtube

User avatar
-steves-
Administrator
Administrator
Posts: 2412
Joined: Thu Jul 28, 2011 1:50 pm
Location: Cambridge & Peterborough

Re: Sound cards

Post by -steves- » Mon May 15, 2023 10:56 am

ge_rik wrote: Mon May 15, 2023 7:57 am Hi Steve
I've browsed a few forums and the only suggestion I can make is that it seems some cheaper cloned DF Players behave differently to genuine DF Players. Might be worth investing in a DF Player from a reliable source to see if you get the same problem.

Rik
Well after lots of faffing around, it appears that either the next button plays the previous track, or on these DF Players you have to load the files on in reverse order. Either which way, it's now working, thank you so much for everyone's input :thumbup:
The buck stops here .......

Ditton Meadow Light Railway (DMLR)
Member of Peterborough and District Association
http://peterborough.16mm.org.uk/

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest