Battery-Powered Gas Sensor and Servo Control with Adafruit Trinket M0
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Adafruit Trinket M0 microcontroller, a MiCS-5524 Gas Sensor, a 4xAA battery pack, a Tower Pro SG90 servo, an Adafruit Audio FX Mini Sound Board, and an Adafruit STEMMA Speaker. The circuit is designed to interface these components to perform specific functions, with all electrical connections and code (if any) documented.
Component List
Adafruit Trinket M0
- Description: A small microcontroller board based on the ATSAMD21E18 microcontroller.
- Pins: VBAT, GND, D4_A2_PA06_TXD_MOSI, D3_A3_PA07_RXD_SCK, !RESET, 3.3V, D2_A1_PA09_SCL_MISO, D1_A0_PA02, D0_A4_PA08_SDA, VBUS
Adafruit MiCS-5524 Gas Sensor
- Description: A gas sensor capable of detecting various gases.
- Pins: 5.0V, GND, AOUT, ENABLE
4xAA Battery Pack
- Description: A battery pack that holds four AA batteries to provide power.
- Pins: POS, NEG
Tower Pro SG90 Servo
- Description: A small servo motor used for precise control of angular position.
- Pins: Signal, +5V, GND
Adafruit Audio FX Mini Sound Board
- Description: A sound board capable of playing audio files stored on it.
- Pins: RST, VIN, GPIO0_0, GND, GPIO0_1, VBUS, GPIO0_2, TX, GPIO0_3, RX_5V, GPIO0_4, UG, GPIO0_5, CS, GPIO0_6, GPIO0_7, R_AC, ACT, L_AC
Adafruit STEMMA Speaker
- Description: A small speaker for audio output.
- Pins: GND, VDD, SIG
Wiring Details
Adafruit Trinket M0
- VBAT is connected to POS of the 4xAA Battery Pack.
- GND is connected to:
- GND of the Tower Pro SG90 Servo
- GND of the Adafruit Audio FX Mini Sound Board
- GND of the Adafruit MiCS-5524 Gas Sensor
- NEG of the 4xAA Battery Pack
- D4_A2_PA06_TXD_MOSI is connected to ENABLE of the Adafruit MiCS-5524 Gas Sensor.
- D3_A3_PA07_RXD_SCK is connected to AOUT of the Adafruit MiCS-5524 Gas Sensor.
- D0_A4_PA08_SDA is connected to Signal of the Tower Pro SG90 Servo.
- VBUS is connected to:
- +5V of the Tower Pro SG90 Servo
- VIN of the Adafruit Audio FX Mini Sound Board
- 5.0V of the Adafruit MiCS-5524 Gas Sensor
Adafruit MiCS-5524 Gas Sensor
- 5.0V is connected to VBUS of the Adafruit Trinket M0.
- GND is connected to GND of the Adafruit Trinket M0.
- AOUT is connected to D3_A3_PA07_RXD_SCK of the Adafruit Trinket M0.
- ENABLE is connected to D4_A2_PA06_TXD_MOSI of the Adafruit Trinket M0.
4xAA Battery Pack
- POS is connected to VBAT of the Adafruit Trinket M0.
- NEG is connected to GND of the Adafruit Trinket M0.
Tower Pro SG90 Servo
- Signal is connected to D0_A4_PA08_SDA of the Adafruit Trinket M0.
- +5V is connected to VBUS of the Adafruit Trinket M0.
- GND is connected to GND of the Adafruit Trinket M0.
Adafruit Audio FX Mini Sound Board
- VIN is connected to VBUS of the Adafruit Trinket M0.
- GND is connected to GND of the Adafruit Trinket M0.
- VBUS is connected to VDD of the Adafruit STEMMA Speaker.
- R_AC is connected to SIG of the Adafruit STEMMA Speaker.
Adafruit STEMMA Speaker
- VDD is connected to VBUS of the Adafruit Audio FX Mini Sound Board.
- GND is connected to GND of the Adafruit Audio FX Mini Sound Board.
- SIG is connected to R_AC of the Adafruit Audio FX Mini Sound Board.
Code
There is no code provided for the microcontrollers in this circuit.