mirror of
https://github.com/deadcxap/balancing-cube.git
synced 2026-01-08 19:41:53 +03:00
Organize esp32 <-> escon wiring
Remapped AO1 of M3 to an ADC1 pin. Removed all three unused AO2 DI3 wirings and relevant diodes and capacitors Corrected pins.h (Old version was not matching with old schematic btw) Updated Bom accordingly
This commit is contained in:
BIN
bom/bom.xlsx
BIN
bom/bom.xlsx
Binary file not shown.
File diff suppressed because one or more lines are too long
@@ -1,3 +0,0 @@
|
||||
The ESCON configuration files are identical except that the hall sensor analog output port is swapped for M3.
|
||||
This was done because ADC2 cannot be used reliably when WiFi is also active on the ESP32, supposedly.
|
||||
A future revision of the motherboard will connect analog out 1 of each motor controller to ADC1 to resolve this.
|
||||
File diff suppressed because it is too large
Load Diff
@@ -5,7 +5,7 @@
|
||||
"auto_track_width": true,
|
||||
"hidden_netclasses": [],
|
||||
"hidden_nets": [],
|
||||
"high_contrast_mode": 0,
|
||||
"high_contrast_mode": 2,
|
||||
"net_color_mode": 1,
|
||||
"opacity": {
|
||||
"images": 0.6,
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -6,9 +6,9 @@ Motor::Motor(int pin_enable, int pin_current) : pin_enable(pin_enable), pin_curr
|
||||
pinMode(pin_enable, OUTPUT);
|
||||
|
||||
// Map pin number to channel (these must be updated if mx_current in pins.h is changed...)
|
||||
if(pin_current == 14) {
|
||||
if(pin_current == 12) {
|
||||
channel = 0;
|
||||
} else if(pin_current == 16) {
|
||||
} else if(pin_current == 18) {
|
||||
channel = 1;
|
||||
} else {
|
||||
channel = 2;
|
||||
|
||||
@@ -2,17 +2,17 @@
|
||||
#define pins_h
|
||||
|
||||
// Motor controllers
|
||||
const int M1_ENABLE = 6;
|
||||
const int M1_CURRENT = 4;
|
||||
const int M2_ENABLE = 12;
|
||||
const int M2_CURRENT = 14;
|
||||
const int M3_ENABLE = 18;
|
||||
const int M3_CURRENT = 16;
|
||||
const int M1_ENABLE = 13;
|
||||
const int M1_CURRENT = 12;
|
||||
const int M2_ENABLE = 17;
|
||||
const int M2_CURRENT = 18;
|
||||
const int M3_ENABLE = 5;
|
||||
const int M3_CURRENT = 6;
|
||||
|
||||
// Motor speeds
|
||||
const int M1_SPEED = 7;
|
||||
const int M2_SPEED = 10;
|
||||
const int M3_SPEED = 9;
|
||||
const int M1_SPEED = 10;
|
||||
const int M2_SPEED = 9;
|
||||
const int M3_SPEED = 7;
|
||||
|
||||
// IMU
|
||||
const int IMU_SDA = 47;
|
||||
|
||||
Reference in New Issue
Block a user