DEMO: Arduino_light plays old school tunes on Quickstart board
pedward
Posts: 1,642
I wanted to demonstrate how to use the Arduino_light SPIN object, beyond the unit tests, so I ported a tune player from the Arduino forum.
The demo program here http://obex.parallax.com/objects/download/aux/168/ has several tunes like the Simpsons theme, Mission Impossible,
and several Super Mario Brothers themes.
You can plug a little speaker (giftcard speakers are great) into the quickstart header and listen to the Propeller sound like someone set off
all of the cards in the Hallmark section at Wal-Mart!
The demo program here http://obex.parallax.com/objects/download/aux/168/ has several tunes like the Simpsons theme, Mission Impossible,
and several Super Mario Brothers themes.
You can plug a little speaker (giftcard speakers are great) into the quickstart header and listen to the Propeller sound like someone set off
all of the cards in the Hallmark section at Wal-Mart!
Comments
Thanks for a great object!
Paul
It is a short sample 8bit 8Khz unsigned PCM RAW of Arnold in Terminator saying "I'll be back".
This isn't really new, but it is just something to get people excited and is something to start with to do even neater things (like 16 Arnolds chattering away?).
Great work!
The avatar is classic, too!
What's the reason for an Arduino object on the Propeller; To lure "Arduino people" to the Propeller?
/Johannes
The purpose is to give people who are familiar with the Arduino something to start with. To be honest, SPIN and the OBEX continuum don't offer the most user friendly experience. For that matter, anyone looking to do simple stuff like make beeps and boops, this definitely offers a simpler interface than programming the counter directly. Even the CTR object is obtuse and not beginner friendly. All I've done is re-implement all of the basic stuff in one place, wrapped in an API that is already well established and supported by another platform.
I called it "light" because if there demand, I may create an Arduino_full that is more completely compatible. This would use a supervisor COG to implement counter overflow detection, perhaps interrupts (if I can figure out how to do it properly), and tone duration control.
http://youtu.be/9GgY98Y4b2k