Maker.io main logo

MicroMod Machine Learning Carrier Board Hookup Guide

2020-11-24 | By SparkFun Electronics

License: See Original Project

Courtesy of SparkFun

Guide by NATE, ELL C

Introduction

The MicroMod Machine Learning Carrier Board combines some of the features of our SparkFun Edge Board and SparkFun Artemis boards, but allows you the freedom to explore with any processor in the MicroMod lineup without the need for a central computer or web connection. Voice recognition, always-on voice commands, gesture, or image recognition are possible with TensorFlow applications. An on-board accelerometer and Qwiic ports allow you even more flexibility.

Let's dive in, get a good look at what's available to us, and go over a few quick examples!

SparkFun MicroMod Machine Learning Carrier Board

 

Required Materials

In addition to your Machine Learning carrier board, you'll need a processor board to get started. Here we use the Artemis Processor Board, but there are a number of others you can choose from.

You'll also need a USB-C cable to connect the Carrier to your computer and if you want to add some Qwiic breakouts to your MicroMod project you'll want at least one Qwiic cable to connect it all together. Below are some options for both of those cables:

Along with a processor and the pertinent cables and accessories, if you want to take full advantage of the features of the Machine Learning Carrier Board, you will need a microSD card:

Suggested Reading

The SparkFun MicroMod ecosystem is a unique way to allow users to customize their project to their needs. Do you want to send your weather data via a wireless signal (e.g. Bluetooth or Wi-Fi)? There's a MicroMod processor for that. Looking to instead maximize efficiency and processing power? You guessed it, there's a MicroMod processor for that.

MicroMod_1

MicroMod Ecosystem

We also recommend taking a look through the following tutorials if you are not familiar with the concepts covered in them:

  • Getting Started with MicroMod: Dive into the world of MicroMod - a compact interface to connect a microcontroller to various peripherals via the M.2 Connector!
  • MicroMod Artemis Processor Board Hookup Guide: Get started with the Artemis MicroMod Processor Board in this tutorial!
  • Designing with MicroMod: This tutorial will walk you through the specs of the MicroMod processor and carrier board as well as the basics of incorporating the MicroMod form factor into your own PCB designs!

Hardware Overview

Common Components

Most SparkFun MicroMod Carriers will have some common components and all MicroMod Carriers will have the keyed M.2 MicroMod Connector to plug your processor into. The photo and list below outline some of the components you can expect on most SparkFun MicroMod Carriers.

  • M.2 MicroMod Connector - This special keyed M.2 connector lets you install your MicroMod Processor of choice on your Machine Learning Carrier Board.
  • USB-C Connector - Connect to your computer to program your Processor and also can provide power to your MicroMod system.
  • 3.3V Regulator - Provides a regulated 3.3V and sources up to 1A.
  • Qwiic Connector - The standard Qwiic connector so you can add other Qwiic devices to your MicroMod system.
  • Boot/Reset Buttons - Push buttons to enter Boot Mode on Processor boards and to Reset your MicroMod circuit.
  • microSD Slot - Insert a microSD card for reading and writing data.

machine_2

Machine Learning MicroMod Carrier Board Specific Components

Digital MEMS Microphones

What's better than ONE microphone? TWO!

  • Microphone 1 supports a PDM interface and is enabled by default. To disable this mic, cut the EN1 jumper. For more information on this microphone, refer to the datasheet here.
  • Microphone 2 supports an I2S interface and is disabled by default. To enable EN2, solder the jumper pads to close the circuit. For more information on this microphone, refer to the datasheet here.

microphone_3

GPIO

Along the sides of the Machine Learning Carrier Board, we've broken out dedicated PTHs for UART, digital, analog, pulse width modulation, and SPI. You may also notice that we've included a ground rail on the right side of the board.

GPIO_4

I2C Specific GPIO

Additionally, we've broken out the I2C SDA and SCL lines, with 3V3 and GND to complete your I2C functionality. These are primary I2C pins - they are connected to the Qwiic connector.

pins_5

Accelerometer

The LIS2DH12 is an ultra-low-power, high performance, three-axis linear accelerometer belonging to the “femto” family with digital I2C/SPI serial interface standard output. If you need more detail on this little guy, refer to the Datasheet here.

Accelerometer_6

Camera Connector

With this 24 pin connector, you can add image recognition to your machine learning board by popping in the Himax CMOS Imaging Camera.

connector_7

JTAG

An unpopulated JTAG footprint is available for more advanced users who need breakpoint level debugging. We recommend checking out our JTAG section for the compatible male header and a compatible JTAG programmer and debugger.

JTAG_8

RTC Battery

We've included a 3V Lithium Rechargeable Battery as a backup power source.

Battery_9

Jumpers

VE Jumper

jumper_10

VIN and 3V3 Jumpers

Cutting these jumpers will disable the VIN and 3V3 LEDs on the front of the board.

VIN_11

I2C Jumper

If you are daisy-chaining multiple Qwiic devices, you will want to cut this jumper; if multiple sensors are connected to the bus with the pull-up resistors enabled, the parallel equivalent resistance could create too strong of a pull-up for the bus to operate correctly. As a general rule of thumb, disable all but one pair of pull-up resistors if multiple devices are connected to the bus. To disable the pull up resistors, use an X-acto knife to cut the joint between the highlighted jumper pads.

pads_12

RESET PTH

Need an external reset button? These PTH allow you to tie in to the reset functionality.

button_13

Machine Learning MicroMod Carrier Pin Functionality

Note: You may not recognize the COPI/CIPO labels for SPI pins. SparkFun is working to move away from using MISO/MOSI to describe signals between the controller and the peripheral. Check out this page for more on our reasoning behind this change.

MACHINE LEARNING CARRIER PINOUT TABLE

signal2_15

MICROMOD GENERAL PINOUT TABLE

signal3_16

MICROMOD GENERAL PIN DESCRIPTIONS

signal4_17

signal5_18

signal6_19

signal7_20

Board Dimensions

The Machine learning Carrier Board measures 2.3 inches by 2.05 inches.

dimensions_21

Hardware Hookup

To get started with the Machine Learning Carrier Board, you'll need a compatible processor board. Here we are using the MicroMod Artemis Processor Board.

Align the top key of the MicroMod Artemis Processor Board to the screw terminal of the Machine Learning Carrier Board and angle the board into the socket. Insert the board at an angle into the M.2 connector.

Note: There is no way to insert the processor backward since the key prevents it from mating with the M.2 connector and as an extra safeguard to prevent inserting a processor that matches the key, the mounting screw is offset so you will not be able to secure an improperly connected processor board.

board_22

The Processor Board will stick up at an angle, as seen here:

socket_23

Once the board is in the socket, gently hold the MicroMod Processor Board down and tighten the screw with a Phillip's head.

Phillip_24

Once the board is secure, your assembled MicroMod system should look similar to the image below!

complete_25

Connecting Everything Up

With your processor inserted and secured it's time to connect your carrier board to your computer using the USB-C connector on the Carrier. Depending on which carrier you choose and which drivers you already have installed, you may need to install drivers.

Note: Make sure that for whatever processor board you choose, you have the correct board definitions installed.

For this particular tutorial, we are using the MicroMod Artemis Processor Board. Board definitions for this processor board can be found in the Software Setup and Programming section of the MicroMod Artemis Processor Board Hookup Guide.

If you are using a different processor board, go to our MicroMod Processor Boards landing page, find your processor board, and head on over to that tutorial for help installing your board definition.

Example 1: Blink

Note: This example assumes you are using the latest version of the Arduino IDE on your desktop. If this is your first time using Arduino, please review our tutorial on installing the Arduino IDE. If you have not previously installed an Arduino library, please check out our installation guide.

To get started uploading code and working with your Machine Learning Carrier Board, make sure you have the MicroMod Artemis board definition selected under your Tools > Board menu (or whatever processor you've chosen to use).

menu_26

Then select your serial port under the Tools > Port menu.

tools_27

Loading Blink

Let's start with something basic - let's blink an LED. Go to File->Examples->01.Basics->Blink.

LED_28

With everything setup correctly, upload the code! Once the code finishes transferring, you should see the STAT LED on the Artemis Processor Board begin to blink!

If the blue LED remains off, it's probably still sitting in the bootloader. After uploading a sketch, you may need to tap the reset button to get your MicroMod Artemis to run the sketch.

Look at all the blinks!

tap_29

Example 2: Accelerometer

Note: This example assumes you are using the latest version of the Arduino IDE on your desktop. If this is your first time using Arduino, please review our tutorial on installing the Arduino IDE. If you have not previously installed an Arduino library, please check out our installation guide.

SparkFun has written a library to work with the LIS2DH12 Accelerometer that's included on this board. You can obtain this library through the Arduino Library Manager by searching for "LIS2DH12". Find the one written by SparkFun Electronics and install the latest version. If you prefer downloading libraries manually, you can grab them from the GitHub Repository. We've linked the datasheet for the accelerometer in the Resources and Going Further section, but if you'd like it handy, you can also refer to it here.

SPARKFUN LIS2DH12 ARDUINO LIBRARY GITHUB

With your library installed, navigate to the examples located under File->Examples->SparkFun LIS2DH12 Arduino Library. Let's load up Example1_BasicReadings to get you started.

examples_30

Making sure you have the correct board and port selected, go ahead and upload your code. Once the code finishes transferring, open the serial monitor and set the baud rate to 115200. You should see x y and z locations flying by, telling you the directions the accelerometer is reading!

serial_31

Troubleshooting

Not working as expected and need help?

If you need technical assistance and more information on a product that is not working as you expected, we recommend heading on over to the SparkFun Technical Assistance page for some initial troubleshooting.

SPARKFUN TECHNICAL ASSISTANCE PAGE

If you don't find what you need there, the SparkFun Forums: MicroMod are a great place to find and ask for help. If this is your first visit, you'll need to create a Forum Account to search product forums and post questions.

SPARKFUN FORUMS: MICROMOD

Resources and Going Further

Want more information on the SparkFun Machine Learning Carrier Board? Check out these links!

MicroMod Documentation:

制造商零件编号 DEV-16829
MICROMOD DATA LOGGING CARRIER
SparkFun Electronics
¥175.01
Details
制造商零件编号 DEV-16400
MICROMOD MACHINE LEARN CARRIER
SparkFun Electronics
¥162.39
Details
制造商零件编号 DEV-16885
MICROMOD ATP CARRIER BOARD
SparkFun Electronics
¥162.39
Details
制造商零件编号 KIT-15081
QWIIC CABLE KIT
SparkFun Electronics
¥72.85
Details
制造商零件编号 CAB-15424
CBL USB2.0 A PLUG TO C PLG 6.56'
SparkFun Electronics
¥72.85
Details
Add all DigiKey Parts to Cart
TechForum

Have questions or comments? Continue the conversation on TechForum, DigiKey's online community and technical resource.

Visit TechForum