Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

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

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

Introduction

The Adafruit Adalogger FeatherWing is a compact, easy-to-use data logging module designed for a wide range of applications. It is particularly useful for projects that require the logging of sensor data over time, such as environmental monitoring, weather stations, or tracking system performance. With its onboard real-time clock (RTC) and SD card slot, the Adalogger FeatherWing provides accurate timestamping and large storage capacity for your data.

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 Solar-Powered Environmental Data Logger with Adafruit Feather M0 Express: 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.

Open Project in Cirkit Designer
Image of Multi-Sensor Health Monitoring System with Adafruit Feather M0 Adalogger: 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.

Open Project in Cirkit Designer
Image of ESP32-Based Vibration Feedback System with Quad Alphanumeric Display and ADXL343 Accelerometer: 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.

Open Project in Cirkit Designer

Technical Specifications

Key Features

Electrical Characteristics

Pin Configuration

Pin Number Description
1 GND (Ground)
2 3V (3.3V power from Feather)
3 SCL (I2C clock)
4 SDA (I2C data)
5 #CS (Chip Select for SD)
6 SCK (SPI clock for SD)
7 MISO (SPI MISO for SD)
8 MOSI (SPI MOSI for SD)

Usage Instructions

Connecting to a Feather Board

  1. Align the headers of the Adalogger FeatherWing with the corresponding pins on your Feather board.
  2. Solder the headers to ensure a secure and reliable connection.
  3. Insert a formatted SD card into the SD card slot.
  4. If using the RTC, insert a CR1220 coin cell battery into the battery holder.

Programming for Data Logging

To use the Adalogger FeatherWing with an Arduino UNO, you will need to include the appropriate libraries for SD card and RTC functionality. Below is a sample code snippet that initializes both the SD card and RTC and writes a simple message with a timestamp to a file:

#include <SPI.h>
#include <SD.h>
#include <Wire.h>
#include <RTClib.h>

RTC_PCF8523 rtc; // Create an RTC object
File dataFile;

void setup() {
  Serial.begin(9600);
  
  // Initialize the RTC
  if (!rtc.begin()) {
    Serial.println("Couldn't find RTC");
    while (1);
  }
  
  // Initialize the SD card
  if (!SD.begin(5)) { // Chip Select pin for the SD card is 5
    Serial.println("Initialization failed!");
    return;
  }
  
  // Create or open the data file
  dataFile = SD.open("datalog.txt", FILE_WRITE);
  
  // Check if the file opened successfully
  if (!dataFile) {
    Serial.println("Error opening datalog.txt");
    return;
  }
  
  // Write a header for our data
  dataFile.println("Date,Time,Data");
}

void loop() {
  DateTime now = rtc.now(); // Get the current date and time
  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.print(now.second(), DEC);
  dataFile.print(',');
  
  // Replace this with actual sensor data
  dataFile.println("Sensor Data");
  
  dataFile.close(); // Close the file to save the data
  
  // Wait for 1 second before the next loop
  delay(1000);
}

Important Considerations and Best Practices

Troubleshooting and FAQs

Common Issues

FAQs

Q: Can I use the Adalogger FeatherWing with a 5V microcontroller? A: Yes, but you will need to use a level shifter to convert the 5V signals to 3.3V to avoid damaging the board.

Q: How do I set the time on the RTC? A: You can set the time on the RTC using the rtc.adjust(DateTime(__DATE__, __TIME__)); function in your setup code.

Q: What is the maximum size of SD card supported? A: The Adalogger FeatherWing supports SD cards up to 32GB formatted with the FAT32 file system.

For further assistance, consult the Adafruit forums or the detailed guides available on the Adafruit Learning System.