Skip to content

youle1999/IOT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Arduino Logo

πŸ› οΈ Hardware Requirements

  • ESP32 board
  • Piezo buzzer (connected to GPIO 23)
  • Tact switch (connected to GPIO 17)
  • Optional LED (GPIO 16 if needed)

πŸ’‘ Features

  • Plays the melody only when the button is pressed
  • Uses ESP32's ledcWriteNote() for accurate tone playback
  • Octave and rhythm defined per note

🧠 How it Works

  • Each note and its octave are stored in arrays
  • Duration is calculated using the note value (whole, half, 1/4, etc.)
  • The buzzer outputs the melody when the switch is pressed

πŸ”„ License

MIT

image

MicrosoftTeams-video.mp4

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages