The SparkFun RedBoard Qwiic is an Arduino-compatible development board that simplifies the process of prototyping and building electronic projects. It is based on the popular ATmega328P microcontroller and is fully compatible with the Arduino IDE. The board's standout feature is its Qwiic connect system, which allows for easy daisy-chaining of I2C devices without the need for soldering. This makes it an ideal platform for rapid development and educational purposes, as well as for hobbyists and professionals looking to streamline their I2C-based projects.
Pin Number | Function | Description |
---|---|---|
1 | RESET | Resets the microcontroller |
2-13 | Digital I/O | Digital input/output pins, PWM on 3, 5, 6, 9, 10, 11 |
14-19 | Analog Input | Analog input pins (A0-A5) |
20, 21 | I2C / TWI | SDA (data line) and SCL (clock line) for I2C communication |
AREF | Analog Reference | Reference voltage for the analog inputs |
GND | Ground | Common ground for circuits |
VIN | Voltage Input | Input voltage to the board (7-15V) |
5V | 5V Output | Regulated 5V output |
3.3V | 3.3V Output | Regulated 3.3V output |
Powering the Board:
Connecting I2C Devices:
Programming the Board:
Here is a simple example of how to blink an LED on pin 13 of the SparkFun RedBoard Qwiic:
// Define the LED pin
const int ledPin = 13;
// the setup routine runs once when you press reset:
void setup() {
// initialize the digital pin as an output.
pinMode(ledPin, OUTPUT);
}
// the loop routine runs over and over again forever:
void loop() {
digitalWrite(ledPin, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(ledPin, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
Remember to keep your code comments concise and within the 80 character line length limit. This example demonstrates the basic structure of an Arduino sketch, including setup and loop functions, and controlling a digital output.