vDrive: With MDV sound? I wonder.

Nagging hardware related question? Post here!
User avatar
Popopo
Gold Card
Posts: 479
Joined: Wed Apr 07, 2021 10:37 am

Re: vDrive: With MDV sound? I wonder.

Post by Popopo »

stephen_usher wrote: Sat Jun 27, 2020 5:32 pm Actually I think I'm there, other than making a PCB and soldering the components.

I've created a new and better sample, with a higher volume and cutting out some of the peaks and then set the ATTiny85 to play at double the speed it was previously, which was already a factor of 4 faster than the sample code said it should be and...

https://youtu.be/VhUG1TIi_j8

P.S. I've only been testing this with the vDrive ZX at the moment but does it make difference to the experience! It just feels and sounds right. It's as if you're using a real Microdrive. It make soooo much difference.

I'll generate a schematic and post the code so that others can make this. Maybe Charles can change the vDrive and add this instead of the beeper? The cost of the components is probably in the region of 50p or less.
Thank you for your work.
I am looking forward to implement a sound system to the MicroDrivePico.
I was more about looking for another solution, but that one also could work fine.

May I guess it is OpenSource? (in case that I decide to add it to the PCB).


User avatar
Popopo
Gold Card
Posts: 479
Joined: Wed Apr 07, 2021 10:37 am

Re: vDrive: With MDV sound? I wonder.

Post by Popopo »

stephen_usher wrote: Sat Jun 27, 2020 8:16 pm Here are the schematics for the vDrive sampled sound board plus source code and compiled HEX file to load onto the ATTiny85 20U.

http://www.lingula.org.uk/~steve/share/vdrive-sound/
Thank you :)


User avatar
Popopo
Gold Card
Posts: 479
Joined: Wed Apr 07, 2021 10:37 am

Re: vDrive: With MDV sound? I wonder.

Post by Popopo »

:)
Sorry for my ignorance,
How did you digitalize the sound into a C code?
Thanks


stephen_usher
Super Gold Card
Posts: 553
Joined: Tue Mar 11, 2014 8:00 pm
Location: Oxford, UK.
Contact:

Re: vDrive: With MDV sound? I wonder.

Post by stephen_usher »

I recorded it on my iPhone then converted that to a WAV file, then transcoded to 8 bit samples and a low sample rate. I've forgotten what I used now. You can then just convert each byte to a hex number to insert into a C array.


User avatar
Popopo
Gold Card
Posts: 479
Joined: Wed Apr 07, 2021 10:37 am

Re: vDrive: With MDV sound? I wonder.

Post by Popopo »

stephen_usher wrote: Sat Jun 27, 2020 5:32 pm The cost of the components is probably in the region of 50p or less.
I love your idea, but nowadays I cannot believe the cost of an Attiny86. Any version TH or SMD.
How is possible?

Anyway I will use it. Checking docs in the blog that describe also the idea with details.
:)
Thanks


User avatar
Popopo
Gold Card
Posts: 479
Joined: Wed Apr 07, 2021 10:37 am

Re: vDrive: With MDV sound? I wonder.

Post by Popopo »

Hi again!
Play around with the Digispark board with Attiny85, the sounds that I get is very metallic and annoying.

Could you tell me which speaker did you use to get this sweet sound?
Did you add a capacitor to the speaker?

:) thanks again


Derek_Stewart
Font of All Knowledge
Posts: 4756
Joined: Mon Dec 20, 2010 11:40 am
Location: Sunny Runcorn, Cheshire, UK

Re: vDrive: With MDV sound? I wonder.

Post by Derek_Stewart »

Hi,
Popopo wrote: Sat May 31, 2025 7:59 pm Could you tell me which speaker did you use to get this sweet sound?
Did you add a capacitor to the speaker?

could you not use the internal QL speaker to output the required sound?


Regards,

Derek
User avatar
Popopo
Gold Card
Posts: 479
Joined: Wed Apr 07, 2021 10:37 am

Re: vDrive: With MDV sound? I wonder.

Post by Popopo »

Derek_Stewart wrote: Sun Jun 01, 2025 12:00 pm could you not use the internal QL speaker to output the required sound?
what?


User avatar
Popopo
Gold Card
Posts: 479
Joined: Wed Apr 07, 2021 10:37 am

Re: vDrive: With MDV sound? I wonder.

Post by Popopo »

The signal is too sharp,
With a capacitor it becomes a little softer (and of course higher) but that's all.
photo_2025-06-01_22-45-09.jpg
And another question,
I am using for testing the Attiny85 within Digispark board, once I power it up, it takes about 10 seconds to start playing the sound, not immediately as it supposes to do.
Is it normal? too long time to start it attached to the activity led. Isn't it?


User avatar
bwinkel67
QL Wafer Drive
Posts: 1537
Joined: Thu Oct 03, 2019 2:09 am

Re: vDrive: With MDV sound? I wonder.

Post by bwinkel67 »

stephen_usher wrote: Wed Jun 24, 2020 10:08 pm A conversation on the QL Facebook page got me wondering how easy it would be to get the digitised sound of a microdrive running to play when the vDrive was accessed.
A long time ago I bought Johan Engdahl's little device to add sound to my vDrive. I sounded pretty bad:

https://youtu.be/JbBH4GgZxsM?t=466

Is there a way to reprogram that device (it has a USB connection) with your code? I recall seeing a YouTube video of yours where the sound was perfect.


Post Reply