MicroMod is a compact interface to connect a microcontroller to various peripherals. You can generally think of the MicroMod system as a ‘brain’ plugging into a ‘carrier board’.
A MicroMod processor board is approximately 22x22mm and can insert into any MicroMod carrier board. A small screw holds the processor board in place. Whereas the original M.2 standard was designed for swapping out peripherals (user could change one solid state hard drive to a larger one) the MicroMod standard is designed for swapping out controllers (user can start with a powerful processor and then change to a low power controller to extend battery life).
Suggested ReadingIf you aren't familiar with the MicroMod ecosystem, we recommend reading here for an overview.
If you aren’t familiar with the following concepts, we recommend checking out these tutorials before continuing.
Logic LevelsLearn the difference between 3.3V and 5V devices and logic levels.
I2CAn introduction to I2C, one of the main embedded communications protocols in use today.
How Does It Work?The MicroMod standard leverages the M.2 connector and specification to increase the availability of parts and reduce the cost of the connector. All MicroMod ‘brains’ share a common pinout. For example, the I2C pins for the MicroMod ESP32 are in the same position as the I2C pins on the MicroMod Artemis.
A variety of MicroMod carrier boards give the user access to different technologies. Because the MicroMod connector is standardized, the controller can be easily and quickly swapped out as processing power, power consumption, and wireless connectivity. For example, a user may start with the MicroMod Artemis and a RFID carrier board. They then might decide they need WiFi for their project. Swapping to the MicroMod ESP32 allows the user to instantly add WiFi capabilities without changing the underlying hardware.
The MicroMod interface is defined as follows:
Hardware Overview What Connector and Key Does MicroMod Use?MicroMod uses the common M.2 connector. This is the same connector found on modern motherboards and laptops. We recommend the connector with 4.2mm height.
TE makes the 2199230-4 that is widely available and for reasonable cost (1k budgetary pricing is $0.56). You can also order the MicroMod DIY Carrier Kit that includes 5 of the connector, screw, and reflow-able standoff.
There are various locations for the plastic ‘key’ on the M.2 connector to prevent a user from inserting an incompatible device. The MicroMod standard uses the ‘E’ key but diverges from the M.2 standard by moving the mounting screw 4mm to the side. The ‘E’ key is fairly common so a user could insert a M.2 compatible Wifi module but because the screw mount doesn’t align, the user would not be able to secure an incompatible device into a MicroMod carrier board.
What is a Processor Board?Each processor board follows the M.2 standard of '2222' or 22x22mm overall size.
Each processor board is approximately 22x22mm and has a microcontroller or processor on it. The pins on the processor are brought to the card edge to match the MicroMod pinout specification.
Every processor board is expected to need only USB D+/- to be programmed. This means that a processor that does not have built-in USB Support must have it added. For example: the Artemis Processor board has the CH340E added to provide serial programming support.
Every processor board is expected to have one on-board status LED that is not routed to the board edge.
Note: The MicroMod spec moves the screw position from the board's center line to 4mm right-of-center. This is meant to prevent incorrect mixing of a growing number of devices that use the M.2 connector (such as WiFi cards, SSDs, cellular modems, etc) and MicroMod devices. While a user could insert a WiFi card into a SparkFun data logging carrier board the screw holes would not line up making it obvious the devices don't work together.
The MicroMod spec may incorporate larger sizes in the future, and users are welcome to create their own processor boards, but note that the standoff hole on most carrier boards will be located to fit the 2222 MicroMod key.
What is the MicroMod Pinout?The MicroMod interface is defined as follows:
Note:Below is a graphical datasheet for the MicroMod processor board's general pinout. The pins on the card edge from the processor board interface with the carrier board's M.2 connector pins.
Click on the image for a closer view of the graphical datasheet.
Note that the M.2 connector pins on opposing sides are offset from each other as indicated by the bottom pins. It's not as apparent in the table further below since it is not offset. As a result, one row for the bottom pins are "Not Connected".
Below is the general MicroMod interface pinout for v1.0 processor and carrier boards.
Not all of the pins are guaranteed to be connected when using the MicroMod form factor. Please see the documentation specific to your processor board for more information.
AUDIO UART GPIO/BUS I2C SDIO SPI Dedicated Function BottomEach pin on the M.2 connector is specified to have a given function. There are additional rules to the MicroMod specification to ensure cross platform compatibility. At the extreme case, a maximum of 49x GPIOs are supported. In general, MicroMod focuses on interface types and locations. For example, if a carrier board requires PWM capabilities then the carrier board should leverage pins 32 (aka PWM0) and 47 (aka PWM1) as these are most likely to support PWM.
Supported Interfaces:
12x GPIOs may not sound like much but once all the other interfaces have been connected (UART, SPI, I2C, PWM, ADC) 12x GPIOs should cover most remaining applications.
Hardware HookupBelow are the steps to connect your MicroMod boards together!
Connecting a Processor to a Carrier BoardTo get started with MicroMod, you'll need a processor board as well as a carrier board. Here we are using the Artemis MicroMod Processor Board with the Machine Learning Carrier 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.
The Processor Board will stick up at an angle (at around 25°), as seen here:
Once the board in the socket, gently hold the MicroMod Processor Board down and tighten the screw with a Phillip's head. We recommend the classic SparkFun reversible mini-screw driver, MicroMod Screwdriver, or the fancier pocket screw driver set but any #00, #0, or #1 Phillip's head driver will work.
Once the board is secure, your assembled MicroMod system should look similar to the image below!
Note:If you've never connected an CH340 device to your computer before, you may need to install drivers for the USB-to-serial converter. Check out our section on
How to Install CH340 Drivers"for help with the installation.
Connecting a Function Board to a Main BoardFor those going the modular route with a Main Board, you will need a Processor and Function Board. The steps are similar to connecting a processor to a regular carrier board as explained above. Insert a Processor Board into the M.2 connector labeled as "Processor" at an angle of around 25°. Then secure the board using a Phillip's Head. Again, we recommend the classic SparkFun reversible mini-screw driver or the fancier pocket screw driver set but any #00, #0, or #1 Phillip's head driver will work.
Then insert the Function Board at an angle (at around 25°) to the M.2 Connector labeled as "Function Zero" just like a Processor Board.
Once the board is in the socket, gently push down the MicroMod Function Board against the Main Board. Hold the Function board against the M.2 connector in place with your index finger and thumb. Then tighten one screw with a Phillip's head just enough to hold it in place. You'll want to avoid tightening the screw fully.
While still holding the Function Board in place, tighten the second screw on the other side to hold it in place. Go back and tighten both screws fully to ensure that the board is evenly held down.
Once the boards are secure, your assembled MicroMod system should look similar to the image below!
If you have a MicroMod Main Board - Double, the steps are the same as the Main Board - Single. The steps are similar to connecting a Processor and Function Board as explained above. Insert both Function Boards at an angle of around 25°.
Note: The tolerance is tight with both PCBs next together and you may have the Function Boards pushing up against each other when they are in the socket. You may need to use sand paper or file down the edges from the panelization of the PCBs so that the boards are flush.
Gently push down one of the Function Boards against the Main Board - Double. Hold the Function Board against the M.2 connector in place with your index finger and thumb. Then tighten one of the screws (avoid the middle screw between the two Function Boards) with a Phillip's head just enough to hold it in place. You'll want to avoid tightening the screw fully.
Gently push down the other Function Board against the Main Board - Double. Hold the Function Board in place while ensuring both boards are flush. Then tighten one of the screws (avoid the middle screw between the two Function Boards) with a Phillip's head just enough to hold it in place. You'll want to avoid tightening the screw fully
Tighten the middle screw while holding both Function Boards down. Go back and tighten all three screws fully to ensure that the boards is evenly held down.
Once the boards are secure, your assembled MicroMod system should look similar to the image below!
Note:Misplaced a MicroMod screw? Have no fear! You can order replacement screws in packs of 5.
Designing with MicroMod Can I Make My Own MicroMod Processor Board?Absolutely. SparkFun is an open source hardware company and is not patenting this interface. All we ask is that you don’t fork the spec, follow the rules, and try not to muddy the community by introducing competing or partially compatible similar interfaces.
We recommend starting from one of our open source processor board designs. Currently all these files are EAGLE PCB format. If you have a different PCB package and you'd like to add your design to the list as a reference design please let us know!
Additionally, we've written Designing with MicroMod that goes into depth about how to create a good processor and carrier board.
Can I Make My Own MicroMod Carrier Board?Absolutely! This where things get really exciting. We’ve got a variety of resources including a connector footprint and symbol for Eagle PCB. We had multiple carrier boards already designed and open source so you can use them as a reference design and starting point. We can’t wait to see what you make.
We recommend starting from one of our open source carrier board designs. Currently all these files are EAGLE PCB format. If you have a different PCB package and you'd like to add your design to the list as a reference design please let us know!
Additionally, we've written Designing with MicroMod that goes into depth about how to create a good processor and carrier board.
When designing your own carrier board keep these rules of thumb in mind:
To help get you started with your own custom carrier board we've put together the MicroMod DIY Carrier Kit that includes 5 of the connector, screw, and standoff so that you can get all the ‘special’ parts you may need to make your own carrier board.
The M.2 connector has a 0.5mm pitch and alignment pegs. Hand stenciling and reflow-at-home is possible but we recommend using a stainless steel stencil (do not use mylar) and a higher quality reflow oven (sorry hot plate!) to help prevent jumpers.
Tell Me about Heat Sinking!One of the benefits to the M.2 standard is the ability to put components under the module. Using this we can now add heatsinks to our microcontrollers!
For this reason we recommend the connector with 4.2mm height. TE makes the 2199230-4 that is widely available and for reasonable cost (1k budgetary pricing is $0.56).
What if I Need A LOT of GPIO?There are applications where a user will need more than 12 GPIO. The MicroMod specification is flexible. If you would like to design a MicroMod that has only a few peripherals connected (for example, just UART and I2C) and leaving the rest for GPIO (45 available for GPIO in this example) that’s fine. Your carrier board would utilize the UART and I2C pins in the normal location and GPIOs in non-standard locations. This would prevent other MicroMods from being absolutely compatible (perhaps one or two of the MicroMod Artemis would not be able to drive your carrier board’s relays) but it’s allowed. You, the designer, just need to think about the tradeoffs.
We’ve written a guide for creating a MicroMod Processor Board but here are the guiding principles:
For more information, check out the Designing with MicroMod tutorial.
Designing with MicroModOctober 21, 2020
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!
Resources and Going FurtherValuable MicroMod documents:
Now that you are familiar with the basics of the MicroMod, check out some of related following tutorials with MicroMod!
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4