Added: 3 years ago
From: mikoro1
Views: 27,266
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (27)

Sign In or Sign Up now to post a comment!
  • hurray for 8-bit music!

  • sounds decent. what's the PWM frequency? clock divider

  • Is the speaker connected to the PWN pin? I see you need your computer, but can you put the music on, for exemple a separated memory? I wanna do an electronic drum with a pic or an AVR but I don't understand how to play music with it. I've heard some "Happy birthday" on a pwm, and it's not what I'm looking for.. I ean I don't wanna have a bad sound for the drum sounds..

    (I'm french..)

    Thx

  • @killthebetrayer Bonjour, yes it is. You can definitely put the music on an external memory. Check out the video response by Peterlsza for example.

  • @mikoro1 WOW I see that i've many things to learn about microcontroller.. I know that an electronic drum is not very easy but I have this idea in my head ..

  • does it work with arduino?

  • @robot797 Can't see any reason why it shouldn't work

  • @mikoro1 nice what could i do to do that :P

  • Good job on the avr dude it works amazingly well

    how exactly does youtube know the name of the song if it was IN the video?

    they must have a pretty good sound recognition software,

  • Cool project, even with the low transfer rate :D

  • find some other music...fuck

  • You mind posting the code? I've had no success at this.

  • nice project - gay sound

  • @xcape77 On every sound project you find a music geek complaining about the music being played -.-

  • @xcape77 ignorant fuck is ignorant

  • I did something very similar to this. I was wondering about your electrical connections: Am I seeing wrong, or are you driving the speaker directly from the AVR I/O pin without a transistor. If so, are you sure the pin is not sourcing too much current?

    AVR models I know are rated at 40 mA per I/O and a speaker this size is typically 8 ohm/0.5W. With these numbers, even at 2.7V, you are outside specifications for both (338 mA, 0.9W)...

  • Yeah, you're right. But it worked, at least for the few hours a played with it. I later did a version with an op-amp in between which had much better sound output. And the controller didn't heat up as much... :)

  • hehe :)

    Be careful though. The power supply of the STK500 itself seems to be rated at 500mA (see User Guide pp. 3-14, second paragraph). Risking making nice smoke with an AVR chip is one thing, but I'm sure you don't want to break your board :)

    If you are working at 5V and your speaker is 8 ohm, you are over 500mA (625mA) just for the speaker, not counting the microcontroller itself.

  • Looks like the Transistor is on the breadboard. Either way, looks like a neat little use for an AVR. I always thought you needed a lot more parts than this.

  • how come there are just 2 wires coming from the speaker? shouldn't there be 3? (GND, VCC, and data)

  • A speaker is basically just a coil, not a digital item.

  • you have no idea how a speaker works do you? It's ANALOG. Look-it-up.

  • I am totally new to microcontroller and stuff. Any particular topic I should start from?

  • Hi, check the AVRFreaks site - especially the forums and its tutorial section.

  • Nice project, dude!

  • Comment removed

  • i guess you use the UART receive interrupt to assign the received value directly to the OCRx.

  • Yep, the audio file's sample rate matches the UART clock. There's basically just the UART init code and a one liner interrupt.

  • line in and out;p

  • lol!!! very nice...

    How... Do you have a web page?

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more