

The Particle Photon 2 is a powerful, Wi-Fi enabled microcontroller designed for Internet of Things (IoT) projects. It features an ARM Cortex-M4 processor, ample flash memory, and RAM, making it suitable for a wide range of applications. Whether you're building a smart home device, an industrial automation system, or a connected sensor network, the Photon 2 provides the performance and connectivity you need.








| Specification | Value |
|---|---|
| Processor | ARM Cortex-M4 |
| Clock Speed | 120 MHz |
| Flash Memory | 1 MB |
| RAM | 256 KB |
| Wi-Fi | 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 |
| UART | 1 |
| SPI | 1 |
| I2C | 1 |
| Dimensions | 36.58mm x 20.32mm |
| 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 | A6 | Analog input 6 |
| 11 | A7 | Analog input 7 |
| 12 | D0 | Digital I/O 0 |
| 13 | D1 | Digital I/O 1 |
| 14 | D2 | Digital I/O 2 |
| 15 | D3 | Digital I/O 3 |
| 16 | D4 | Digital I/O 4 |
| 17 | D5 | Digital I/O 5 |
| 18 | D6 | Digital I/O 6 |
| 19 | D7 | Digital I/O 7 |
| 20 | RX | UART Receive |
| 21 | TX | UART Transmit |
| 22 | SCL | I2C Clock |
| 23 | SDA | I2C Data |
| 24 | SCK | SPI Clock |
| 25 | MISO | SPI Master In Slave Out |
| 26 | MOSI | SPI Master Out Slave In |
| 27 | RST | Reset |
Powering the Photon 2:
Connecting to Wi-Fi:
Programming the Photon 2:
Basic Circuit Example:
// Define the pin for the LED
int ledPin = D0;
void setup() {
// Initialize 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
}
Photon 2 Not Connecting to Wi-Fi:
Code Not Uploading:
LED Not Blinking:
Resetting the Photon 2:
Safe Mode:
Factory Reset:
Can I use the Photon 2 with Arduino IDE?
What is the maximum current for the I/O pins?
How do I update the firmware?
Can I use the Photon 2 without Wi-Fi?
By following this documentation, users can effectively utilize the Particle Photon 2 in their IoT projects, ensuring reliable performance and connectivity.