You are previewing Make: Getting Started with the Photon.
O'Reilly logo
Make: 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.

Table of Contents

  1. Preface
    1. Early Access
    2. Conventions Used in This Book
    3. Using Code Examples
    4. Safari® Books Online
    5. How to Contact Us
  2. 1. The Spark 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 Spark Photon
    5. The Spark Core vs. Spark Photon
    6. Programming
  3. 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
  4. 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
  5. 4. Breadboard 
    1. How 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
  6. 5. The Internet of Things
    1. Spark 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 Webpage
      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. Spark 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
  7. 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
  8. 7. Robotics
    1. Project 14. Web Controlled Robot
      1. Parts
      2. Software (Photon)
      3. Software (Webpage)
      4. Hardware
      5. Using the Project
  9. 8. Machine to Machine Communication
    1. Publish and Subscribe
    2. Temperature Monitor Example
    3. IFTTT and Publish/Subscribe
    4. Advanced Publish and Subscribe
      1. Spark.publish
      2. Spark.subscribe
    5. Project 15. Magic Rope
      1. Parts
      2. Software
      3. Hardware
      4. Using the Project
    6. Summary
  10. 9. Advanced Photon
    1. Configuring a Photon Using USB
    2. Factory Reset
    3. Programming a Photon Using Spark Dev
    4. Debugging with the Serial Monitor
    5. Power Management
    6. Summary
  11. A. Parts
    1. Component Suppliers
    2. Parts
      1. Electronic Components
      2. Modules and Shields
      3. Hardware and Connectors
      4. Other
  12. B. Photon LED Codes
    1. Reset Sequence
    2. Other Status Codes
    3. Error Codes
  13. C. Photon and Core Pinouts
    1. Core
    2. Photon