The Photon 2 is a powerful Wi-Fi development kit designed by Particle for creating connected projects and products. It features a Broadcom Wi-Fi chip, a robust ARM Cortex M3 microcontroller, and seamless integration with the Particle cloud platform. This makes it an ideal choice for IoT (Internet of Things) applications, home automation, and other connected projects.
Specification | Value |
---|---|
Microcontroller | ARM Cortex M3 |
Wi-Fi Chip | Broadcom BCM43362 |
Operating Voltage | 3.3V |
Input Voltage | 3.6V to 5.5V |
Digital I/O Pins | 18 |
Analog Input Pins | 8 |
Flash Memory | 1MB |
SRAM | 128KB |
Clock Speed | 120MHz |
Dimensions | 36.58mm x 20.32mm |
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 | RST | Reset |
23 | WKP | Wakeup |
24 | DAC | Digital-to-Analog Converter |
25 | VBAT | Battery input (3.6V to 4.2V) |
Powering the Photon 2:
Connecting to Wi-Fi:
Programming:
Connecting Sensors and Actuators:
Here is an example code to blink an LED connected to pin D7:
// This #include statement was automatically added by the Particle IDE.
#include "Particle.h"
// Define the pin for the LED
const int ledPin = D7;
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
}
Wi-Fi Connection Issues:
Power Issues:
Code Upload Failures:
Unresponsive Device:
How do I reset the Photon 2?
Can I use the Photon 2 with Arduino IDE?
How do I update the firmware?
What is the maximum input voltage for the VIN pin?
By following this documentation, users can effectively utilize the Photon 2 for their connected projects and troubleshoot common issues they may encounter.