Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Photon 1: Examples, Pinouts, and Specs

Image of Photon 1
Cirkit Designer LogoDesign with Photon 1 in Cirkit Designer

Introduction

The Photon 1 is a compact, low-power microcontroller designed specifically for Internet of Things (IoT) applications. It features built-in Wi-Fi connectivity, making it ideal for projects that require wireless communication. With its simple programming interface and robust hardware, the Photon 1 enables rapid development and deployment of IoT solutions.

Explore Projects Built with Photon 1

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Photon 2 Motion Detector Alarm with PIR Sensor and Wi-Fi Control
Image of final project: A project utilizing Photon 1 in a practical application
This circuit is a motion-activated alarm system using a Photon microcontroller, a PIR sensor, a piezo buzzer, a red LED, and a pushbutton. When motion is detected by the PIR sensor, the red LED lights up and the buzzer sounds an alarm, which can be deactivated manually via the pushbutton or remotely through the Particle Cloud.
Cirkit Designer LogoOpen Project in Cirkit Designer
Raspberry Pi Pico Controlled Robot with Ultrasonic Sensing and Light Detection
Image of MED412: A project utilizing Photon 1 in a practical application
This circuit features a Raspberry Pi Pico microcontroller as the central processing unit, interfacing with a variety of components. It controls a servo motor, reads from a photocell (LDR) with a resistor forming a voltage divider, and communicates with an HC-SR04 ultrasonic sensor for distance measurement. The circuit also includes an L298N motor driver to operate two DC gearmotors, with power regulation provided by a buck converter connected to a DC power source.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Wi-Fi Controlled Laser Shooting Game with OLED Display
Image of 123: A project utilizing Photon 1 in a practical application
This circuit is a laser shooting game controlled by a PS3 controller, featuring an ESP32 microcontroller, two photosensitive sensors for light detection, and a motor driver to control two DC motors. The game includes an OLED display for score visualization, and a MOSFET to control an LED bulb, with power supplied by a 12V battery and regulated by a DC-DC step-down converter.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano-Based Light Intensity Data Logger with Op-Amp Signal Conditioning
Image of TEST: A project utilizing Photon 1 in a practical application
This circuit is designed to detect light intensity using a photodiode and convert the signal into a readable voltage using a Transimpedance Amplifier (TIA) configuration with an LM358 Op-Amp. The resistor and capacitor form a feedback network for the TIA, which outputs a voltage proportional to the light intensity to the Arduino Nano's analog input (A0). The Arduino Nano is programmed to read this analog voltage, convert it to a digital value, and output the result over serial communication for monitoring or further processing.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Photon 1

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of final project: A project utilizing Photon 1 in a practical application
Photon 2 Motion Detector Alarm with PIR Sensor and Wi-Fi Control
This circuit is a motion-activated alarm system using a Photon microcontroller, a PIR sensor, a piezo buzzer, a red LED, and a pushbutton. When motion is detected by the PIR sensor, the red LED lights up and the buzzer sounds an alarm, which can be deactivated manually via the pushbutton or remotely through the Particle Cloud.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of MED412: A project utilizing Photon 1 in a practical application
Raspberry Pi Pico Controlled Robot with Ultrasonic Sensing and Light Detection
This circuit features a Raspberry Pi Pico microcontroller as the central processing unit, interfacing with a variety of components. It controls a servo motor, reads from a photocell (LDR) with a resistor forming a voltage divider, and communicates with an HC-SR04 ultrasonic sensor for distance measurement. The circuit also includes an L298N motor driver to operate two DC gearmotors, with power regulation provided by a buck converter connected to a DC power source.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of 123: A project utilizing Photon 1 in a practical application
ESP32-Based Wi-Fi Controlled Laser Shooting Game with OLED Display
This circuit is a laser shooting game controlled by a PS3 controller, featuring an ESP32 microcontroller, two photosensitive sensors for light detection, and a motor driver to control two DC motors. The game includes an OLED display for score visualization, and a MOSFET to control an LED bulb, with power supplied by a 12V battery and regulated by a DC-DC step-down converter.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of TEST: A project utilizing Photon 1 in a practical application
Arduino Nano-Based Light Intensity Data Logger with Op-Amp Signal Conditioning
This circuit is designed to detect light intensity using a photodiode and convert the signal into a readable voltage using a Transimpedance Amplifier (TIA) configuration with an LM358 Op-Amp. The resistor and capacitor form a feedback network for the TIA, which outputs a voltage proportional to the light intensity to the Arduino Nano's analog input (A0). The Arduino Nano is programmed to read this analog voltage, convert it to a digital value, and output the result over serial communication for monitoring or further processing.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Smart home devices (e.g., connected lights, thermostats)
  • Remote monitoring systems (e.g., temperature, humidity sensors)
  • Industrial IoT (e.g., machine monitoring, predictive maintenance)
  • Wearable devices with Wi-Fi connectivity
  • Prototyping and educational projects

Technical Specifications

The Photon 1 microcontroller is designed to balance performance, power efficiency, and ease of use. Below are its key technical details:

Key Technical Details

  • Microcontroller Core: ARM Cortex-M3, 120 MHz
  • Flash Memory: 1 MB
  • RAM: 128 KB
  • Wi-Fi: 802.11 b/g/n, 2.4 GHz
  • Operating Voltage: 3.3V
  • Input Voltage Range: 3.6V to 5.5V
  • Digital I/O Pins: 18 (with PWM support on select pins)
  • Analog Input Pins: 8 (12-bit ADC)
  • Communication Protocols: UART, SPI, I2C
  • Power Consumption: 80 mA (typical during Wi-Fi operation)
  • Dimensions: 36.58 mm x 20.32 mm

Pin Configuration and Descriptions

The Photon 1 has a total of 24 pins, including power, communication, and GPIO pins. Below is the pinout description:

Pin Name Type Description
1 VIN Power Input Input voltage (3.6V to 5.5V)
2 3V3 Power Output Regulated 3.3V output
3 GND Ground Ground connection
4 D0 Digital I/O GPIO, PWM capable
5 D1 Digital I/O GPIO, PWM capable
6 D2 Digital I/O GPIO, PWM capable
7 D3 Digital I/O GPIO, PWM capable
8 D4 Digital I/O GPIO, PWM capable
9 D5 Digital I/O GPIO, PWM capable
10 D6 Digital I/O GPIO, PWM capable
11 D7 Digital I/O GPIO, PWM capable
12 A0 Analog Input 12-bit ADC input
13 A1 Analog Input 12-bit ADC input
14 A2 Analog Input 12-bit ADC input
15 A3 Analog Input 12-bit ADC input
16 A4 Analog Input 12-bit ADC input
17 A5 Analog Input 12-bit ADC input
18 RX UART Input UART receive pin
19 TX UART Output UART transmit pin
20 SCL I2C Clock I2C clock line
21 SDA I2C Data I2C data line
22 SPI_SCK SPI Clock SPI clock line
23 SPI_MOSI SPI Data Out SPI master out, slave in
24 SPI_MISO SPI Data In SPI master in, slave out

Usage Instructions

The Photon 1 is designed to be easy to use in a variety of IoT projects. Below are the steps and best practices for using the component effectively.

How to Use the Photon 1 in a Circuit

  1. Powering the Photon 1:

    • Connect the VIN pin to a power source (3.6V to 5.5V).
    • Alternatively, you can power the device via the micro-USB port if available.
    • Ensure the GND pin is connected to the ground of your circuit.
  2. Connecting to Wi-Fi:

    • Use the built-in Wi-Fi module to connect to a wireless network.
    • Configure the Wi-Fi credentials using the programming interface or a mobile app.
  3. Programming the Photon 1:

    • The Photon 1 can be programmed using the Particle IDE or Arduino IDE.
    • Connect the Photon 1 to your computer via USB and upload your code.
  4. Interfacing with Sensors and Actuators:

    • Use the digital and analog pins to connect sensors and actuators.
    • For communication, use the UART, SPI, or I2C pins as needed.

Important Considerations and Best Practices

  • Voltage Levels: Ensure all connected devices operate at 3.3V logic levels to avoid damaging the Photon 1.
  • Wi-Fi Signal Strength: Place the Photon 1 in an area with a strong Wi-Fi signal for reliable connectivity.
  • Power Supply: Use a stable power source to prevent unexpected resets or malfunctions.
  • Pin Usage: Avoid exceeding the current limits of the GPIO pins (max 20 mA per pin).

Example Code for Arduino IDE

Below is an example of how to blink an LED connected to pin D0 of the Photon 1:

// Define the pin for the LED
const int ledPin = D0;

void setup() {
  // Set the LED pin as an output
  pinMode(ledPin, OUTPUT);
}

void loop() {
  // Turn the LED on
  digitalWrite(ledPin, HIGH);
  delay(1000); // Wait for 1 second

  // Turn the LED off
  digitalWrite(ledPin, LOW);
  delay(1000); // Wait for 1 second
}

Troubleshooting and FAQs

Common Issues and Solutions

  1. The Photon 1 is not connecting to Wi-Fi:

    • Ensure the Wi-Fi credentials are correct.
    • Check that the Wi-Fi network is operating at 2.4 GHz (not 5 GHz).
    • Verify that the Photon 1 is within range of the Wi-Fi router.
  2. The device is not powering on:

    • Check the power supply voltage (must be between 3.6V and 5.5V).
    • Ensure the GND pin is properly connected.
  3. Code upload fails:

    • Verify that the Photon 1 is in programming mode (check the onboard LED status).
    • Ensure the correct COM port is selected in the IDE.
  4. GPIO pins are not working as expected:

    • Confirm that the pins are configured correctly in the code (e.g., pinMode).
    • Check for short circuits or incorrect wiring.

FAQs

  • Can the Photon 1 operate on battery power?
    Yes, the Photon 1 can be powered by a battery, provided the voltage is within the 3.6V to 5.5V range.

  • What is the maximum range of the Wi-Fi module?
    The Wi-Fi module typically has a range of up to 30 meters indoors and 100 meters outdoors, depending on environmental factors.

  • Is the Photon 1 compatible with Arduino libraries?
    Yes, the Photon 1 can be programmed using the Arduino IDE and supports many Arduino libraries.

  • Can I use the Photon 1 for commercial products?
    Yes, the Photon 1 is suitable for both prototyping and commercial applications.