Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Sin wave with PWM on a PIC18F4520

Loading...

Sign in or sign up now!
3,954
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 18, 2009

A simple program that uses the pulse width multiplier on timer2 of the PIC18F4520. (With assistance of a DAC)

Using interrupts and assigning various points of a sin wave to an array. it was relatively easy. Then using the joystick you could select between: my attempt of the Victory theme from Final Fantasy VI (felt it was appropriate) my attempt at the Bicycle Ride music from Pokemon Yellow, Red, and Blue (nostalgia FTW) lastly you could simply play an octave

The speaker is pretty crappy so it doesn't sound too good, I should have given the Peizo speaker a shot. It was pretty hard to hand solder the new resistor into the DAC since it is so small and I did such a good job of using as little solder paste as possible so I had to heat up the whole pad before removing the old one.

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 4 dislikes

Link to this comment:

Share to:
see all

All Comments (4)

Sign In or Sign Up now to post a comment!
  • very nice job. also don't mind the dumbfucks beneath. still as is the case with any amateur electronics project, it would be nicer if you share the code and such.

  • Oh Shit i wasted 28 Seconds of my life

  • where is sinewave? I see only your hand and some crapy circuit... what does it show?

    you should learn , how to upload an effective youtube video..

  • can i get the codes for this programm. if you dont mind as i am doing the same project=)

Loading...
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