

The Photon 2 is a small, powerful Wi-Fi development kit designed for creating connected projects and products. It is an ideal choice for developers looking to integrate Wi-Fi connectivity into their applications with ease. The Photon 2 is equipped with a robust microcontroller and a reliable Wi-Fi module, making it suitable for a wide range of IoT (Internet of Things) projects.








| Specification | Value |
|---|---|
| Microcontroller | ARM Cortex-M4 |
| Operating Voltage | 3.3V |
| Input Voltage | 3.6V to 5.5V |
| Digital I/O Pins | 18 |
| Analog Input Pins | 8 |
| Flash Memory | 1MB |
| RAM | 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 to 5.5V) |
| 2 | GND | Ground |
| 3 | D0 | Digital I/O |
| 4 | D1 | Digital I/O |
| 5 | D2 | Digital I/O |
| 6 | D3 | Digital I/O |
| 7 | D4 | Digital I/O |
| 8 | D5 | Digital I/O |
| 9 | D6 | Digital I/O |
| 10 | D7 | Digital I/O |
| 11 | A0 | Analog Input |
| 12 | A1 | Analog Input |
| 13 | A2 | Analog Input |
| 14 | A3 | Analog Input |
| 15 | A4 | Analog Input |
| 16 | A5 | Analog Input |
| 17 | A6 | Analog Input |
| 18 | A7 | Analog Input |
Powering the Photon 2:
Connecting to Wi-Fi:
Programming the Photon 2:
Connecting Sensors and Actuators:
Here is an example code to blink an LED connected to pin D0 using the Photon 2:
// 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:
Sensor/Actuator Not Responding:
Wi-Fi Connection Issues:
Code Upload Issues:
Sensor/Actuator Issues:
By following this documentation, users can effectively utilize the Photon 2 in their projects, troubleshoot common issues, and implement best practices for optimal performance.