

The Photon 1 is a compact, low-power microcontroller designed specifically for Internet of Things (IoT) applications. It features built-in Wi-Fi connectivity, making it ideal for projects that require wireless communication. With its simple programming interface and robust hardware, the Photon 1 enables rapid development and deployment of IoT solutions.








The Photon 1 microcontroller is designed to balance performance, power efficiency, and ease of use. Below are its key technical details:
The Photon 1 has a total of 24 pins, including power, communication, and GPIO pins. Below is the pinout description:
| Pin | Name | Type | Description |
|---|---|---|---|
| 1 | VIN | Power Input | Input voltage (3.6V to 5.5V) |
| 2 | 3V3 | Power Output | Regulated 3.3V output |
| 3 | GND | Ground | Ground connection |
| 4 | D0 | Digital I/O | GPIO, PWM capable |
| 5 | D1 | Digital I/O | GPIO, PWM capable |
| 6 | D2 | Digital I/O | GPIO, PWM capable |
| 7 | D3 | Digital I/O | GPIO, PWM capable |
| 8 | D4 | Digital I/O | GPIO, PWM capable |
| 9 | D5 | Digital I/O | GPIO, PWM capable |
| 10 | D6 | Digital I/O | GPIO, PWM capable |
| 11 | D7 | Digital I/O | GPIO, PWM capable |
| 12 | A0 | Analog Input | 12-bit ADC input |
| 13 | A1 | Analog Input | 12-bit ADC input |
| 14 | A2 | Analog Input | 12-bit ADC input |
| 15 | A3 | Analog Input | 12-bit ADC input |
| 16 | A4 | Analog Input | 12-bit ADC input |
| 17 | A5 | Analog Input | 12-bit ADC input |
| 18 | RX | UART Input | UART receive pin |
| 19 | TX | UART Output | UART transmit pin |
| 20 | SCL | I2C Clock | I2C clock line |
| 21 | SDA | I2C Data | I2C data line |
| 22 | SPI_SCK | SPI Clock | SPI clock line |
| 23 | SPI_MOSI | SPI Data Out | SPI master out, slave in |
| 24 | SPI_MISO | SPI Data In | SPI master in, slave out |
The Photon 1 is designed to be easy to use in a variety of IoT projects. Below are the steps and best practices for using the component effectively.
Powering the Photon 1:
Connecting to Wi-Fi:
Programming the Photon 1:
Interfacing with Sensors and Actuators:
Below is an example of how to blink an LED connected to pin D0 of the Photon 1:
// Define the pin for the LED
const int ledPin = D0;
void setup() {
// Set 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
}
The Photon 1 is not connecting to Wi-Fi:
The device is not powering on:
Code upload fails:
GPIO pins are not working as expected:
pinMode).Can the Photon 1 operate on battery power?
Yes, the Photon 1 can be powered by a battery, provided the voltage is within the 3.6V to 5.5V range.
What is the maximum range of the Wi-Fi module?
The Wi-Fi module typically has a range of up to 30 meters indoors and 100 meters outdoors, depending on environmental factors.
Is the Photon 1 compatible with Arduino libraries?
Yes, the Photon 1 can be programmed using the Arduino IDE and supports many Arduino libraries.
Can I use the Photon 1 for commercial products?
Yes, the Photon 1 is suitable for both prototyping and commercial applications.