The SparkFun SAMD21 Mini Breakout is a compact and versatile development board that harnesses the power of the Microchip ATSAMD21G18, a 32-bit ARM Cortex-M0+ microcontroller. With a rich set of peripherals and a minimalistic design, this breakout board is ideal for a wide range of applications including IoT devices, wearables, and high-performance embedded systems.
The SparkFun SAMD21 Mini Breakout offers a balance of performance and power efficiency, making it suitable for a variety of projects.
Pin Number | Function | Description |
---|---|---|
1 | VIN | Supply voltage input (3.3V to 6V) |
2 | GND | Ground |
3-5 | Digital I/O | General-purpose input/output |
6 | AREF | Analog reference voltage for ADC |
7-12 | Analog Input | Analog input channels for ADC |
13 | RESET | Reset pin (active low) |
14-19 | Digital I/O | General-purpose input/output with PWM capability |
20 | USB | USB interface for programming and power |
Q: Can I use the Arduino IDE with the SparkFun SAMD21 Mini Breakout?
A: Yes, the board is compatible with the Arduino IDE. You will need to install the appropriate board definitions for the SAMD21.
Q: What is the maximum current that the I/O pins can source or sink?
A: The maximum current per I/O pin is 7 mA. It's important not to exceed this limit to prevent damage to the microcontroller.
Q: Is there onboard voltage regulation?
A: Yes, the board includes a 3.3V regulator. When powering via VIN, the input voltage is regulated down to the operating voltage.
Below is a simple example of how to blink an LED connected to pin 13 of the SparkFun SAMD21 Mini Breakout using the Arduino IDE.
// Pin 13 has an LED connected on most Arduino boards.
int led = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(led, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Remember to select the correct board from the Tools > Board menu in the Arduino IDE before uploading the code to the SparkFun SAMD21 Mini Breakout.
This documentation provides a comprehensive guide to getting started with the SparkFun SAMD21 Mini Breakout. For further assistance, consult the SparkFun forums and the extensive online resources available.