Skip to content

totemmaker/totem-bsp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Totem Board Support Package

RoboBoard low-level drivers for ESP-IDF framework.

Check setup guide at: https://docs.totemmaker.net/setup/

Supported boards

Board name SoC Revision Features Photo
RoboBoard X3 ESP32 v.3.0
v.3.1
4 Motor, 4 Servo
3 IO, RGB, IMU, Qwiic
3.7V battery
RoboBoard X4 ESP32 v.1.0
v.1.1
4 Motor, 3 Servo
4 IO, RGB, IMU, Qwiic, CAN
11.1V battery

Supported ESP-IDF versions

  • ESP-IDF v4.4
  • ESP-IDF v5.0
  • ESP-IDF v5.1
  • ESP-IDF v5.2
  • ESP-IDF v5.3

How to use

Install Espressif toolchain: Getting started

  1. Create new ESP-IDF project or use command:
    idf.py create-project roboboard_project
  2. Inside project create manifest file main/idf_component.yml or use command:
    idf.py create-manifest
  3. Add roboboard_x3 or roboboard_x4 as dependency:
## IDF Component Manager Manifest File
dependencies:
  # Include roboboard_x3 or roboboard_x4
  roboboard_x4:
    path: roboboard_x4
    git: https://github.com/totemmaker/totem-bsp.git
  1. Include header into project roboboard_project.c file:
#include "bsp/totem-bsp.h"

void app_main(void)
{
    // Initialize board
    bsp_board_init();
    // Spin motor A at 100% power
    bsp_dc_spin(BSP_PORT_A, 100);
    // Spin servo A to 500us pulse
    bsp_servo_spin(BSP_PORT_A, 500);
    // RoboBoard X4 LED on
    // bsp_board_set_led(1);
    // bsp_rgb_color(BSP_PORT_ALL, 0xFF00FF00);
}
  1. Build project:
    idf.py build

Documentation

Information for function usage and board features:

Example code located in examples.

Contacts

To report issue, ask for feature or general discussion:

About

Board support components for Totem products, using ESP-IDF

Resources

License

Stars

Watchers

Forks

Contributors