None Notebook

This notebook contains material from cbe61622; content is available on Github.

< 9.1 Communicating via TCP | Contents | 10.0 Projects >

Open in Colab

Download

9.2 Stepper Motor Control via I2C

9.2.1 Particle CLI

9.2.1.1 Installation

9.2.1.2 Utility functions

9.2.1.3 Login to Particle

9.2.1.4 Select a device

The following cell downloads a list of all user devices and creates a list of device names. Here we choose the first name in the list for the rest of this notebook. If this is not the device to be used, then modify this cell accordingly.

9.2.2 Project: Motor Control

9.2.2.1 Grove I2C Motor Driver V1.3

SeeedStudio Documentation

Github repository

Note the default address 0x0f.

It turns out this motor driver requires a 5 volt logic. The Particle Argon is capable of 3.3v only, thus not electrically compatible. This is confirmed by the absence of a code library supporting this motor driver on Particle Argon.

New motor drivers are on order.

9.2.3 Prototype

9.2.3.1 Create Project

9.2.3.2 Change working directory

The Particle CLI assumes one is working in the top project directory.

9.2.3.3 Add relevant libraries

9.2.3.4 Create source file

9.2.3.5 Compiling

9.2.3.6 Flash firmware

< 9.1 Communicating via TCP | Contents | 10.0 Projects >

Open in Colab

Download