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

How to Use SparkCore: Examples, Pinouts, and Specs

Image of SparkCoreDesign with SparkCore in Cirkit Designer

Introduction

The SparkCore is a microcontroller platform developed by Particle (Manufacturer Part ID: 1.0) specifically designed for Internet of Things (IoT) applications. It features built-in Wi-Fi connectivity and a cloud-based development environment, making it an ideal choice for creating connected devices with ease. The SparkCore simplifies the process of integrating hardware with the internet, enabling rapid prototyping and deployment of IoT solutions.

Explore Projects Built with SparkCore

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 ESP32-Based Motion Tracking System with ICM20948 Sensor: A project utilizing SparkCore in a practical application
ESP32-Based Motion Tracking System with ICM20948 Sensor

This circuit features a SparkFun ESP32 Thing Plus microcontroller interfaced with an Adafruit ICM20948 9-axis motion sensor via an Adafruit TXB0104 4-channel bi-directional level shifter. The ESP32 reads data from the ICM20948 sensor, calculates orientation angles such as pitch, roll, yaw, and azimuth, and outputs these values to the serial monitor. The level shifter ensures compatibility between the 3.3V logic levels of the ESP32 and the 1.8V logic levels required by the ICM20948.

Open Project in Cirkit Designer
Image of Arduino Nano Controlled Rocket Thruster with Load Cell Feedback and SD Data Logging: A project utilizing SparkCore in a practical application
Arduino Nano Controlled Rocket Thruster with Load Cell Feedback and SD Data Logging

This circuit is designed to control a rocket thruster using an Arduino Nano as the central microcontroller. It features a load cell connected to an HX711 amplifier for force measurement, with data logging capabilities via an SD card module. The circuit also includes two solenoids controlled by MOSFETs for actuating the thruster, with diodes for back EMF protection and resistors for gate voltage control.

Open Project in Cirkit Designer
Image of Arduino Nano Controlled Rocket Thruster with Load Cell Feedback and SD Data Logging: A project utilizing SparkCore in a practical application
Arduino Nano Controlled Rocket Thruster with Load Cell Feedback and SD Data Logging

This circuit is designed to control a rocket thruster using an Arduino Nano, which interfaces with a load cell through an HX711 amplifier to measure thrust force, and logs data to an SD card. It uses a pushbutton to initiate the ignition sequence, activating an e-match via a MOSFET to ignite the thruster and then opening a solenoid valve to release fuel. The circuit includes protection diodes for the solenoids and pull-up resistors for the MOSFET gates.

Open Project in Cirkit Designer

Common Applications and Use Cases

Technical Specifications

The SparkCore is built around a powerful ARM Cortex-M3 microcontroller and includes integrated Wi-Fi capabilities. Below are the key technical details:

Key Technical Details

Parameter Specification
Microcontroller STM32F103CB (ARM Cortex-M3, 72 MHz)
Flash Memory 128 KB
RAM 20 KB
Wi-Fi Module Broadcom BCM43362
Operating Voltage 3.3V
Input Voltage Range 3.6V to 6.0V
Digital I/O Pins 18
Analog Input Pins 8
Communication Interfaces UART, SPI, I2C
Cloud Connectivity Particle Cloud (via Wi-Fi)
Dimensions 0.8" x 1.2" (20.3 mm x 30.5 mm)

Pin Configuration and Descriptions

The SparkCore features a 20-pin layout. Below is the pin configuration:

Pin Number Pin Name Description
1 VIN Input voltage (3.6V to 6.0V)
2 GND Ground
3 D0 Digital I/O pin
4 D1 Digital I/O pin
5 D2 Digital I/O pin
6 D3 Digital I/O pin
7 D4 Digital I/O pin
8 D5 Digital I/O pin
9 D6 Digital I/O pin
10 D7 Digital I/O pin
11 A0 Analog input pin
12 A1 Analog input pin
13 A2 Analog input pin
14 A3 Analog input pin
15 A4 Analog input pin
16 A5 Analog input pin
17 RX UART receive pin
18 TX UART transmit pin
19 RST Reset pin
20 3V3 3.3V output

Usage Instructions

The SparkCore is designed to be user-friendly and integrates seamlessly with the Particle Cloud. Below are the steps to use the SparkCore in a circuit:

Step 1: Powering the SparkCore

Step 2: Connecting to Wi-Fi

Step 3: Programming the SparkCore

Step 4: Interfacing with Sensors and Actuators

Example Code: Blinking an LED

Below is an example of how to blink an LED connected to pin D0 using the SparkCore:

// This code blinks an LED connected to pin D0 on the SparkCore

// Define the pin for the LED
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
}

Best Practices

Troubleshooting and FAQs

Common Issues and Solutions

  1. Issue: SparkCore is not connecting to Wi-Fi.

    • Solution: Ensure the Wi-Fi credentials are correct and the network is 2.4 GHz (not 5 GHz). Reset the SparkCore and reconfigure the Wi-Fi settings using the Particle app or CLI.
  2. Issue: Unable to flash code to the SparkCore.

    • Solution: Check if the SparkCore is online in the Particle Cloud. If not, verify the power supply and Wi-Fi connection. Use the Particle CLI to manually flash the firmware.
  3. Issue: The SparkCore is not responding to inputs/outputs.

    • Solution: Ensure the pins are correctly configured in the code. Check for loose connections or damaged components.

FAQs

By following this documentation, you can effectively use the SparkCore for your IoT projects. For additional support, visit the Particle community forums or refer to the official Particle documentation.