Arduino Based Lightsaber With Light and Sound Effects

Anything not related to STM32
Post Reply
zmemw16
Posts: 1684
Joined: Wed Jul 08, 2015 2:09 pm
Location: St Annes, Lancs,UK

Arduino Based Lightsaber With Light and Sound Effects

Post by zmemw16 » Sun Dec 17, 2017 4:24 pm


racemaniac
Posts: 699
Joined: Sat Nov 07, 2015 9:09 am

Re: Arduino Based Lightsaber With Light and Sound Effects

Post by racemaniac » Sun Dec 17, 2017 6:07 pm

nice :)
i'm impressed he managed to do all that on an arduino XD.
i'm already having trouble doing all that on an stm32 XD

User avatar
RogerClark
Posts: 7690
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Arduino Based Lightsaber With Light and Sound Effects

Post by RogerClark » Sun Dec 17, 2017 9:20 pm

@racemaniac

I suspect the WAV files must be lower resolution that the ones you are using, and perhaps one sound file at a time.

from what I have read in your posts, you are doing a lot if complicated files processing of sounds

Edit. I cant see a DAC etc in the BOM for that AVR lightsabre, so the audio is not going to very good quality

racemaniac
Posts: 699
Joined: Sat Nov 07, 2015 9:09 am

Re: Arduino Based Lightsaber With Light and Sound Effects

Post by racemaniac » Mon Dec 18, 2017 6:24 am

RogerClark wrote:
Sun Dec 17, 2017 9:20 pm
@racemaniac

I suspect the WAV files must be lower resolution that the ones you are using, and perhaps one sound file at a time.

from what I have read in your posts, you are doing a lot if complicated files processing of sounds

Edit. I cant see a DAC etc in the BOM for that AVR lightsabre, so the audio is not going to very good quality
indeed, he'll have to compromise on various things, but it's still impressive to stream 1 wav file from an sd card on only 2kb of ram of the arduino :)

User avatar
RogerClark
Posts: 7690
Joined: Mon Apr 27, 2015 10:36 am
Location: Melbourne, Australia
Contact:

Re: Arduino Based Lightsaber With Light and Sound Effects

Post by RogerClark » Mon Dec 18, 2017 6:51 am

Yes. Very impressive that he is able to stream a wav

racemaniac
Posts: 699
Joined: Sat Nov 07, 2015 9:09 am

Re: Arduino Based Lightsaber With Light and Sound Effects

Post by racemaniac » Mon Dec 18, 2017 8:56 am

unless he assumes the file is not fragmented, just basic double buffering already requires 1.5kb (512bytes per buffer, and 1 buffer for the FAT table so you know where your next block is) (and the buffers should be 512 bytes as that is the blocksize of FAT)
if i find some time i'll have a look at his code, i'm wondering how it works :).

Post Reply