修改舵机位置和称重传感器引脚

This commit is contained in:
pxzleo 2023-05-26 16:28:24 +08:00
parent 81d1147f28
commit e864d940d7
2 changed files with 4 additions and 4 deletions

View File

@ -11,8 +11,8 @@
#define BTN_CT 21 // 到顶检测开关
#define BTN_TEST 18 // 测试开关
// 称重传感器- HX711
#define LOADCELL_DOUT_PIN 16
#define LOADCELL_SCK_PIN 17
#define LOADCELL_DOUT_PIN 13 //16
#define LOADCELL_SCK_PIN 33 //17
///////////////////////////////////////////
#define SERVO_PIN 14 // 锁定舵机PWM控制脚
////LED

View File

@ -29,8 +29,8 @@
#define TM_SERVOLOCK 300 // 舵机转到Lock和Unlock等待的时间ms
#define TM_ACC_HS 500 // 货物快到地面减速时间--覆盖自动加减速时间--这个地方稍微长一些
#define SERVO_LOCKPOS 1890 // 舵机锁定位置
#define SERVO_UNLOCKPOS 1780 // 舵机解锁位置
#define SERVO_LOCKPOS 1920 // 舵机锁定位置
#define SERVO_UNLOCKPOS 1800 // 舵机解锁位置
#define SERVO_BLOCKUNLOCKPOS 1700 // 舵机堵转需要转回的位置--可以和SERVO_UNLOCKPOS一样为了速度快也可以更小
#define HOOK_WEIHT_MIN 100 // 最小货物重量 小于这个认为没挂东西 (克)