Skip to content

Commit ffdc4b1

Browse files
committed
dead zone as5600 register fix - set to 0x0C
1 parent e3c91e1 commit ffdc4b1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

examples/hardware_specific_examples/Bluepill_examples/magnetic_sensor/bluepill_position_control/bluepill_position_control.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ MagneticSensorSPI sensor = MagneticSensorSPI(PA4, 14, 0x3FFF);
1717
// make sure to use the pull-ups!!
1818
// SDA PB7
1919
// SCL PB6
20-
//MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0x0E, 4);
20+
//MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0X0C, 4);
2121

2222
// Motor instance
2323
BLDCMotor motor = BLDCMotor(11);

examples/utils/calibration/alignment_and_cogging_test/alignment_and_cogging_test.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ BLDCMotor motor = BLDCMotor(11);
55
BLDCDriver3PWM driver = BLDCDriver3PWM(9, 10, 11, 8);
66
//StepperMotor motor = StepperMotor(50);
77
//StepperDriver4PWM driver = StepperDriver4PWM(9, 5, 10, 6, 8);
8-
MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0x0E, 4);
8+
MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0X0C, 4);
99

1010

1111
/**

examples/utils/calibration/find_pole_pair_number/magnetic_sensor/find_pole_pairs_number/find_pole_pairs_number.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ BLDCDriver3PWM driver = BLDCDriver3PWM(9, 5, 6, 8);
2727
// magnetic sensor instance - SPI
2828
MagneticSensorSPI sensor = MagneticSensorSPI(10, 14, 0x3FFF);
2929
// magnetic sensor instance - I2C
30-
//MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0x0E, 4);
30+
//MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0X0C, 4);
3131
// magnetic sensor instance - analog output
3232
// MagneticSensorAnalog sensor = MagneticSensorAnalog(A1, 14, 1020);
3333

examples/utils/calibration/find_sensor_offset_and_direction/find_sensor_offset_and_direction.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
// magnetic sensor instance - SPI
1616
//MagneticSensorSPI sensor = MagneticSensorSPI(10, 14, 0x3FFF);
1717
// magnetic sensor instance - I2C
18-
//MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0x0E, 4);
18+
//MagneticSensorI2C sensor = MagneticSensorI2C(0x36, 12, 0X0C, 4);
1919
// magnetic sensor instance - analog output
2020
MagneticSensorAnalog sensor = MagneticSensorAnalog(A1, 14, 1020);
2121

src/sensors/MagneticSensorI2C.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
MagneticSensorI2CConfig_s AS5600_I2C = {
55
.chip_address = 0x36,
66
.bit_resolution = 12,
7-
.angle_register = 0x0E,
7+
.angle_register = 0x0C,
88
.data_start_bit = 11
99
};
1010

0 commit comments

Comments
 (0)