Go Down

Topic: Arduino Lightsaber (Read 415447 times) previous topic - next topic

Protonerd

I for one buy my audio, if you mean the sound fonts. BTW, sound font is the "saber world" seems to be the term used for all the sound files associated with saber sounds (swings, clahes, pon, poff etc.), but each of these sounds is in a different file.

http://www.saberfont.com/

Some of the sound fonts I bought from this site, some of them I inherited from my non-DIY saber electronics.

JakeSoft

#601
Jan 29, 2016, 03:44 pm Last Edit: Jan 29, 2016, 03:45 pm by JakeSoft
I for one buy my audio, if you mean the sound fonts. BTW, sound font is the "saber world" seems to be the term used for all the sound files associated with saber sounds (swings, clahes, pon, poff etc.), but each of these sounds is in a different file.

http://www.saberfont.com/

Some of the sound fonts I bought from this site, some of them I inherited from my non-DIY saber electronics.

Also checkout fan film sites. They often provide sound effects for free. I composed a sound font from several unlicenced, free-to-use sources. For example: http://theforce.net/fanfilms/postproduction/soundfx/saberfx_fergo.asp.

jshaw

I found a decent set of lightsaber sound fonts here: https://www.freesound.org/people/joe93barlow/packs/5968/?page=2#sound

Need to edit them to the right sampling rate in Audacity, but they work ok.  I'm still playing w/ them to get rid of the tap sound though.

JakeSoft

I found a decent set of lightsaber sound fonts here: https://www.freesound.org/people/joe93barlow/packs/5968/?page=2#sound

Need to edit them to the right sampling rate in Audacity, but they work ok.  I'm still playing w/ them to get rid of the tap sound though.
I found these while searching once a while back. They seem good, but I don't want to create an account just to download something that is supposed to be free. I hate it when sites do that.

marconchr

As someone who is totally new to arduino, would you be willing to share some of your code to help me with making the sounds, I don't think I will have any problems with the LED's but it would be nice to get some more info on the sound code.

Kdot

As someone who is totally new to arduino, would you be willing to share some of your code to help me with making the sounds, I don't think I will have any problems with the LED's but it would be nice to get some more info on the sound code.
I just spent the last week or so on the code. Its all in the forum thanks to some great people on here. This is not a copy paste kind of project, the code typically has why you doing something and what it is for. But it always depends on what you are using hard ware wise.

billpealer

As someone who is totally new to arduino, would you be willing to share some of your code to help me with making the sounds, I don't think I will have any problems with the LED's but it would be nice to get some more info on the sound code.
read pages 1-13. it's covered.  if you want to synth your own sounds,...  grab a mic, get some samples,. download Audacity and play.  ah crud, i been saying audigy all this time.  wonderful.  Audacity! why did that just come to me?

Kdot

@billpealer and JakeSoft

Managed to work out out the very noticeable click sound. I ended up purchasing sound fonts from saberfonts last night as the other fonts from ultrasaber where 1 not what i was wanting and 2 not clean sounding to me. Still ended up having a click, but found it was in the font itself so just removed it and much smoother.

Personal tip: Dont forget to re compile the BIN file in the WT program LOL

Also changed the code a little bit to reduce delay time. Right now it is right around 1.7 of delay before it will accept any new trigger, but im ok with that for now as i want to always make it through the power on sound before power off. I used the do...while code, so i can start the delay for the hum upon saber_is_on

Only thing im still trying to get through but may just add a swing sound on power up, but you can hear a noticable pause before the startup and hum triggers. Adjust the delay gets it closer so might have to spend an hour just adjusting it by 0001 ms lol. Although i think what you mentioned before billpealer about tail end will need to be adjusted

http://www.youtube.com/watch?v=GhXbPnGdQCkNew Setup

billpealer

I found these while searching once a while back. They seem good, but I don't want to create an account just to download something that is supposed to be free. I hate it when sites do that.
amen,

billpealer

@billpealer and JakeSoft

Managed to work out out the very noticeable click sound. I ended up purchasing sound fonts from saberfonts last night as the other fonts from ultrasaber where 1 not what i was wanting and 2 not clean sounding to me. Still ended up having a click, but found it was in the font itself so just removed it and much smoother.


http://www.youtube.com/watch?v=GhXbPnGdQCkNew Setup
I LIKE IT!!!!

Kdot

I LIKE IT!!!!
Thanks!

This is just spit balling here, but my plan is to be able to use the some other command TBD lol for clash and swing, and then be able to just continue with the hum and if it repeat, that way it will always repeat hum, unless it picks up the other sensors.

billpealer

Thanks!

This is just spit balling here, but my plan is to be able to use the some other command TBD lol for clash and swing, and then be able to just continue with the hum and if it repeat, that way it will always repeat hum, unless it picks up the other sensors.
fuggin- A.  try it!

JakeSoft

@billpealer and JakeSoft

http://www.youtube.com/watch?v=GhXbPnGdQCkNew Setup
Nice! It looks like you've worked out the basics. And thank you for sharing video! I wish more would take video of their progress. It's satisfying to watch how the process plays out for others.

Kdot

Nice! It looks like you've worked out the basics. And thank you for sharing video! I wish more would take video of their progress. It's satisfying to watch how the process plays out for others.
Wel thank you guys again for paving the way!

Final video will be better quality but I figure just something for referenced. Hopefully it motivates someone else to get started. Knew nothing about programming although had some prior knowledge of LEDs and resistors.

I got the rest of the parts in last week for swing and clash. Also bought an Axcelerametor to play with

grey3Dx

#614
Jan 31, 2016, 04:06 am Last Edit: Jan 31, 2016, 04:13 am by grey3Dx
Hello everyone, ive been following the adventures of Jakesoft and the inexpensive lightsaber for a year now, and have also been attempting to construct my own based on this forum. I am generally just a lurker and dont usually participate in the conversation, but this forum is very educational for me, and I wanted to thank everybody for their input.


Here is the saber I have been working on.




I am using a chinese Arduino Pro Micro, a WT588D, and an MPU6050 accelerometer mounted to a piece of solderable perfboard. The Pro Micro and WT are mounted to headers for easy removal and so the connections can run under them. I have a Luxeon TriRebel and 3 flashlight style constant current LED drivers. I got a small piece of copperclad and using my dremel i cut the traces for the surface mount mosfets i had. It will be powered by 2 18650s that i scrounged from an old laptop battery.


I am currently still trying to get the code sorted out but its working to some degree. I am an artist by trade and its been quite a challenge to teach myself how to code, even with the supposed simplicity of the arduino language.

Go Up