Hackaday.io Hackaday.io
Projects
Recently Updated Most Likes Newest Project Lists
Discover Contests Courses Stack
More
Courses Tutorials Events Hackerspaces Profiles Hackaday.com Tindie Marketplace
Sign up Log in
Close
0%
0%

ATtiny13 – dance lights with FFT

This project shows how to synchronize live music and lights using DSP/DFT in real-time on ATtiny13 which offers only 64B RAM / 1024B FLASH.

Łukasz PodkalickiŁukasz Podkalicki
Following Follow project
Liked Like project

Become a Hackaday.io member

Not a member? You should Sign Up.

Already have an account? Log In.

Sign up with Github
Sign up with Twitter
OR
Forgot your password?

Just one more thing

To make the experience fit your profile, pick a username and tell us what interests you.

Pick an awesome username
hackaday.io/
Your profile's URL: hackaday.io/username. Max 25 alphanumeric characters.
Pick a few interests
Projects that share your interests
People that share your interests

We found and based on your interests.

Choose more interests.

OK, I'm done! Skip
Join this project
Similar projects worth following
1.3k views
3 comments
939 followers
11 likes
  • Description
  • Details
  • Files 0
  • Components 0
  • Logs 0
  • Instructions 0
  • Discussion 3
View Gallery
1.3k
3
939
11

Team (1)

  • Łukasz PodkalickiŁukasz Podkalicki

Join this project's team
  • Project source code
  • Project details
completed project
hardware
attiny13 dsp fft DFT disco liGhts Party Lights Dance Lights avr led

This project is submitted for

  • The 1kB Challenge

This project was created on 12/08/2016 and last updated 2 years ago.

Description

This experimental project shows how to use ATtiny13 to synchronize live music and lights with only a few additional components required. Project uses single ADC (Analog to Digital Converter) channel for signal acquisition and some DSP (Digital Signal Processing) calculations that in real-time separate three frequency bands and make the LEDs dance in sync with the music. This project also proves that real-time DFT (Discrete Fourier Transformation) is possible on such small MCU like ATtiny13, which offers only 64B of RAM and 1024B of FLASH. Project doesn’t require any specific equipment and the parts costs are below 3$.

Details

Enjoy this project?

Share

Discussions

Log In/Sign up to comment

Become a Hackaday.io Member

Create an account to leave a comment. Already have an account? Log In.

Sign up with Github
Sign up with Twitter
OR
mr.jb wrote 12/10/2016 at 17:58 • point

>ADCSRA |= _BV(ADPS2)|_BV(ADPS1); // set ADC division factor 64;

>F_CPU=9600000

Are you sampling ADC with 150kHz ? and if so why ?

A fun twist of your code would be to put it inside a flash-light driver

http://flashlightwiki.com/AVR_Drivers

  Are you sure? yes | no

Łukasz Podkalicki wrote 12/10/2016 at 21:31 • point

Hi, after I read your comment I realized that I made a copy-paste
mistake. Of course, this example will work with higher sampling rate,
but it result in poor quality. Project has been tested using @1.2MHz
internal clock source. ADC division factor is set to 64 so the ADC
sampling frequency is 18750Hz (F_CPU/64). Thank you!

NOTE: “copy-paste mistake” has been fixed on both blog and github.

  Are you sure? yes | no

mr.jb wrote 12/10/2016 at 11:51 • point

NICE ! ( less is more ;-)

You should put it into 1k challenge ...

/JB

  Are you sure? yes | no

Similar Projects

The 2016 Hackaday Prize
Let's move something with mind and body!
Project Owner Contributor

GetRekt's EMG / EEG Controlled RC Car

andrew.powellandrew.powell

Let's light things up ( with an FPGA )!
Project Owner Contributor

The Clap Clap Light

andrew.powellandrew.powell

HackCode Project Try First Time
Project Owner Contributor

Hack Cod Project

cyberpunkclothcyberpunkcloth

This project explores the idea of a human carrying VTOL vehicle.
Project Owner Contributor

Project Z axis

Tyler PoseyTyler Posey

Does this project spark your interest?

Become a member to follow this project and never miss any updates

Going up?

About Us Contact Hackaday.io Give Feedback Terms of Use Privacy Policy Hackaday API

© 2021 Hackaday

Yes, delete it Cancel

Report project as inappropriate

You are about to report the project "ATtiny13 – dance lights with FFT", please tell us the reason.

Send message

Your application has been submitted.

Remove Member

Are you sure you want to remove yourself as a member for this project?

Project owner will be notified upon removal.