Motion: Wheeled Platform

Motion: Wheeled Platform #

view - Documentation

Zakhar moving platform equipped with an LED indication and an MPU module (GY-91).

The unit consists of:

  • ESP32 DevKit V1 - 36 pins
  • GY-91 - MPU module
  • HW-021 TJA1050 - CAN-bus driver
  • Red-Green LED module

Schematic #

schematic

Communication #

Bluetooth Serial

  • Device Name: Zakhar: Wheels
  • PIN: 1234

CAN bus

  • Protocol: qCAN 0.2.0, standard CAN frame
  • Address: 0x2

Serial

  • Speed: 115200 BPS

Commands #

Each command should consists of a single byte (DATA0 of the CAN frame) and an optional argument (DATA1).

ActionCommand CodeArgument 0
[CAN DATA0][CAN DATA1]
FORWARD0x77
BACKWARD0x73
LEFT0x61Angle: 0x0..FF
RIGHT0x64Angle: 0x0..FF
SHIVER0x71
STOP0x20, 0xA0
SPEED00x30
SPEED10x31
SPEED20x32
SPEED30x33
MPU_CALIBRATE0x63
SET_ARG_TO_300x23
TEST0x74

Commands can be sent through the Serial interface using keyboard keys

ActionKeyboard Key
FORWARDw
BACKWARDs
LEFTa
RIGHTd
SHIVERq
STOPSpace
SPEED00
SPEED11
SPEED22
SPEED33
MPU_CALIBRATEc
SET_ARG_TO_30#
TESTt