4-bit AVR synthesizer

4Bitsynth

David points out the 4bitsynth - a MIDI controllable digital synthesizer using the ATMega48 chip and a resistor ladder digital to analog converter. This simple project produces some nice NES-esque square, triangle, and noise waveforms - code is available here - 4bitsynth


Recent Entries

Comments

Oldest comments listed first.

Posted by: blahblah on January 5, 2009 at 12:09 PM

arduino

can this be done with the arduino... if so how - what are the differences between the chips?

does this have a midi in port that can connect to a midi controller?

thanks.


Posted by: David on January 21, 2009 at 3:33 PM

arduino

I'm not sure this can be done with the arduino...maybe?

It is not the same chip as the Arduino (which uses ATMega168 I think). This project uses the ATMega48. It might be feasible to do it within the arduino environment from a software perspective -- it's mostly a matter of speed and performance I suppose.

The project does provide connectivity to standard MIDI controllers (see the wiki).

The 4bit synth uses the raw, precise timer functions of the MCU to produce waveforms. The different frequencies produced is a matter of changing how fast those internal timers pulse.

The project was written in C, so if you are comfortable with the arduino and read a little bit, you shouldn't have much trouble understanding the code. Also, there are compiled binaries on the site that you can just upload to the ATmega48 (just get an Atmel AVRISPmkII or USB Tiny ISP).


Posted by: Peter on March 29, 2009 at 4:09 PM

GREAT!

Hi Magaio,

I just found your 4bitsynth while looking for ideas how to build a mini AVR synth, and I really like your synth, GREAT!!! Thanks a lot for putting this online and making it available, I'll definitely build one of these myself.

Maybe it would be even possible to program various sounds which can be changed (maybe blended) via midi params (or some analog input)?!

Best regards,
Peter


Leave a comment


Subscribe to MAKE!Subscribe to MAKE Magazine!

Subscribe today, save 42% and get web access to MAKE free. MAKE Digital Edition is available only to subscribers.

$34.95 / 1 year
(4 Quarterly Issues)

Subscribe now


Void your warranty, violate a user agreement, fry a circuit, blow a fuse, poke an eye out. Make: The risk-takers, the doers, the makers of things... Welcome to Make: Online!


CRAFT Maker Shed Maker Faire MAKE television
MAKE: en EspaƱol MAKE: Japan


Check out all of the episodes of Make: television

Make: Science Room

Connect with MAKE

Be a MAKE fan on Facebook MAKE on Facebook
Visit our Facebook page and become a fan of MAKE!
MAKE on Twitter MAKE on Twitter
Follow our MAKE tweets!
MAKE Flickr Pool MAKE on Flickr
Join our MAKE Flickr Pool!
    make_tips on Twitter

    MAKE's RSS feed is here.
    Add MAKE to iGoogle - GoogleGoogle.
    How to add MAKE to your RSS reader - Real simple.
    Add MAKE on FriendFeed




    Maker SHED

    Advertise here with FM.

    Why advertise on MAKE?
    Read what folks are saying about us!

    Click here to advertise on MAKE!



    Subscribe to MAKE Magazine!

    Make: Online authors!

    Gareth BranwynGareth Branwyn
    Senior Editor


    Phillip TorronePhillip Torrone
    Senior Editor
    | AIM | Twitter


    Becky SternBecky Stern
    Associate Editor
    | AIM | Twitter


    Marc de VinckMarc de Vinck
    Contributing Writer
    | AIM | Twitter


    John ParkJohn Park
    Contributing Writer
    | Twitter


    Sean RaganSean Ragan
    Contributing Writer
    | Twitter


    Matt MetsMatt Mets
    Contributing Writer
    | AIM | Twitter


    Dale DoughertyDale Dougherty
    Editor & Publisher
    | Twitter


    Shawn ConnallyShawn Connally
    Managing Editor
    | Twitter


    Goli MohammadiGoli Mohammadi
    Associate Managing Editor

    Kip KayKip Kay
    Weekend Projects
    | AIM | Twitter


    Collin CunninghamCollin Cunningham
    Contributing Writer
    | AIM | Twitter

    Adam FlahertyAdam Flaherty
    Contributing Writer
    | AIM | Twitter



    More contributors: Mark Frauenfelder (Editor-in-Chief, MAKE magazine), Kipp Bradford (Technical Consultant/Writer), Chris Connors (Education), Diana Eng (Guest Author), Peter Horvath (Intern), Brian Jepson (O'Reilly Media), Robert Bruce Thompson (Science Room)

    Suggest a Site!

    Current Podcast

    itunesdl.gif Weekend Project: Making Char Cloth Learn how to make a cheap and effective fire starter made from an old t-shirt. To download The Char Cloth video click here and subscribe in iTunes. See Char Cloth in action with the Fire Piston from William Gurstelle.... More...

    Get the Make: Online sent via email
    Enter your email to receive Make: Online each day:



    MAKE Fascination video series brought to you by Dow

    Make: Education

    Important please read


    Subscribe to MAKE Magazine!

    Recent Posts from the Craft: Blog