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
Completing my Nextion Piano, I made some upgrades: