Skip to content

Development Tools

Philippe Boulet edited this page Nov 7, 2019 · 28 revisions

Installation

PlatformIO is an open source ecosystem for IoT development. You need to install it as a plugin from a supported Integrated Development Environment (IDE). Next sections will describe how to install the PlatformIO plugin from Atom or Visual Studio Code. They are the most popular IDE and are both free to download and great for development. Chose the IDE you prefer.

Atom

  1. Get the Atom IDE from : https://atom.io/
  2. Go to the top menu and click Atom->Preferences->Install.
  3. Search and install package platformio-ide.
  4. Atom restart might be required before you can continue.
  5. Once installed you may have to install some additional packages that will be automatically suggested.
  6. Click on the PlatformIO Home button (little house icon).
  7. Click on Platforms Button.
  8. Install the Espressif 32 platform.

That's it! You have everything you need. Read the next sections below.

Visual Studio Code (Recommended)

  1. Get the Visual Studio Code IDE from : https://code.visualstudio.com/download
  2. Click on the Configuration icon on the bottom left.
  3. Click on Manage Extensions.
  4. Install the PlatformIO IDE extension.
  5. Once installed you may have to install some additional packages that will be automatically suggested.
  6. Click on the PlatformIO Home button (little house icon on the bottom toolbar).
  7. Click on Platforms Button.
  8. Install the Espressif 32 platform.

That's it! You have everything you need. Read the next sections below.


Clone or Download the Project

  1. Go to your development directory (Ex: dev, work, etc.)
  2. URL: https://github.com/introlab/OpenIMU-MiniLogger.git
  3. Use the master branch for stable code : git clone -b master https://github.com/introlab/OpenIMU-MiniLogger.git

Opening the Project

Using PlatformIO in your favorite IDE :

  1. Open the directory :OpenIMU-MiniLogger/Firmware-IDF directory.
  2. Build the project using the build button (checkmark icon)

First Time Upload (for new boards)

  1. Make sure the OpenIMU-Minilogger hardware is connected to your USB port.
  2. Click on Build to build the project.
  3. Put the device on.
    1. Click on Upload to upload the project to the board.
  4. Make sure the led is flashing and the home screen appears.
  5. Follow the Standard Build & Upload procedure.

Standard Build & Upload

  1. Make sure you have installed the FTDI driver (if required)
  2. Make sure the OpenIMU-Minilogger hardware is connected to your USB port.
  3. Click on the Build button.
  4. Click on the Upload button.
  5. Enjoy!

Serial Monitor Configuration

  1. Make sure RTS and DTR are off.
  2. Use 115200 baud rate. Terminal Command : -> pio device monitor --baud 115200 --dtr 0 --rts 0 (--port COM5)
Clone this wiki locally