Skip to content

Commit 4c144e4

Browse files
committed
Updated BOM
1 parent 9f38d0e commit 4c144e4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

board/BOM.xlsx

10 Bytes
Binary file not shown.

code/easycontroller.c

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,10 @@ const bool IDENTIFY_HALLS_ON_BOOT = true; // If true, controller will initiali
1414
const bool IDENTIFY_HALLS_REVERSE = false; // If true, will initialize the hall table to spin the motor backwards
1515

1616
uint8_t hallToMotor[8] = {255, 255, 255, 255, 255, 255, 255, 255}; // Default hall table. Overwrite this with the output of the hall auto-identification
17+
// uint8_t hallToMotor[8] = {255, 2, 0, 1, 4, 3, 5, 255}; // Example hall table
1718

18-
const int THROTTLE_LOW = 600; // ADC value corresponding to minimum throttle, 0-4095
19-
const int THROTTLE_HIGH = 2650; // ADC value corresponding to maximum throttle, 0-4095
19+
const int THROTTLE_LOW = 600; // ADC value corresponding to minimum throttle, 0-4095
20+
const int THROTTLE_HIGH = 2650; // ADC value corresponding to maximum throttle, 0-4095
2021

2122
const bool CURRENT_CONTROL = true; // Use current control or duty cycle control
2223
const int PHASE_MAX_CURRENT_MA = 6000; // If using current control, the maximum phase current allowed
@@ -43,7 +44,7 @@ const uint A_PWM_SLICE = 0;
4344
const uint B_PWM_SLICE = 1;
4445
const uint C_PWM_SLICE = 2;
4546

46-
const uint F_PWM = 16000;
47+
const uint F_PWM = 16000; // Desired PWM frequency
4748
const uint FLAG_PIN = 2;
4849
const uint HALL_OVERSAMPLE = 8;
4950

0 commit comments

Comments
 (0)