

The Photon2 is a small, powerful Wi-Fi development kit designed for creating connected projects and products. It features a microcontroller with built-in Wi-Fi, making it ideal for Internet of Things (IoT) applications. The Photon2 is perfect for developers looking to build smart devices, home automation systems, and other connected solutions.








| Specification | Value |
|---|---|
| Microcontroller | ARM Cortex-M4 |
| Operating Voltage | 3.3V |
| Input Voltage | 3.6V - 5.5V |
| Digital I/O Pins | 18 |
| Analog Input Pins | 8 |
| Flash Memory | 1MB |
| SRAM | 256KB |
| Wi-Fi | 802.11 b/g/n |
| Clock Speed | 120 MHz |
| Dimensions | 36.58mm x 20.32mm |
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VIN | Input voltage (3.6V - 5.5V) |
| 2 | GND | Ground |
| 3 | 3V3 | 3.3V output |
| 4 | D0 | Digital I/O |
| 5 | D1 | Digital I/O |
| 6 | D2 | Digital I/O |
| 7 | D3 | Digital I/O |
| 8 | D4 | Digital I/O |
| 9 | D5 | Digital I/O |
| 10 | D6 | Digital I/O |
| 11 | D7 | Digital I/O |
| 12 | A0 | Analog Input |
| 13 | A1 | Analog Input |
| 14 | A2 | Analog Input |
| 15 | A3 | Analog Input |
| 16 | A4 | Analog Input |
| 17 | A5 | Analog Input |
| 18 | A6 | Analog Input |
| 19 | A7 | Analog Input |
Powering the Photon2:
Connecting to Wi-Fi:
Digital I/O:
Analog Input:
Power Supply:
Wi-Fi Configuration:
Pin Usage:
Here is an example of how to connect the Photon2 to an Arduino UNO and read an analog sensor value:
// Include necessary libraries
#include <Particle.h>
// Define the analog input pin
#define ANALOG_PIN A0
void setup() {
// Initialize serial communication
Serial.begin(9600);
// Initialize the analog pin as input
pinMode(ANALOG_PIN, INPUT);
}
void loop() {
// Read the analog value from the sensor
int sensorValue = analogRead(ANALOG_PIN);
// Print the sensor value to the serial monitor
Serial.println(sensorValue);
// Wait for 1 second before reading again
delay(1000);
}
Wi-Fi Connection Problems:
Power Supply Issues:
Pin Configuration Errors:
Q1: Can I use the Photon2 with a 5V power supply?
Q2: How do I reset the Wi-Fi credentials on the Photon2?
Q3: Can I use the Photon2 with other microcontrollers?
Q4: What is the maximum current rating for the I/O pins?
By following this documentation, you should be able to effectively use the Photon2 in your projects and troubleshoot common issues. Happy building!