Getting Started with the Photon

Book description

The Photon is an open source, inexpensive, programmable, WiFi-enabled module for building connected projects and prototypes. Powered by an ARM Cortex-M3 microcontroller and a Broadcom WiFi chip, the Photon is just as happy plugged into a hobbyist's breadboard as it is into a product rolling off of an assembly line.

While the Photon--and its accompanying cloud platform--is designed as a ready-to-go foundation for product developers and manufacturers, it's great for Maker projects, as you'll see in this book. You'll learn how to get started with the free development tools, deploy your sketches over WiFi, and build electronic projects that take advantage of the Photon's processing power, cloud platform, and input/output pins. What's more, the Photon is backward-compatible with its predecessor, the Spark Core.

Publisher resources

View/Submit Errata

Table of contents

  1. Foreword
  2. Preface
    1. What’s in a Name?
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
  3. 1. The Photon
    1. The Internet of Things
    2. Sparks in the Clouds
    3. Other IoT Platforms
      1. Arduino
      2. Raspberry Pi and BeagleBone
      3. Intel Edison
    4. A Tour of the Photon
    5. The Spark Core vs. Photon
    6. Programming
    7. Summary
  4. 2. Quick Start
    1. Signing Up
    2. Connecting to WiFi
      1. Connecting a Core
      2. Connecting a Photon
    3. Controlling Pins with the Tinker App
    4. Project 1. Blink the Tiny Blue LED
    5. Project 2. Control the Photon’s LED
    6. Summary
  5. 3. Programming the Photon
    1. The Web IDE
    2. Coding an App
    3. Comments
    4. Variables
    5. Morse Code
    6. Flashing SOS
    7. Functions
    8. Types
      1. The int Type
      2. The float Type
      3. Other Types
    9. Arrays
    10. Loops
    11. Strings
    12. Ifs
    13. Project 3. Morse Code Flasher
      1. Software
    14. Summary
  6. 4. Breadboard
    1. How a Breadboard Works
    2. Attaching an LED
    3. Digital Outputs
    4. Project 4. Morse Flasher (External LED)
      1. Parts
      2. Hardware
      3. Software
    5. Attaching a Switch
    6. Digital Inputs
    7. Project 5. Morse Flasher with Switch
      1. Parts
      2. Software
      3. Hardware
      4. Running the Project
    8. Analog Outputs
      1. analogWrite
      2. An Example
      3. A Real Analog Output
    9. Summary
  7. 5. The Internet of Things
    1. Functions
    2. Project 6. Control an LED over the Internet
      1. Software
      2. Security
      3. Trying It Out
      4. Interacting with loop
    3. Running Functions from a Web Page
    4. Project 7. Control Relays from a Web Page
      1. Parts
      2. Design
      3. Construction
      4. Software
    5. Project 8. Morse Code Text Messages
      1. Parts
      2. Software
      3. Hardware
      4. Using the Project
    6. Variables
    7. Analog Inputs
    8. Project 9. Measuring Light over the Internet
      1. Parts
      2. Software
      3. Hardware
      4. Using the Project
    9. Project 10. Measuring Temperature over the Internet
      1. Parts
      2. Software
      3. Hardware
      4. Using the Project
    10. Summary
  8. 6. If This Then That
    1. If This Then That
    2. Project 11. Temperature Email Alerts
    3. Project 12. Ring a Bell for Tweets
      1. Software
      2. IFTTT
      3. Hardware
      4. Using the Project
    4. Project 13. Flash Email as Morse Code
      1. Software
      2. Hardware
      3. IFTTT
      4. Using the Project
    5. Summary
  9. 7. Robotics
    1. Project 14. Web-Controlled Robot
      1. Parts
      2. Software (Photon)
      3. Software (Web Page)
      4. Hardware
      5. Using the Project
    2. Summary
  10. 8. Machine-to-Machine Communication
    1. Publish and Subscribe
    2. Temperature Monitor Example
    3. IFTTT and Publish/Subscribe
    4. Advanced Publish and Subscribe
      1. Publish
      2. Subscribe
    5. Project 15. Magic Rope
      1. Parts
      2. Software
      3. Hardware
      4. Using the Project
    6. Summary
  11. 9. Advanced Photon
    1. Configuring a Photon Using USB
    2. Factory Reset
    3. Programming a Photon Using Particle Dev
    4. Debugging with the Serial Monitor
    5. The Electron
    6. Power Management
    7. Summary
  12. A. Parts
    1. Component Suppliers
    2. Parts
      1. Electronic Components
      2. Modules and Shields
      3. Hardware and Connectors
      4. Other
  13. B. Photon LED Codes
    1. Reset Sequence
    2. Other Status Codes
    3. Error Codes
  14. C. Photon and Core Pinouts
    1. Core
    2. Photon

Product information

  • Title: Getting Started with the Photon
  • Author(s): Simon Monk
  • Release date: May 2015
  • Publisher(s): Make: Community
  • ISBN: 9781457186974