Arduino Dock 2

The Arduino Dock 2 is our supercharged version of an Arduino Uno R3 board. These two boards share the same microcontroller, the ATmel ATmega328P microcontroller (MCU), and have identical pin layouts. This allows you to use any Arduino shields that you’ve used with the Arduino Uno R3 with the Arduino Dock and the Omega.

arduino dock alone

The Omega can program the microcontroller while connected to the board. This means you can wirelessly connect to the Omega, and then program the MCU for a wireless Arduino experience!

The Hardware

The Arduino Dock includes an In-Circuit Serial Programming (ICSP) header to break out the SPI pins which can be used to program the Arduino Dock’s microcontroller with an external programmer. Additionally, there is a USB-host port that is connected to the Omega which can be used for any sort of USB type application.

illustration

You can power the dock using a microUSB connection, or using the DC Barrel jack.

Connecting an Omega

To connect an Omega to the Arduino Dock, line up the Omega’s edges with the purple lines on the Arduino Dock’s as demonstrated below:

arduino dock plugged in

Make sure your Omega is pushed all the way down as demonstrated in the picture below:

arduino dock side view

You may need to line up the pins with the holes before pressing the Omega into the Dock.

The Expansion Header

The Expansion Header is a convenient tool that gives you easy access to the Omega’s GPIOs, and allows you to connect Onion Expansions directly. The Expansion Header is labelled to show you what GPIO is connected to each header.

It follows the same layout as the Expansion Header found on the Expansion Dock and Power Dock.

Note:If you own an Omega2 or Omega2+ and intend to use the PWM expansion with a DC power supply, please take note there is likely to be a short circuit between the barrel jack and the metal case of the Omega itself. We recommend inserting a thin plastic sheet between the expansion and the omega to break this short. For more information, see the PWM Expansion article.

The pinout diagram below shows the Expansion Header’s connections and the possible multiplexing options:

expansion header pinout

By default, the Serial, SPI, and I2C pins implement these communication protocols and cannot be used as GPIOs. Similarly, the I2S and PWM pins are set to GPIO mode by default.

To learn more on changing the functionality of the Omega’s pins, see the Multiplexing GPIOs section of our article on the Omega’s GPIOs.

The ATmega Headers

The ATmega headers are a breakout of the ATmega’s pins. They are arranged and spaced in the exact same way as an Arduino Uno R3, so all your Arduino Shields are compatible. These pins are also labelled for your convenience.

Note: Remember that the ATmega runs on 5V, and therefore it reads 5V as logical high.

arduino dock atmega headers

The MicroUSB Port

The MicroUSB Port is used to supply power to the Arduino Dock, which in turn supplies power to the Omega and the ATmega328P chip.

The MicroUSB Port receives 5V power and uses it directly to power the ATmega328P chip. The Dock comes equipped with a voltage regulator to step the voltage down to the required 3.3V for the Omega.

No-USB-to-Serial

There is no USB-to-Serial Chip on the Dock. This means that you will not be able to connect to the Omega serially over the Micro-USB port.

You can still connect to your Omega’s terminal with SSH, you can learn how to do that in this guide to connecting to the Omega.

DC Barrel Jack

The DC barrel jack may also be used to provide power to the Omega using a DC power adapter.

Note that the Arduino Dock’s DC barrel jack should only be used with 5V DC power supplies. If a higher voltage is used, your Omega and Arduino Dock have a high chance of being damaged!

Reset button

The Reset Button on the Dock is connected directly to the Omega’s Reset GPIO. Pressing this button do one of two things: reboot, or factory restore.

Reboot

Momentarily pressing the reset button and letting go will initiate a reboot of the Omega OS.

Factory Restore

Pressing and holding the reset button for 10 seconds then releasing will trigger a factory restore.

Warning: This will reset your Omega to the default filesystem of the last firmware update, this will delete ALL of your data!

Micro-Controller Reset Button

In addition to the Omega’s reset button, the Arduino Dock 2 comes with a microcontroller reset button. This button can be used to reset the ATmega chip whenever you’d like. This will NOT reset the Omega.

Omega USB Port

The Omega’s USB Port can be used to connect to all sorts of devices, namely a USB storage device to extend the storage space of your Omega. The USB port supports USB 2.0, and is a type A connector.

Omega to ATmega MCU Connections

The Arduino Dock is outfitted with a 3.3V to 5V Logic Level converter in order for the Omega to successfully communicate with the ATmega chip.

The table below shows the connections between the Omega’s pins and the ATmega’s pins:

Omega Pin ATmega Pin
UART1 Serial Pins
I2C I2C
GPIO 15 SPI SCK
GPIO 16 SPI MOSI
GPIO 17 SPI MISO
GPIO 19 Reset

The purposes of these connections are covered in the subsections below.

UART Connection

The UART connection is used to provide two-way communication between the Omega and the ATmega MCU.

I2C

The I2C connection provides I2C connectivity between the Omega and the ATmega. In most cases, the Omega is set up as the master, and the ATmega as the slave.

This is useful when using 5V I2C devices. Plug them into the ATmega’s I2C pins and the Omega will be able to read them.

SPI and Reset Connection

The four SPI connections are used to upload the ATmega with sketches using your Omega.

The reset connection is used to reset the ATmega chip. This can be done using the reset button, or using the Omega’s GPIO 19.

Mechanical Drawings

We’ve made available a detailed diagram of the dimensions and geometry of the Arduino Dock 2.

Using the Dock

The Arduino Dock 2 is loaded with features that allow you to use your Omega with the ATmega chip with ease. You can program or reset the micro-controller using the Omega’s GPIOs, and even connect to the ATmega’s serial port using the Omega’s UART.

More articles coming soon!

Programming the Arduino Micro-Controller

Follow the steps in our Flashing the Microcontroller to learn how to upload sketches (programs) to the Arduino micro-controller onboard the Arduino Dock.