circuito.io team
Published © GPL3+

Piezo Tunes

In this project, you're going to learn how you can play your own melody with a Piezo speaker, using code generated by Circuito.io

BeginnerShowcase (no instructions)1 hour9,291

Things used in this project

Hardware components

USB-A to B Cable
USB-A to B Cable
×1
SparkFun Mini Speaker - PC Mount 12mm 2.048kHz
×1
Resistor 1k ohm
Resistor 1k ohm
×1
Jumper wires (generic)
Jumper wires (generic)
×1
SparkFun Wall Adapter Power Supply - 12VDC 600mA
×1
General Purpose Transistor NPN
General Purpose Transistor NPN
×1
Arduino UNO
Arduino UNO
×1
Breadboard (generic)
Breadboard (generic)
×1

Software apps and online services

circuito.io
https://www.circuito.io/app?selectedComponentsIds=11021&selectedComponentsIds=7950&selectedComponentsIds=9442

Story

Read more

Schematics

schematics

Code

melody code

C/C++
No preview (download only).

Credits

circuito.io team

circuito.io team

29 projects • 596 followers
Circuito.io is an online platform that generates wiring and code for Arduino projects. Want to know more? Visit http://circuito.io

Comments