This chapter is going to look at lights. Not just any old boring desk lamp, though, the chapter looks at how lights can be controlled by the Raspberry Pi. You are going to connect some fun disco lights and projects using bright LEDS. In the process, you will learn about the most important electronic component, the transistor. You will use some different types of transistors to switch lights on that need more current than the Raspberry Pi can provide.
In Chapter 3, the projects used the graphical programming environment Scratch, but from here on you are going to be ...