O'Reilly logo

Learning Raspberry Pi by Samarth Shah

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Developing an alarm clock

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.

Connecting LCD pins, Raspberry Pi GPIO pins, and a speaker

As this is an extension of a digital clock section, first make sure that you have connected the LCD pins and Raspberry ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required