Follow the Snap Circuits platform!
OverviewWhat Are Snap Circuits?
Snap Circuits makes learning electronics easy and fun! Learn how to integrate Snap Circuits with your hardware. Fun for Kids!
Introductory Project
If you have not completed the introductory project, please see Snap Circuits - Introduction. This project also contains a complete index of Snap Circuit projects.
Let's Get StartedProject Objective
This experiment will use the Snapduino to generate music through the speaker. The songs are programmed by specifying the note and pitch in the sketch. Additional songs can be added.
Building the Circuit
The minimum set requirement for this project is SC-500 and the Snapduino. Build the following circuit by following the directions in the PDF file:
Click the link below to download a PDF file containing the circuit diagram and instructions to build it (the PDF file can also be found in the GitHub repository).
Download Circuit Diagram and Instructions
Complete CircuitThe Circuit
Using a built-in capability of the ATtiny85 to produce a square wave on a pin, also known as PWM, the frequency of this wave is adjusted to create different notes. By mapping notes to a frequency and duration, the Snapduino can produce music. The component U4 is an amplifier that helps drive the sound to the speaker at a audible level.
The Software
The code has a library that helps convert musical notes specifying the pitch and duration into the tones heard through the speaker.
Comments
Please log in or sign up to comment.