The Adafruit Gemma M0 is a compact, yet powerful microcontroller board tailored for wearable electronics projects. It harnesses the capabilities of the ATSAMD21G18 microcontroller, which boasts a Cortex M0+ core clocked at 48MHz. The Gemma M0's diminutive size belies its versatility, offering a range of I/O options for digital and analog connectivity. With a built-in USB interface, the Gemma M0 simplifies programming and communication with computers. It is compatible with the Arduino IDE, which streamlines the development process for both novices and seasoned enthusiasts.
Pin Number | Function | Description |
---|---|---|
D1 | Digital I/O | PWM capable, can be used as an interrupt pin |
D2 | Digital I/O | PWM capable, can be used as an interrupt pin |
A2 | Analog Input | 10-bit ADC |
A0 | Analog Output | True analog output (DAC) |
RX | Serial RX | Serial Receive pin, for communication |
TX | Serial TX | Serial Transmit pin, for communication |
VOUT | Voltage Output | Regulated 3.3V output to power external devices |
GND | Ground | Common ground for circuits |
BAT | Battery + | Positive battery terminal for external power |
USB | USB Power | Power from USB connection |
// Blink the onboard LED
void setup() {
pinMode(LED_BUILTIN, OUTPUT); // Initialize the LED pin as an output
}
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(LED_BUILTIN, LOW); // Turn the LED off
delay(1000); // Wait for a second
}
Q: Can I power the Gemma M0 with a higher voltage source? A: No, the Gemma M0 is designed to be powered by a source between 4-6V. Exceeding this range can damage the board.
Q: Is the Gemma M0 washable for wearable projects? A: The Gemma M0 is not inherently washable. It should be removed from garments before washing, or adequately protected and waterproofed.
Q: How do I connect the Gemma M0 to a sensor or actuator? A: Use the digital and analog pins to connect to various components, ensuring that they are compatible with the 3.3V logic level of the Gemma M0. Use conductive thread or wires for connections in wearable projects.
Q: Can I use libraries developed for Arduino with the Gemma M0? A: Many Arduino libraries are compatible with the Gemma M0, but always check the library documentation to ensure compatibility with the ATSAMD21G18 microcontroller.