Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use Adafruit Adalogger FeatherWing: Examples, Pinouts, and Specs

Image of Adafruit Adalogger FeatherWing
Cirkit Designer LogoDesign with Adafruit Adalogger FeatherWing in Cirkit Designer

Introduction

The Adafruit Adalogger FeatherWing (Manufacturer Part ID: 2922) is a versatile add-on board designed for use with Adafruit Feather microcontrollers. It combines a real-time clock (RTC) and microSD card slot, enabling users to log data with precise timestamps. This makes it an ideal solution for applications requiring data storage and timekeeping, such as environmental monitoring, IoT projects, and sensor data logging.

Explore Projects Built with Adafruit Adalogger FeatherWing

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Solar-Powered Environmental Data Logger with Adafruit Feather M0 Express
Image of Lake Thoreau Monitoring Station: A project utilizing Adafruit Adalogger FeatherWing in a practical application
This circuit is designed for environmental data collection and logging, utilizing an Adafruit Feather M0 Express microcontroller as the central processing unit. It interfaces with a BME280 sensor for atmospheric temperature, humidity, and pressure measurements, an SGP30 sensor for monitoring air quality (eCO2 and TVOC), and a STEMMA soil sensor for detecting soil moisture and temperature. The system is powered by a solar panel and a 3.7v LiPo battery, managed by an Adafruit BQ24074 Solar-DC-USB Lipo Charger, and provides easy access to the microcontroller's connections through an Adafruit Terminal Breakout FeatherWing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Multi-Sensor Health Monitoring System with Adafruit Feather M0 Adalogger
Image of health tracker: A project utilizing Adafruit Adalogger FeatherWing in a practical application
This circuit is designed to interface multiple sensors with an Adafruit Feather M0 Adalogger microcontroller for data logging purposes. The sensors include a MAX30205 temperature sensor, a body dehydration sensor, a MAX30102 pulse oximeter, an Adafruit LSM6DSOX 6-axis accelerometer and gyroscope, and an Adafruit BME680 environmental sensor. All sensors are connected to the microcontroller via an I2C bus, sharing the SDA and SCL lines for communication.
Cirkit Designer LogoOpen Project in Cirkit Designer
ESP32-Based Vibration Feedback System with Quad Alphanumeric Display and ADXL343 Accelerometer
Image of EC444 - Quest 3: A project utilizing Adafruit Adalogger FeatherWing in a practical application
This circuit features an Adafruit HUZZAH32 ESP32 Feather board as the central microcontroller, which is connected to an Adafruit Quad AlphaNumeric Featherwing display and an Adafruit ADXL343 accelerometer via I2C communication (SCL and SDA lines). The ESP32 controls a vibration motor connected to one of its GPIO pins (A5_IO4) and shares a common power supply (3.3V) and ground (GND) with the other components. The purpose of this circuit is likely to read acceleration data, display information on the alphanumeric display, and provide haptic feedback through the vibration motor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino UNO and OLED FeatherWing Display: Battery-Powered Hello World Project
Image of ARDUINO_SSD1306: A project utilizing Adafruit Adalogger FeatherWing in a practical application
This circuit consists of an Arduino UNO connected to an Adafruit OLED FeatherWing display via I2C communication (SDA and SCL lines). The Arduino is powered through a Vcc source and provides 3.3V and GND connections to the OLED display. The Arduino runs a program to display 'Hello, World!' on the OLED screen.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with Adafruit Adalogger FeatherWing

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 Lake Thoreau Monitoring Station: A project utilizing Adafruit Adalogger FeatherWing in a practical application
Solar-Powered Environmental Data Logger with Adafruit Feather M0 Express
This circuit is designed for environmental data collection and logging, utilizing an Adafruit Feather M0 Express microcontroller as the central processing unit. It interfaces with a BME280 sensor for atmospheric temperature, humidity, and pressure measurements, an SGP30 sensor for monitoring air quality (eCO2 and TVOC), and a STEMMA soil sensor for detecting soil moisture and temperature. The system is powered by a solar panel and a 3.7v LiPo battery, managed by an Adafruit BQ24074 Solar-DC-USB Lipo Charger, and provides easy access to the microcontroller's connections through an Adafruit Terminal Breakout FeatherWing.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of health tracker: A project utilizing Adafruit Adalogger FeatherWing in a practical application
Multi-Sensor Health Monitoring System with Adafruit Feather M0 Adalogger
This circuit is designed to interface multiple sensors with an Adafruit Feather M0 Adalogger microcontroller for data logging purposes. The sensors include a MAX30205 temperature sensor, a body dehydration sensor, a MAX30102 pulse oximeter, an Adafruit LSM6DSOX 6-axis accelerometer and gyroscope, and an Adafruit BME680 environmental sensor. All sensors are connected to the microcontroller via an I2C bus, sharing the SDA and SCL lines for communication.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of EC444 - Quest 3: A project utilizing Adafruit Adalogger FeatherWing in a practical application
ESP32-Based Vibration Feedback System with Quad Alphanumeric Display and ADXL343 Accelerometer
This circuit features an Adafruit HUZZAH32 ESP32 Feather board as the central microcontroller, which is connected to an Adafruit Quad AlphaNumeric Featherwing display and an Adafruit ADXL343 accelerometer via I2C communication (SCL and SDA lines). The ESP32 controls a vibration motor connected to one of its GPIO pins (A5_IO4) and shares a common power supply (3.3V) and ground (GND) with the other components. The purpose of this circuit is likely to read acceleration data, display information on the alphanumeric display, and provide haptic feedback through the vibration motor.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of ARDUINO_SSD1306: A project utilizing Adafruit Adalogger FeatherWing in a practical application
Arduino UNO and OLED FeatherWing Display: Battery-Powered Hello World Project
This circuit consists of an Arduino UNO connected to an Adafruit OLED FeatherWing display via I2C communication (SDA and SCL lines). The Arduino is powered through a Vcc source and provides 3.3V and GND connections to the OLED display. The Arduino runs a program to display 'Hello, World!' on the OLED screen.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications:

  • Environmental data logging (e.g., temperature, humidity, pressure)
  • IoT projects requiring time-stamped data
  • GPS tracking and logging
  • Scientific experiments and research
  • Prototyping projects with Feather boards

Technical Specifications

Key Technical Details:

  • Real-Time Clock (RTC): DS3231 precision RTC with battery backup
  • MicroSD Card Slot: Supports FAT16/FAT32 formatted microSD cards
  • Power Supply: Operates at 3.3V (compatible with Feather boards)
  • Battery Backup: CR1220 coin cell holder for RTC (battery not included)
  • Dimensions: 50.8mm x 22.8mm x 6.5mm (2.0" x 0.9" x 0.25")
  • Weight: 5.4g (0.19oz)

Pin Configuration and Descriptions:

The Adalogger FeatherWing connects directly to Feather microcontrollers via its headers. Below is the pinout description:

Pin Name Description
3V 3.3V power input/output
GND Ground connection
SCL I2C clock line for RTC communication
SDA I2C data line for RTC communication
SDCS Chip Select (CS) pin for the microSD card interface
MOSI SPI Master Out Slave In (data line for microSD card)
MISO SPI Master In Slave Out (data line for microSD card)
SCK SPI clock line for microSD card communication
BAT Connection for CR1220 coin cell battery to maintain RTC functionality

Usage Instructions

How to Use the Adalogger FeatherWing in a Circuit:

  1. Attach the FeatherWing to a Feather Board:

    • Align the FeatherWing's headers with the Feather microcontroller's headers.
    • Solder the headers for a secure connection.
  2. Insert a microSD Card:

    • Use a FAT16/FAT32 formatted microSD card.
    • Insert the card into the microSD slot on the FeatherWing.
  3. Connect a CR1220 Battery (Optional):

    • Insert a CR1220 coin cell battery into the battery holder to enable RTC backup.
  4. Connect to Power:

    • Power the Feather board via USB or a LiPo battery. The FeatherWing will draw power from the Feather.
  5. Program the Feather Board:

    • Use the Adafruit RTC and SD libraries to interact with the RTC and microSD card.

Example Code for Arduino UNO-Compatible Feather Boards:

Below is an example sketch to log data with timestamps to the microSD card:

#include <Wire.h>
#include <Adafruit_Sensor.h>
#include <RTClib.h> // Library for the DS3231 RTC
#include <SD.h>     // Library for microSD card

RTC_DS3231 rtc; // Create an RTC object
const int chipSelect = 10; // SD card chip select pin

void setup() {
  Serial.begin(9600);
  while (!Serial); // Wait for Serial Monitor to open

  // Initialize RTC
  if (!rtc.begin()) {
    Serial.println("Couldn't find RTC");
    while (1);
  }

  // Check if RTC lost power and set the time if needed
  if (rtc.lostPower()) {
    Serial.println("RTC lost power, setting the time!");
    rtc.adjust(DateTime(F(__DATE__), F(__TIME__))); // Set to compile time
  }

  // Initialize SD card
  if (!SD.begin(chipSelect)) {
    Serial.println("SD card initialization failed!");
    while (1);
  }
  Serial.println("SD card initialized.");
}

void loop() {
  // Get current time from RTC
  DateTime now = rtc.now();

  // Open a file on the SD card
  File dataFile = SD.open("datalog.txt", FILE_WRITE);

  // If the file is available, write data to it
  if (dataFile) {
    dataFile.print("Timestamp: ");
    dataFile.print(now.year(), DEC);
    dataFile.print('/');
    dataFile.print(now.month(), DEC);
    dataFile.print('/');
    dataFile.print(now.day(), DEC);
    dataFile.print(" ");
    dataFile.print(now.hour(), DEC);
    dataFile.print(':');
    dataFile.print(now.minute(), DEC);
    dataFile.print(':');
    dataFile.println(now.second(), DEC);
    dataFile.close(); // Close the file
    Serial.println("Data logged.");
  } else {
    Serial.println("Error opening datalog.txt");
  }

  delay(1000); // Log data every second
}

Important Considerations and Best Practices:

  • Ensure the microSD card is properly formatted (FAT16 or FAT32).
  • Use a CR1220 coin cell battery to maintain RTC functionality during power loss.
  • Avoid removing the microSD card while the FeatherWing is powered to prevent data corruption.
  • Use proper pull-up resistors for I2C lines if not already included in your setup.

Troubleshooting and FAQs

Common Issues and Solutions:

  1. RTC Not Detected:

    • Ensure the FeatherWing is securely connected to the Feather board.
    • Verify the I2C connections (SCL and SDA).
    • Check if the CR1220 battery is installed correctly.
  2. SD Card Initialization Fails:

    • Confirm the microSD card is formatted as FAT16 or FAT32.
    • Check the chip select (CS) pin configuration in your code.
    • Ensure the microSD card is properly inserted into the slot.
  3. Data Logging Stops Unexpectedly:

    • Verify the microSD card has sufficient storage space.
    • Check for loose connections between the FeatherWing and Feather board.
  4. RTC Loses Time After Power Loss:

    • Install a CR1220 coin cell battery to maintain RTC functionality.

FAQs:

  • Can I use this FeatherWing with non-Adafruit Feather boards?

    • Yes, as long as the board supports 3.3V logic and has compatible I2C and SPI pins.
  • What is the maximum capacity of the microSD card supported?

    • The FeatherWing supports microSD cards up to 32GB formatted as FAT16 or FAT32.
  • Do I need to install additional libraries?

    • Yes, install the RTClib and SD libraries in the Arduino IDE for RTC and SD card functionality.
  • Can I use the RTC without a battery?

    • Yes, but the RTC will lose time when power is disconnected.

This documentation provides a comprehensive guide to using the Adafruit Adalogger FeatherWing for data logging and timekeeping applications.