Skip to content
/ bldc Public
forked from vedderb/bldc

The code for my custom BLDC controller.

Notifications You must be signed in to change notification settings

MIH-pi/bldc

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VESC CAN BUS Command

CAN characteristics

  • Baud rate : 500kbit/s
  • Signal update rate : 50Hz
  • Data frame : Extended frame format

CAN BUS CMD Reference

VESC6 CAN Commands Telemetry

Ex:Set Duty

ID : 0x00A (Extend frame format) First"0" :

CAN_PACKET_SET_DUTY = 0

Remaining 0A : VESC ID (App Settings ➡️ General), Let's set Mid-Drive controller to 10 (0xA)

Data Field

data

Mid-Drive VESC (ID : 10)

Mid-Drive Motor Speed CMD

CAN_PACKET_SET_RPM = 3

ID : 0x30A(Extend frame format) Scale : 1

Data field(RPM)

RPM

Brake Servo Position CMD(Requires custom firmware)

CAN_PACKET_SET_BRAKE_SERVO_POS = 46

ID : 0x2E0A(Extend frame format) Scale : 0.01 (From 0-100)

Data field(Brake Servo)

Servo

Steering VESC (ID : 12)

Steering Motor Speed CMD

CAN_PACKET_SET_RPM = 3

ID : 0x30C(Extend frame format) Scale : 1

Data field(Steering)

Steering

About

The code for my custom BLDC controller.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 94.9%
  • Assembly 3.0%
  • C++ 1.1%
  • Other 1.0%