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...
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).
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.
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.
The signal is too sharp,
With a capacitor it becomes a little softer (and of course higher) but that's all.
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?
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:
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.