Skip to main content

Using Python for Input and Output: GPIO Zero

  • Chapter
  • First Online:
Learn Electronics with Raspberry Pi
  • 4444 Accesses

Abstract

This chapter is going to look at lights. Not just any old boring desk lamp, though, the chapter looks at how disco 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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    I will refer to this as 2N2222, but there are differences between the versions of this transistor. The specifications of P2N2222A has been used.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2016 Stewart Watkiss

About this chapter

Cite this chapter

Watkiss, S. (2016). Using Python for Input and Output: GPIO Zero. In: Learn Electronics with Raspberry Pi. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1898-3_4

Download citation

Publish with us

Policies and ethics