The GEMMA v1 is a miniature wearable electronic platform powered by the ATtiny85 microcontroller. It is designed by Adafruit for small-scale projects where size and power efficiency are crucial. The GEMMA v1 is ideal for wearables, e-textiles, and IoT applications due to its tiny footprint and versatile I/O options.
Pin Number | Name | Description |
---|---|---|
1 | Vout | 3.3V output from the onboard regulator |
2 | A1/D2 | Analog input 1 or Digital I/O pin 2 |
3 | A2/D0 | Analog input 2 or Digital I/O pin 0, also PWM capable |
4 | A3/D1 | Analog input 3 or Digital I/O pin 1, also PWM capable |
5 | GND | Ground |
6 | BAT | Battery input for an external power source (4-16V DC) |
7 | 3Vo | Regulated 3.3V output, can be used to power external sensors/components |
8 | #RESET | Reset pin, can be used to restart the microcontroller |
Powering the GEMMA v1:
Programming the GEMMA v1:
Connecting I/O:
Using PWM:
GEMMA v1 not recognized by computer:
Sketch upload fails:
Connected peripherals not working:
// Blink an LED connected to pin D1 of the GEMMA v1
#define LED_PIN 1 // Define the pin the LED is connected to
void setup() {
pinMode(LED_PIN, OUTPUT); // Set the LED pin as an output
}
void loop() {
digitalWrite(LED_PIN, HIGH); // Turn the LED on
delay(1000); // Wait for a second
digitalWrite(LED_PIN, LOW); // Turn the LED off
delay(1000); // Wait for a second
}
Note: This code is for demonstration purposes and assumes an LED with an appropriate resistor is connected to pin D1 of the GEMMA v1. Always ensure that your circuit is designed according to the component's specifications.