Fun with the Buzzer

661 views
Skip to first unread message

Bryan Lambrecht

unread,
Jun 28, 2012, 9:40:34 PM6/28/12
to r2c2---...@googlegroups.com
So I let my wife play around with the buzzer G-code and came up with this jingle and thought I would share. (It is now part of my end.Gcode :P)


M300 S400 P450
M300 S0 P100
M300 S400 P450
M300 S0 P100
M300 S400 P450
M300 S0 P100
M300 S320 P325
M300 S0 P100
M300 S480 P125
M300 S0 P25
M300 S400 P400
M300 S0 P100
M300 S320 P325
M300 S0 P100
M300 S480 P125
M300 S0 P25
M300 S400 P750
M300 S0 P150
M300 S574 P450
M300 S0 P100
M300 S574 P450
M300 S0 P100
M300 S574 P450
M300 S0 P100
M300 S630 P325
M300 S0 P100
M300 S480 P125
M300 S0 P25
M300 S375 P400
M300 S0 P100
M300 S320 P325
M300 S0 P100
M300 S480 P125
M300 S0 P25
M300 S400 P750

 let me know what you think!

-Bryan

Jorge Pinto

unread,
Jun 29, 2012, 5:02:23 AM6/29/12
to r2c2---...@googlegroups.com
Hmmm, I can't listen that now :-( Could you please do a quick record
and share? (I would quick record with my smartphone and share on
youtube).

--
Cumprimentos,

Jorge Pinto
jpi...@bitbox.pt
Tel: 00 351 927145983

Rui Ribeiro

unread,
Jun 29, 2012, 11:34:40 AM6/29/12
to r2c2---...@googlegroups.com
Jorge,
 
People are getting very creative! You need to make my G302 g-code in the mainstream! ;-)
 
Line 1047 until 1067
plus:
 
and references to .h files...
 
Rui

2012/6/29 Jorge Pinto <jpi...@bitbox.pt>

Bryan Lambrecht

unread,
Jun 29, 2012, 11:58:38 AM6/29/12
to r2c2---...@googlegroups.com
I will try to make a video when I get home tonight.

Rui! that is awesome! She wold have killed for that!

She ended up just guess and checking what values gave what pitch and length, which took forever!

-Bryan

bobc

unread,
Jun 29, 2012, 1:07:22 PM6/29/12
to r2c2---...@googlegroups.com
That is much easier to use ;)

The filenames in Gcode are very much a hack, there is no standard way to specify string parameters in Gcode. A better way to specify strings is with an "extended comment" e.g. (DATA,Some string). At least this will be ignored by standard compliant GCode parsers. Unfortunately software like pronterface already uses the hacky method to read and write files with the M2x commands, so I implemented the same method for compatibility, but it is really not a method I would like to see used in other commands.

It is assumed that Gcode is not case-sensitive, so we may have problems with lower/upper case. For FAT filenames, case does not matter.

Don't forget that we can put Gcode commands into files on the SD card and "play" them from there. So if you have jingles you want to play frequently it could be a place to put them.

I did write a Windows program to edit music and generate GCode, which people might find an even easier way ;) Sometime I will put the files onto github.

Rui Ribeiro

unread,
Jun 29, 2012, 6:05:49 PM6/29/12
to r2c2---...@googlegroups.com
;-)
 
May the force be with you too!!!
 
Rui

2012/6/29 Bryan Lambrecht <bryan.l...@gmail.com>

Rui Ribeiro

unread,
Jun 29, 2012, 6:16:23 PM6/29/12
to r2c2---...@googlegroups.com
Looking for "arduino" and "star wars music" found this wealth of sequences:
 
Tone library to playout RTTTL + sound tracks
 
More on RTTTL:
 
 
Lots of sound tracks!
Rui

2012/6/29 Rui Ribeiro <racri...@gmail.com>

Jorge Pinto

unread,
Jul 3, 2012, 9:46:03 AM7/3/12
to r2c2---...@googlegroups.com
On Fri, Jun 29, 2012 at 2:40 AM, Bryan Lambrecht
<bryan.l...@gmail.com> wrote:
> So I let my wife play around with the buzzer G-code and came up with this
> jingle and thought I would share. (It is now part of my end.Gcode :P)

Ahah, I got it :-) I recorded a video showing R2C2 playing this tune:

http://a4.video3.blip.tv/0370017153868/Jpcasainho-R2C2_playing_Imperial_Death_March610.mp4

Jorge Pinto

unread,
Jul 3, 2012, 11:27:11 AM7/3/12
to r2c2---...@googlegroups.com
Hmmm, we may have a legal problem for using this. Our co-worker Paulo
Casimiro suggested this one:
- Ride of the Valkyries by Richard Wagner: http://www.gutenberg.org/ebooks/10177

Would someone be able to use the MP3 file (from above link) and
generate a GCode? Bryan Lambrecht, does your wife like Ride of the
Valkyries? ;-)

brou...@yahoo.com

unread,
Sep 24, 2013, 6:08:47 PM9/24/13
to r2c2---...@googlegroups.com
How come I get a "bad m code" message when I send an M300 ?
I see it in the firmware....
Nik

Jorge Pinto

unread,
Sep 25, 2013, 6:41:58 AM9/25/13
to r2c2---...@googlegroups.com
Hello Nik.

You probably have an old version of firmware.

Please see here how to update it (if necessary): http://www.3dprinting-r2c2.com/?q=content/r2c2-usb-bootloader


2013/9/24 <brou...@yahoo.com>

--
You received this message because you are subscribed to the Google Groups "R2C2 - Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to r2c2---suppor...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



--
Jorge Pinto


IEUA - Universidade de Aveiro
Portugal

Confidencialidade: Este e-mail, assim como respectivos anexos, é confidencial e não pode ser revelado ou utilizado por terceiros não autorizados. Se o recebeu por engano, solicitamos que não o utilize para nenhum fim, notifique o remetente e proceda à sua destruição.

Confidentiality notice: This e-mail, as well as existing files, is confidential and may not be disclosed to or used by any other person than the addresse unless when authorized. If you have received this e-mail by mistake, we request not to make any use whatsoever of its contents, notify us and proceed to its destruction.
Reply all
Reply to author
Forward
0 new messages