Start a new topic

Nextion Piano

Introducing the Nextion Piano

This is a two octave 25 key piano created with the Nextion Enhanced 3.5" and the Nextion Expansion Board.  By using the PWM on the IO7 line to the buzzer on the expansion board, we can upload the note frequencies into Nextion Variables to be used with each key.  To get a better sound quality for the notes the pwm frequency is multiplied by a chosen factor and the duty cycle reduced by a chosen divider.

I will create a small tutorial in the Free Chat:

Creating a Nextion Piano within Nextion Logic


1 Comment

Completing my Nextion Piano, I made some upgrades:

- Added a DisplayKeyNames that can be toggled on or off
- Added a color indicator below the keys when pressed, green=ivory, red=ebony
- Added a 20 note score section above the keys
- Added a Score Title as I turned it into my Nextion Player Piano ...
  • God Rest Ye Merry Gentlement
  • T'was in the Moon of Wintertime
  • Away in a Manger
  • O Little Town of Bethleham, and
  • O Holy Night


Login or Signup to post a comment