diy机器油门不受控自动上升,求大佬帮忙
本帖最后由 darcy 于 2023-4-25 21:15 编辑如下gif所示,我摘掉了电机供电,保留了信号线和接地,只演示了异常状态。
bf diff all配置如下。只要轻轻拨动油门,就会不断的自动增长
硬件:主板stm32F411cue,固件版本4.2.10(4.4不工作),遥控tx12,sbus mini R1V2接收机,使用ULN2003反转sbus信号,3.3v反转供电,主供电minni360 12v-5v dc-dc,3s锂电,6050加速度传感器
加速正常,手动(非遥控)控制油门正常,接收机正常
实在是想不出原因,求大佬解救,谢谢了!!!
# resources
resource BEEPER 1 A14
resource MOTOR 1 B07
resource MOTOR 2 B06
resource MOTOR 3 B05
resource MOTOR 4 B04
resource MOTOR 5 B03
resource MOTOR 6 A15
resource LED_STRIP 1 A00
resource SERIAL_TX 1 A11
resource SERIAL_RX 1 A10
resource I2C_SCL 1 B08
resource I2C_SDA 1 B09
resource LED 1 C13
resource SPI_SCK 1 A05
resource SPI_SCK 2 B13
resource SPI_MISO 1 A06
resource SPI_MISO 2 B14
resource SPI_MOSI 1 A07
resource SPI_MOSI 2 B15
resource ADC_BATT 1 B00
resource SDCARD_CS 1 B12
resource PINIO 1 C14
resource PINIO 2 C15
resource GYRO_EXTI 1 B10
resource GYRO_CS 1 A04
# timer
timer B04 AF2
# pin B04: TIM3 CH1 (AF2)
timer B05 AF2
# pin B05: TIM3 CH2 (AF2)
timer B06 AF2
# pin B06: TIM4 CH1 (AF2)
timer B07 AF2
# pin B07: TIM4 CH2 (AF2)
timer B03 AF1
# pin B03: TIM2 CH2 (AF1)
timer A15 AF1
# pin A15: TIM2 CH1 (AF1)
timer A00 AF1
# pin A00: TIM2 CH1 (AF1)
timer A08 AF1
# pin A08: TIM1 CH1 (AF1)
timer B01 AF1
# pin B01: TIM1 CH3N (AF1)
# dma
dma ADC 1 1
# ADC 1: DMA2 Stream 4 Channel 0
dma pin B04 0
# pin B04: DMA1 Stream 4 Channel 5
dma pin B05 0
# pin B05: DMA1 Stream 5 Channel 5
dma pin B06 0
# pin B06: DMA1 Stream 0 Channel 2
dma pin B07 0
# pin B07: DMA1 Stream 3 Channel 2
dma pin B03 0
# pin B03: DMA1 Stream 6 Channel 3
dma pin A15 0
# pin A15: DMA1 Stream 5 Channel 3
dma pin A00 0
# pin A00: DMA1 Stream 5 Channel 3
dma pin A08 0
# pin A08: DMA2 Stream 6 Channel 0
dma pin B01 0
# pin B01: DMA2 Stream 6 Channel 0
# feature
feature -RX_PARALLEL_PWM
feature -DYNAMIC_FILTER
feature RX_SERIAL
feature LED_STRIP
# serial
serial 0 64 115200 57600 0 115200
# led
led 0 13,3::C:0
led 1 14,3::C:0
led 2 15,3::C:0
# aux
aux 0 0 0 1800 2100 0 0
aux 1 1 1 900 1200 0 0
aux 2 2 1 1300 1700 0 0
aux 3 6 1 1875 2100 0 0
aux 4 13 3 1800 2100 0 0
# master
set acc_calibration = -195,36,-135,1
set mag_bustype = I2C
set mag_i2c_device = 1
set baro_bustype = I2C
set baro_i2c_device = 1
set serialrx_provider = SBUS
set blackbox_device = SDCARD
set min_throttle = 975
set max_throttle = 1300
set min_command = 975
set dshot_burst = AUTO
set use_unsynced_pwm = OFF
set motor_pwm_protocol = PWM
set motor_pwm_rate = 450
set current_meter = NONE
set beeper_inversion = ON
set beeper_od = OFF
set yaw_motors_reversed = ON
set pid_process_denom = 16
set sdcard_mode = SPI
set sdcard_spi_bus = 2
set pinio_box = 40,41,0,0
set gyro_1_bustype = I2C
set gyro_1_spibus = 1
set gyro_1_i2cBus = 1
set gyro_2_bustype = GYROAUTO
set gyro_2_i2cBus = 1
ackcolor=rgba(0, 0, 0, 0.75)]save
另外所有需要接地的地方我都接地了,没浮空,想不明白。。。5555555555555 darcy 发表于 2023-4-25 21:34
另外所有需要接地的地方我都接地了,没浮空,想不明白。。。5555555555555
桨叶没装,还说装了,等你装了飞就知道了,一切正常 永不炸鸡 发表于 2023-4-27 10:36
桨叶没装,还说装了,等你装了飞就知道了,一切正常
桨叶故意没装的,电机我也上电测试了,就是会不受控的缓慢增加转速。
已经手动模式了headfree,应该是不受加速度传感器影响。
所以就算装了去飞应该也是一个情况(PB4-7引脚pwm就是在增加,装不装桨叶不会影响控制板的pwm输出,且我尝试隔离了主控与电调的供电,排除了电机导致的供电不稳) 装上桨叶应该就好了,是正常的。不明白为什么那么多人爱这样测试,能测出什么来? headfree是手动模式????????
页:
[1]