Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vikraman/avr-music
Music using an AVR microcontroller
https://github.com/vikraman/avr-music
Last synced: 3 days ago
JSON representation
Music using an AVR microcontroller
- Host: GitHub
- URL: https://github.com/vikraman/avr-music
- Owner: vikraman
- Created: 2011-04-19T17:47:32.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-04-19T18:10:24.000Z (over 13 years ago)
- Last Synced: 2024-04-14T15:51:44.179Z (9 months ago)
- Homepage: https://github.com/vh4x0r/avr-music
- Size: 105 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
Awesome Lists containing this project
README
This is a fun project with a piezo buzzer (ripped off from my motherboard) and an Atmega32 microcontroller. Timer0 of the Atmega32 is used in CTC mode to generate different PWM frequencies on the OC1A pin. The output is sent to the enable pin of an L293D which drives current to the piezo buzzer. An LCD is used to display the current value of the OCR1A register, and a switch to change it.
TODO
* Find frequencies for various notes using a reference frequency
* A script to read plain notes and duration from a text file and generate code to set frequencies
* Play generated frequencies according to duration