CxD Archive
Code: Internet of Things 2.0
Code: Internet of Things 2.0
  • Code Introduction
  • Prerequisite Knowledge
  • Tutorials
    • A. Meet Your IoT Kit
      • A-1 Circuit Board
      • A-2 Other Components
      • A-3 Electronic Circuits
    • B. Hello World Test
      • B-1 Start IoT Device
      • B-2 Login to Web IDE
      • B-3 New App Template
      • B-4 Global Variable
      • B-5 Setup Function
      • B-6 Loop Function
      • B-7 Flash App to Device
      • B-8 Modify App
    • C. Smart Light Device
      • C-1 Connect LED
      • C-2 Copy Hello World App
      • C-3 Connect Button
      • C-4 Add Button Code
      • C-5 Modify Button Code
      • C-6 Particle Cloud Code
      • C-7 Web App HTML
      • C-8 Web App CSS
      • C-9 Web App JS
    • D. Smart Security Device
      • D-1 Connect Motion Sensor
      • D-2 Connect Speaker
      • D-3 LED and Button Code
      • D-4 Motion Sensor Code
      • D-5 Speaker Code
      • D-6 Particle Cloud Code
      • D-7 Web App HTML
      • D-8 Web App CSS
      • D-9 Web App JS
  • References
    • Particle Build
    • Photon Device App
    • Web App - Single Screen
    • Web App - Multiple Screens
    • Particle Cloud
      • Web App Prep Steps
      • Get Device Variable
      • Call Device Function
      • Get Device Events
    • Physical Inputs
      • Push Buttons
      • Trimpot Dial
      • Motion Sensor
      • Magnetic Switch
      • Light Sensor
      • Temperature Sensor
      • Soil Moisture Sensor
      • Accelerometer
      • Ultrasonic Sensor *
    • Physical Outputs
      • LED Lights
      • Speaker
      • Servo Motor
      • Micro OLED Display
  • Links
    • IoT Project Guidebook
    • Particle Build (Web IDE)
    • Wiring Language
    • Photon Firmware
    • Particle API JS
    • W3Schools
    • Photon Kit Experiments
Powered by GitBook
On this page
  • Physical Inputs
  • Physical Outputs
  • Connectors
  • Power Cables
  • More Info
Export as PDF
  1. Tutorials
  2. A. Meet Your IoT Kit

A-2 Other Components

PreviousA-1 Circuit BoardNextA-3 Electronic Circuits

Last updated 2 years ago

GOAL: Identify the other components in your Photon kit and their purposes (inputs, outputs, connectors, and cables)

TASK: Review the information below, and then complete by finding each component in your Photon kit & identifying its name and function.

Physical Inputs

Your Photon kit includes these physical inputs, which can be connected to your circuit board:

  • Push Buttons – detects if button is being pushed (kit has red, yellow, green & blue buttons)

  • Trimpot Dial – detects position of dial (can be turned clockwise or counter-clockwise)

  • Motion Sensor – detects if something is moving in nearby environment

  • Magnetic Switch – detects if something is open or closed (such as door, window, etc.)

  • Photocell (Light Sensor) – measures amount of light in environment

  • Humidity & Temperature Sensor – measures relative humidity & temperature of air

  • Soil Moisture Sensor – measures amount of moisture in soil (or similar material)

  • Accelerometer – measures acceleration or tilt in 3 dimensions; can also detect taps or bumps

The following is not a standard part of the Photon kit, but your teacher may have added it:

  • – measures distance to nearest object

Physical Outputs

Your Photon kit includes these physical outputs, which can be connected to your circuit board:

  • LED Lights – produces light (kit has red, yellow, green & blue LED lights)

  • Speaker – produces sound (tone) at any frequency from 20Hz to 20kHz

  • Servo Motor – rotates to any angle from 0° to ~180°

  • Micro OLED Display – displays text and simple graphics in monochrome

Connectors

Your Photon kit includes these components to help connect inputs and outputs to your circuit board:

  • Breadboard – provides additional pins to help connect and power your inputs and outputs

  • Jumper Wires – help connect inputs and outputs to pins on breadboard and circuit board

  • Resistors – help limit electric current for certain inputs or outputs (such as LED lights, etc.)

Power Cables

Your Photon kit will include one or more cables to provide power to your circuit board:

  • USB to Micro-USB Cable – powers circuit board by connecting to USB port or charger

  • 9V to Barrel Jack Adapter – powers circuit board by connecting to 9V battery

Only one power source (Micro-USB or Barrel Jack) needs to be connected.

More Info

USB to Barrel Jack: SparkFun sells a which is a great alternative to the cables included in the kit. This cable connects a USB port (computer, charger, etc.) to the barrel jack. If using this cable, the Photon's VIN pin will supply ~5 volts.

The product page for the provides links to details about each part included in the kit. (Click the "Includes" tab on the product page to see the links to the parts.)

this assignment
Ultrasonic Sensor
USB to Barrel Jack Adapter cable
SparkFun Inventor's Kit for Photon