This is a reference board designed in OpenSCAD for the Adafruit Feather M0 Logger.
The logger can be purchased directly from Adafruit (P/N: 2796).
The logger specification sheet can be downloaded from here
Overview and Background
Adafruit Feather M0 Logger (P/N: 2796)
- Pin GND - this is the common ground for all power and logic
- Pin BAT - this is the positive voltage to/from the JST jack for the optional Lipoly battery
- Pin USB - this is the positive voltage to/from the micro USB jack if connected
- Pin EN - this is the 3.3V regulator's enable pin. It's pulled up, so connect to ground to disable the 3.3V regulator
- Pin 3V - this is the output from the 3.3V regulator, it can supply 500mA peak
This is the general purpose I/O pin set for the microcontroller.
All logic is 3.3V. Nearly all pins can do PWM output. All pins can be interrupt inputs.
- Pin #0 / RX - GPIO #0, also receive (input) pin for Serial1 (hardware UART), also can be analog input
- Pin #1 / TX - GPIO #1, also transmit (output) pin for Serial1, also can be analog input
- Pin #20 / SDA - GPIO #20, also the I2C (Wire) data pin. There's no pull up on this pin by default so when using with I2C, you may need a 2.2K-10K pullup.
- Pin #21 / SCL - GPIO #21, also the I2C (Wire) clock pin. There's no pull up on this pin by default so when using with I2C, you may need a 2.2K-10K pullup.
- Pin #5 - GPIO #5
- Pin #6 - GPIO #6
- Pin #9 - GPIO #9, also analog input A7. This analog input is connected to a voltage divider for the lipoly battery so be aware that this pin naturally 'sits' at around 2VDC due to the resistor divider
- Pin #10 - GPIO #10
- Pin #11 - GPIO #11
- Pin #12 - GPIO #12
- Pin #13 - GPIO #13 and is connected to the red LED next to the USB jack
- Pin A0 - This pin is analog input A0 but is also an analog output due to having a DAC (digital-to-analog converter). You can set the raw voltage to anything from 0 to 3.3V, unlike PWM outputs this is a true analog output
- Pin A1 thru A5 - These are each analog input as well as digital I/O pins.
- Pin SCK/MOSI/MISO (GPIO 24/23/22)- These are the hardware SPI pins, you can use them as everyday GPIO pins (but recommend keeping them free as they are best used for hardware SPI connections for high speed.
Micro SD Card + Green LED
- Pin #4 - used as the MicroSD card CS (chip select) pin
- Pin #7 - used as the MicroSD card CD (card detect) pin. If you want to detect when a card is inserted/removed, configure this pin as an input with a pullup. When the pin reads low (0V) then there is no card inserted. When the pin reads high, then a card is in place. It will not tell you if the card is valid, its just a mechanical switch
- Pin #8 - This pin was also left over, so we tied it to a green LED, its next to the SD card. It might be handy to blink this LED when writing / reading valid data or some other user-alert!
- Pin RST - this is the Reset pin, tie to ground to manually reset the AVR, as well as launch the bootloader manually
- Pin ARef - the analog reference pin. Normally the reference voltage is the same as the chip logic voltage (3.3V) but if you need an alternative analog reference, connect it to this pin and select the external AREF in your firmware. Can't go higher than 3.3V!
- Pin SWCLK & SWDIO - These pads on the bottom are used to program the chip. They can also be connected to an SWD debugger.
Lesson Plan and Activity
You can select the pins presence and include the module in your OpenSCAD project with:
Show_Pins = 1;