Go Down

Topic: MOD Player (not Arduino based) (Read 4034 times) previous topic - next topic

WilliamK Govinda

Just curious about this project, its not Arduino based but it uses an ATmega32 chip.

http://www.youtube.com/watch?v=tuvwfJhWyik&feature=player_embedded

http://translate.google.com/translate?u=http%3A%2F%2Fwww.elektronika.kvalitne.cz%2FATMEL%2FMODplayer%2FMODplayer.html&hl=en&ie=UTF-8&sl=cs&tl=en

22Khz, 4 voices, uses an external RAM (512kb) as reading from the EEPROM was too slow.

I got one of those Philips TDA 1543 chips here, received yesterday, so, after I'm done with our moving and my new office is set, I will play around with the Arduino and that chip. ;-) (see my other thread about this)

Best Regards, WilliamK

fulvio

Did you get a MOD player working for your Arduino? Would be very interested if you did.

fulvio

I've actually found the following, which is quite awesome:

http://www.chipkit.org/forum/viewtopic.php?f=15&t=572

It only works with the chipKIT UNO32 (PIC) board and not the Arduino (ATMEGA)

mre521

Hey this is my first post here and this may sound like high claims, but I have created a mod player ON the Arduino. I don't use the Arduino ide for it, i have made it in AVR Studio. However, it is running on the Arduino's atmega328. I will post my (glitchy, incomplete) code here and a video later. The player does not support every effect because I am lazy and the ones it does support are glitchy at places; however it still does sound pretty good. It does dual channel (stereo) sound output via high speed PWM timers on the chip (pin 10 is right, pin 3 is left channel). Pins 4-7 you can hook up LEDs which light when the player channels 1-4 are active. The player only supports 4 channel mod files, and the mod must fit in the program flash along with the player code. This means that really mods < 20kb can be played. Many chiptunes will fit. I have included the module seen in the video above just as a test. Note: if you intend to compile the code, the utilities included must be used to change the module that is played. avrmodconvert I have made myself to convert the mod file into a format created by me that is easier on the AVR end to read and is also smaller than the original file. The included hex file can be burnt to your Arduino through avrdude to test.

If you like this, have fun.

amacmullen14

Pffft, 4 channels? 

How about this guy who does 28 channels?      :D
http://www.youtube.com/watch?v=2Wtcph5hyu8


Here's 8 channels, 22.1KHz:
http://www.youtube.com/watch?v=8WtwkGZnR4M


mre521

I understand that guy has a better player there, however, the significance of my player is that it will run on stock Arduino hardware. And >= atmega328 @ 16MHz arduino should be able to run the code, with possible modifications to the registers if used on another chip.

fulvio


I understand that guy has a better player there, however, the significance of my player is that it will run on stock Arduino hardware. And >= atmega328 @ 16MHz arduino should be able to run the code, with possible modifications to the registers if used on another chip.


I love the fact that you've done this. I can imagine the amount of researching and code that has gone it to making sure it works on the stock hardware.

Thumbs up to you, my friend. It's people like you that bring back the oldschool demoscene days.

mre521

Here's a vid for y'all:
https://www.youtube.com/watch?v=8jA8dkzGCV4

not quite sure how to embed the video here

Go Up