Welcome Guest [Log In] [Register]
Rotation Advertisements



We hope you enjoy your visit to this forum.


If you are reading this then it means you are currently browsing the forum as a guest, we don’t limit any of the content posted from guests however if you join, you will have the ability to join the discussions! We are always happy to see new faces at this forum and we would like to hear your opinion, so why not register now? It doesn’t take long and you can get posting right away.


Click here to Register!

If you are having difficulties validating your account please email us at admin@dbzf.co.uk


If you're already a member please log in to your account:

Username:   Password:
Add Reply
Small project
Topic Started: Apr 29 2010, 10:11 PM (472 Views)
Rockman
Member Avatar
hoighty-toighty

http://www.youtube.com/watch?v=yQX8o91TO-I

6 hours of work complete. The project was to take the microprocessor and code in Assembly language using a variety of techniques to make the speakers play a song. There are two boards there that are playing the melody and the backup melody for The Legend of Zelda. This was also in combination with storing the program to the flash memory on the board so that you can take the boards anywhere, plug them into power and play the song.

Terrible quality video, but all I had was my phone.
Posted Image

JAke is a copyright of Spazo and Pickle Flavored Fudge Pops inc.
Member Offline View Profile Quote Post Goto Top
 
Meowth
Member Avatar
=._.=

That's nice, what else can you make it do?
Posted Image
Posted Image
Member Offline View Profile Quote Post Goto Top
 
+ Pelador
Member Avatar
Crazy Awesome Legend

Can you turn me into Robocop please?


Posted Image

http://www.youtube.com/user/jonjits
Member Offline View Profile Quote Post Goto Top
 
Rockman
Member Avatar
hoighty-toighty

Kyonko
Apr 29 2010, 10:30 PM
That's nice, what else can you make it do?
Run a motor, use it to dial and act as a phone, run a servo motor, calculate numbers, display something on the lcd, prompt the user for input and display output.
Knowing your hex to binary conversions is very helpful when programming these things.
Posted Image

JAke is a copyright of Spazo and Pickle Flavored Fudge Pops inc.
Member Offline View Profile Quote Post Goto Top
 
+ Pelador
Member Avatar
Crazy Awesome Legend

You must be quite good at maths. Hex is hard. I had a brief look at it once and it went straight over my head. But maybe I'm just dumb.


Posted Image

http://www.youtube.com/user/jonjits
Member Offline View Profile Quote Post Goto Top
 
* Light
Member Avatar
Yo

This is really cool,
If you ever get time post some vids or pics of it in the creation process, I find this stuff interesting.
Posted Image
Posted Image
Member Offline View Profile Quote Post Goto Top
 
Meowth
Member Avatar
=._.=

Pelador
Apr 30 2010, 12:33 AM
You must be quite good at maths. Hex is hard. I had a brief look at it once and it went straight over my head. But maybe I'm just dumb.
He faps to maths, it's one of his biggest turn ons.
Posted Image
Posted Image
Member Offline View Profile Quote Post Goto Top
 
Rockman
Member Avatar
hoighty-toighty

I actually can post some of the code bits here,
Code:
 
;NOTE LENGTHS ARE LISTED IN 1MS INCREMENTS
VAR1 DC.W 0
WHOLE EQU 768*2
HALF EQU WHOLE/2
QUARTER EQU WHOLE/4
EIGHTH EQU WHOLE/8
QUARTER_THIRD EQU HALF/3
EIGHTH_THIRD EQU QUARTER/3
SIXTEENTH EQU WHOLE/16
SIXTEENTH_THIRD EQU EIGHTH/3
THIRTYSECOND EQU WHOLE/32
THIRTYSECOND_THIRD EQU SIXTEENTH/3
SIXTYFOURTH EQU WHOLE/64
SIXTYFOURTH_THIRD EQU THIRTYSECOND/3
BREATH EQU 5

DC.W B4b,HALF
DC.W REST,BREATH
DC.W REST,EIGHTH_THIRD+EIGHTH_THIRD
DC.W B4b,EIGHTH_THIRD
DC.W REST,BREATH
DC.W B4b,EIGHTH_THIRD
DC.W B4b,EIGHTH_THIRD
DC.W B4b,EIGHTH_THIRD
DC.W REST,BREATH

Basically the computer scans through these variables individually at a pace of 24Mhz per second, loads them into the frequency generator and outputs that frequency based on the scale factor of a whole note of 768*2.
The code stands for, DC.W, Character variable one binary word in length, B4b stands for a B flat note on the 4th octave and the portion after that is how long it lasts.
Once you are done making sure the setup is complete, your song is correct, (the music itself in code value is 7 printed pages long by itself), then you load it to the microprocessor using the editor and it plays.
Posted Image

JAke is a copyright of Spazo and Pickle Flavored Fudge Pops inc.
Member Offline View Profile Quote Post Goto Top
 
+ Pelador
Member Avatar
Crazy Awesome Legend

lmao. My mathmatical ability is not good. I can never even remember pythagoras now matter how many times it's explained. I'm more into learning guitar at the the moment anyway.


Posted Image

http://www.youtube.com/user/jonjits
Member Offline View Profile Quote Post Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
ZetaBoards - Free Forum Hosting
Create your own social network with a free forum.
« Previous Topic · General Discussion · Next Topic »
Add Reply

Theme Designed by McKee91