

The Photon 2, manufactured by Particle, is a versatile Wi-Fi development kit designed for creating connected projects and products. It integrates a powerful microcontroller, a Wi-Fi module, and cloud connectivity, making it an ideal choice for Internet of Things (IoT) applications. Whether you are a hobbyist or a professional developer, the Photon 2 provides a robust platform for building and deploying connected devices.








| Specification | Value |
|---|---|
| Microcontroller | ARM Cortex-M4 |
| Clock Speed | 120 MHz |
| Flash Memory | 1 MB |
| RAM | 256 KB |
| Wi-Fi Module | 802.11 b/g/n |
| Operating Voltage | 3.3V |
| Input Voltage | 3.6V to 5.5V |
| Digital I/O Pins | 18 |
| Analog Input Pins | 8 |
| PWM Pins | 8 |
| Communication | UART, SPI, I2C |
| Cloud Connectivity | Particle Cloud, REST API, Webhooks |
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VIN | Input voltage (3.6V to 5.5V) |
| 2 | GND | Ground |
| 3 | 3V3 | 3.3V output |
| 4 | A0 | Analog input 0 |
| 5 | A1 | Analog input 1 |
| 6 | A2 | Analog input 2 |
| 7 | A3 | Analog input 3 |
| 8 | A4 | Analog input 4 |
| 9 | A5 | Analog input 5 |
| 10 | D0 | Digital I/O 0 |
| 11 | D1 | Digital I/O 1 |
| 12 | D2 | Digital I/O 2 |
| 13 | D3 | Digital I/O 3 |
| 14 | D4 | Digital I/O 4 |
| 15 | D5 | Digital I/O 5 |
| 16 | D6 | Digital I/O 6 |
| 17 | D7 | Digital I/O 7 |
| 18 | RX | UART Receive |
| 19 | TX | UART Transmit |
| 20 | SCL | I2C Clock |
| 21 | SDA | I2C Data |
| 22 | WKP | Wake-up pin |
| 23 | RST | Reset |
Powering the Photon 2:
Connecting to Wi-Fi:
Programming the Photon 2:
Basic Circuit Example:
// This example code demonstrates how to blink an LED connected to pin D0
// on the Photon 2. The LED will turn on for one second and off for one second.
void setup() {
// Initialize pin D0 as an output
pinMode(D0, OUTPUT);
}
void loop() {
// Turn the LED on (HIGH is the voltage level)
digitalWrite(D0, HIGH);
// Wait for a second
delay(1000);
// Turn the LED off by making the voltage LOW
digitalWrite(D0, LOW);
// Wait for a second
delay(1000);
}
Wi-Fi Connection Issues:
Power Supply Problems:
Code Upload Failures:
Unresponsive Device:
By following this documentation, users can effectively utilize the Photon 2 for their IoT projects, ensuring reliable performance and seamless integration with various applications.