14.3 PROJECT 14.3 – Mini Electronic Organ

14.3.1 Project Description

In this project, a mini electronic organ is designed. The organ has 8 keys corresponding to the musical octave starting with A4 = 440 Hz. A buzzer is used to generate the musical notes. Pressing a note key on the screen plays the note with the correct frequency.

14.3.2 Block Diagram

The block diagram of the project is shown in Figure 14.12.

Figure 14.12 Block diagram of the project

img

The operation of the project is as follows: After power-up and the calibration, the user can touch the required note keys to play simple music.

14.3.3 Circuit Diagram

The circuit diagram of the project is as shown in Figure 14.13. A standard 128 × 64 pixel GLCD is used in the project. A buzzer is connected to port pin RC2 of the microcontroller through an NPN switching transistor. Switching transistors are used as the touch screen controller. A PIC18F45K22 type microcontroller is used with an 8 MHz crystal. If you are using the EasyPIC 7 development board, then jumper J12 of the buzzer should be connected to RC2.

Figure 14.13 Circuit diagram of the project

img

The Visual GLCD configuration settings are slightly different, as shown in Figure 14.14. Here, the mikroC Pro for PIC sound library is initialised in the General settings.

Get Using LEDs, LCDs and GLCDs in Microcontroller Projects now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.