<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>music on toorun.dev</title><link>https://toorun.dev/tags/music/</link><description>Recent content in music on toorun.dev</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Fri, 23 Oct 2026 10:00:00 +0000</lastBuildDate><atom:link href="https://toorun.dev/tags/music/index.xml" rel="self" type="application/rss+xml"/><item><title>Music Notes and Frequency: Generate Do-Re-Mi with PWM on Arduino</title><link>https://toorun.dev/posts/music-notes-frequency-pwm-arduino-piezo/</link><pubDate>Fri, 23 Oct 2026 10:00:00 +0000</pubDate><guid>https://toorun.dev/posts/music-notes-frequency-pwm-arduino-piezo/</guid><description>Music Notes and Frequency: Generate Do-Re-Mi with PWM on Arduino A musical note is a sound that repeats at a particular frequency. A4, the A above middle C, is commonly tuned to 440 Hz. To play that pitch with a microcontroller, make an output pin switch on and off 440 times per second and connect it to a suitable sounder.
This practical example uses an Arduino Uno and a passive piezo buzzer to play a C major scale: Do, Re, Mi, Fa, Sol, La, Ti, Do.</description></item></channel></rss>