After developing two projects, you must be confident working with Raspberry Pi GPIO, LED and LCD. In this section, apart from a little bit of more coding, you will be using one or more pieces of hardware, which is a speaker with Raspberry Pi. You will develop an alarm clock that will be turned on at specific time set by the user and it will turn off only when the user answers two simple mathematical questions correctly. Similar to the previous section, in this section, you will be reusing the LCD code that was developed in the digital clock section.
As this is an extension of a digital clock section, first make sure that you have connected the LCD pins and Raspberry GPIO pins, as mentioned in the following screenshot. In addition to the connection that you have made, you have to connect the speaker with the 3.5 mm audio jack of Raspberry Pi.