Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

How to Use SparkFun Photon RedBoard: Examples, Pinouts, and Specs

Image of SparkFun Photon RedBoardDesign with SparkFun Photon RedBoard in Cirkit Designer

Introduction

The SparkFun Photon RedBoard is an innovative development board that integrates the Particle Photon Wi-Fi module, offering a seamless experience for prototyping Wi-Fi enabled projects. This board is designed to be compatible with the Arduino form factor, allowing for a wide range of applications ranging from Internet of Things (IoT) devices to smart home automation and wireless sensor networks.

Explore Projects Built with SparkFun Photon RedBoard

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of SparkFun RedBoard Controlled Multi-Servo Circuit: A project utilizing SparkFun Photon RedBoard in a practical application
SparkFun RedBoard Controlled Multi-Servo Circuit

This circuit consists of a SparkFun RedBoard, which is an Arduino-compatible development platform, connected to four servo motors. The RedBoard provides 5V power and ground to each servo, and it also controls the servos using PWM signals on pins D3, D4, D5, and D6. The purpose of this circuit is to independently control the position or speed of four servos, commonly used in robotics and RC applications.

Open Project in Cirkit Designer
Image of Battery-Powered Smart Light with Proximity Sensor and OLED Display using Adafruit QT Py RP2040: A project utilizing SparkFun Photon RedBoard in a practical application
Battery-Powered Smart Light with Proximity Sensor and OLED Display using Adafruit QT Py RP2040

This circuit is a portable, battery-powered system featuring an Adafruit QT Py RP2040 microcontroller that interfaces with an OLED display, a proximity sensor, an accelerometer, and an RGB LED strip. The system is powered by a lithium-ion battery with a step-up boost converter to provide 5V for the LED strip, and it includes a toggle switch for power control. The microcontroller communicates with the sensors and display via I2C.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

Key Technical Details

Pin Configuration and Descriptions

Pin Number Function Description
D0-D7 Digital I/O Digital input/output pins, PWM capable
A0-A5 Analog Input Analog input pins, 12-bit ADC
VIN Voltage Input Unregulated input voltage to power the board
3V3 3.3V Output Regulated 3.3V output
GND Ground Ground reference point
RST Reset Resets the microcontroller
TX/RX Serial Comm. Transmit and receive for serial communication
DAC DAC Output Digital-to-Analog Converter output
WKP Wake-up Pin Used to wake up the Photon from sleep mode

Usage Instructions

How to Use the Component in a Circuit

  1. Powering the Board:

    • Connect a power supply to the VIN and GND pins, ensuring the voltage is within the recommended limits.
  2. Connecting to Wi-Fi:

    • Use the Particle app or web IDE to configure the Photon module to connect to your Wi-Fi network.
  3. Interfacing with Sensors/Actuators:

    • Connect sensors to the analog input pins for data acquisition.
    • Connect actuators such as LEDs or motors to the digital I/O pins, considering the current limits.
  4. Programming the Board:

    • The Photon RedBoard can be programmed using the Particle Web IDE, Particle Dev, or the Arduino IDE with the Particle firmware libraries.

Important Considerations and Best Practices

Example Code for Arduino UNO

// This example demonstrates a simple blink program for the SparkFun Photon RedBoard

// Define the LED pin
int ledPin = D7; // On-board LED

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
}

Troubleshooting and FAQs

Common Issues Users Might Face

Solutions and Tips for Troubleshooting

FAQs

Q: Can I use the Arduino IDE to program the Photon RedBoard? A: Yes, with the Particle firmware libraries installed, you can use the Arduino IDE.

Q: What is the maximum current the 3V3 pin can supply? A: The 3V3 pin can typically supply up to 100 mA.

Q: How do I connect to the Particle Cloud? A: Use the Particle app or web IDE to configure the Photon module with your Wi-Fi credentials, and it will automatically connect to the Particle Cloud.

Q: Can I use the Photon RedBoard with a battery? A: Yes, you can power the board with a battery, as long as the voltage is within the specified limits.