O'Reilly logo

Programming the Photon: Getting Started with the Internet of Things by Christopher Rush

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

4

Outputs

This chapter introduces you to controlling output devices such as light-emitting diodes (LEDs), relays, and buzzers. Output devices are usually used to communicate information, such as the status of a circuit, or to switch something on or off, such as a direct current (DC) motor or servo. The Photon and Core are all about connecting physical devices to the world, and this means connecting electronic components to your Particle board. Outputs on the Photon are digital, which means switching between 0 V and 3.3 V. Outputs can also be analog signals, which allow you to set a varying voltage to a device between 0 and 3.3 V, although in reality it is not as simple as it may seem. This book is primarily about software programming rather ...

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