Hackaday.io Hackaday.io
Projects
Discover Contests Courses Stack
More
Courses Tutorials Events Hackerspaces Hackaday.com Tindie Marketplace
Sign up Log in
Close
0%
0%

ATtiny13 – 8bit mono class D amplifier

This project shows how to turn ATtiny13 @9.6MHz into 8bit mono class D amplifier.

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
664 views
2 comments
4 followers
1 likes
  • Description
  • Details
  • Files 0
  • Components 0
  • Logs 0
  • Instructions 0
  • Discussion 2
View Gallery
664
2
4
1

Team (1)

  • ukasz-podkalickiŁukasz Podkalicki

Join this project's team
  • Project homepage
  • Source code
completed project
hardware
attiny13 avr amplifier CLASS D pwm

This project was created on 02/18/2019 and last updated 7 years ago.

Description

I always wonder whether it is possible to make an amplifier of class D on ATtiny13 or not. Some time ago I found George Gardner’s project based on ATtiny85 – TinyD. It was a sign to start challenging it with ATtiny13. It took me a few hours but finally I made it! The code is very short and useses a lot of hardware settings which has been explained line-by-line in the comments. The project runs on ATtiny13 with maximum internal clock source (9.6MHz). It gave me posibility to use maximum of hardware PWM frequency (Fast PWM mode). The PWM freqency of class D amplifiers should be of course much higher, a hundreds of kHz (some sources says 8 times more than sampling frequency). Unfortunately, in case of ATtiny13 it’s not posible to achieve such parameters. However, for experimentally selected settings of ADC sampling rate (~10kHz) and PWM frequency (37.5kHz) the amplifier sounds very good!

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 X
OR
hackbot wrote 07/18/2019 at 05:54 • point

Inspired by https://hackaday.io/project/19178-tinyd-8-bit-stereo-class-d-amp-from-attiny85, featured on https://hackaday.com/2019/02/12/tiny-amplifier-with-attiny/.

  Are you sure? yes | no

namshang wrote 02/20/2019 at 22:44 • point

Cool! Small, cheap, accepted sound.

  Are you sure? yes | no

Similar Projects

The **ESP32 S3-based PWM Analyzer** measures and displays the frequency, duty cycle, and pulse width of PWM signals in real-time.
Project Owner Contributor

ESP32 S3 Based PWM analyzer

nmeth-jzsef-lszlNémeth József László

A simple USART / Bluetooth interface for a kitchen scale
Project Owner Contributor

Scale interface

adamAdam

Elliptical trainer controlled over WiFi using ESP8266 hosted webApp
Project Owner Contributor

Open Cross Trainer

louis-hLouis H

A simple project that plays any music or tone with Ameba RTL8722DM
Project Owner Contributor

Playing Music with RTL8722DM

daphneDaphne

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

© 2026 Hackaday

Yes, delete it Cancel

Report project as inappropriate

You are about to report the project "ATtiny13 – 8bit mono class D amplifier", 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.