Skip to main content
Ctrl+K

espp

  • Getting Started
  • API Reference
  • Dev Boards (BSPs)
  • Web Apps
  • Running espp in QEMU
  • GitHub
  • Discord
  • Getting Started
  • API Reference
  • Dev Boards (BSPs)
  • Web Apps
  • Running espp in QEMU
  • GitHub
  • Discord

Section Navigation

  • Espressif Boards
    • ESP BOX
      • ESP-BOX Example
    • ESP32-Ethernet-Kit A V1.2
      • ESP32-Ethernet-Kit Example
    • ESP32-P4 Function EV Board
      • ESP32-P4 Function EV Board Example
    • ESP32 TimerCam
      • ESP32-TIMER-CAM Example
    • ESP32-WROVER-KIT
      • Wrover-Kit Example
  • Adafruit Boards
    • QtPy ESP32 Pico and QtPy ESP32-S3
      • QtPy Example
  • LilyGo Boards
    • LilyGo T5 4.7” e-paper
      • LilyGo T5 4.7” e-paper Example
    • LilyGo T-Deck
      • T-Deck Example
    • LilyGo T-Dongle S3
      • T-Dongle-S3 Example
  • M5Stack Boards
    • M5Stack Cardputer
      • M5Stack Cardputer Example
    • M5Stack Tab5
      • M5Stack Tab5 BSP Example
  • MotorGo Boards
    • MotorGo Axis
      • MotorGo Axis Example
    • MotorGo Mini
      • MotorGo-Mini Example
    • MotorGo Plink
      • MotorGo Plink Example
  • Seeed Studio Boards
    • Seeed Studio Round Display
      • Seeed Studio Round Display Example
    • XIAO ESP32S3 Sense
      • XIAO ESP32S3 Sense Example
  • Waveshare Boards
    • Waveshare ESP32-P4-ETH
      • ESP32-P4-ETH Example
    • Waveshare ESP32-P4-Module-DEV-KIT
      • ESP32-P4-Module-DEV-KIT Example
    • Waveshare ESP32-P4-NANO
      • ESP32-P4-NANO Example
    • Waveshare ESP32-P4-WIFI6-DEV-KIT
      • ESP32-P4-WIFI6-DEV-KIT Example
    • Waveshare ESP32-P4-WIFI6-POE-ETH
      • ESP32-P4-WIFI6-POE-ETH Example
    • Waveshare ESP32-S3 GEEK
      • Waveshare ESP32-S3-GEEK Example
    • Waveshare ESP32-S3 LCD 1.47”
      • Waveshare ESP32-S3-LCD-1.47 Example
    • Waveshare ESP32-S3 TouchLCD
      • Waveshare ESP32-S3 TouchLCD Example
  • Other Boards
    • ALXV Labs Byte90
      • Byte90 Example
    • QEMU (emulator)
      • QEMU Example
    • MaTouch Rotary Display
      • Matouch-Rotary-Display Example
    • Smart Panlee SC01 Plus
      • Smart Panlee SC01 Plus BSP Example
  • Dev Boards (BSPs)
  • MotorGo Boards
  • MotorGo Plink
  • MotorGo Plink Example

MotorGo Plink Example#

This example demonstrates how to use the espp::MotorGoPlink component to initialize the hardware on the MotorGo Plink board.

By default the example is intentionally safe:

  • it logs the documented motor, encoder, servo, I2C, and LED pin mappings

  • it starts the user and status LEDs breathing out of phase

  • it leaves the motor PWM outputs disabled unless the motor sweep demo is enabled

Optional menuconfig flags let you also:

  • initialize and poll the four encoder inputs

  • run a stronger sinusoidal motor sweep across the four channels, with a zero crossing window and an active command range chosen to push past typical motor deadband

The indicator LEDs continue pulsing while the motor sweep is active because the motor outputs use MCPWM instead of LEDC.

How to use example#

Hardware Required#

This example is designed for the MotorGo Plink board.

The default configuration does not require motors or encoders to be connected. If you enable the motor-sweep or encoder-polling options, connect the matching hardware first.

Configuration#

Open the example configuration menu if you want to enable the optional hardware exercise modes:

idf.py menuconfig

Then open MotorGo Plink Example Configuration and enable any of:

  • Enable encoder polling

  • Enable motor sweep demo

Build and Flash#

Build the project and flash it to the board, then run monitor tool to view serial output:

idf.py -p PORT flash monitor

(Replace PORT with the name of the serial port to use.)

(To exit the serial monitor, type Ctrl-].)

previous

MotorGo Plink

next

Seeed Studio Boards

On this page
  • How to use example
    • Hardware Required
    • Configuration
    • Build and Flash
Edit on GitHub

© Copyright 2022 - 2026, William Emfinger.

Created using Sphinx 7.1.2.

Built with the PyData Sphinx Theme 0.17.1.