Contact me: hankecnc@gmail.com

AT90USB1287 上的伺服问题 #690

推推 grbl 3年前 (2023-02-06) 257次浏览
关闭
GigaBajcior 打开了这个问题 2013 年 12 月 20 日 · 10 条评论
关闭

AT90USB1287 上的伺服问题#690

GigaBajcior 打开了这个问题 2013 年 12 月 20 日 · 10 条评论

评论

AT90USB1287 上的伺服问题 #690

你好,

我在使用 AT90USB1287 连接到电路板时遇到问题。
http://www.youtube.com/watch?v=Ybvy5fhhgEM
如您所见,伺服工作但非常非常慢,而且位置不稳定。
我正在使用引脚 C5 连接伺服。

配置.h:

定义 NUM_SERVOS 1

定义 SERVO_ENDSTOPS {-1, -1, 0}

定义 SERVO_ENDSTOP_ANGLES {0,0, 0,0, 170,10}

引脚.h:

ifdef NUM_SERVOS

#define SERVO0_PIN 15

万一

你知道它是什么吗?

问候

阿图尔

AT90USB1287 上的伺服问题 #690
贡献者

有几件事要尝试:
用万用表检查 +5 上的电压电平,
它是否低于 5 伏?
另一个舵机,确定您尝试的那个是否坏了。
使用另一个引脚,问题是否随之而来?
如果您手头有 arduino,请将伺服演示脚本上传到它以
隔离您的 3d 打印机电子设备。

干杯,
戈德。

干杯,
戈德。

2013 年 12 月 20 日星期五凌晨 3:27,GigaBajcior notifications@github.com写道:

你好,

我在使用 AT90USB1287 连接到电路板时遇到问题。
http://www.youtube.com/watch?v=Ybvy5fhhgEM
如您所见,伺服工作但非常非常慢,而且位置不稳定。
我正在使用引脚 C5 连接伺服。

Configuration.h:
#define NUM_SERVOS 1
#define SERVO_ENDSTOPS {-1, -1, 0}
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 170,10}

pins.h:
#ifdef NUM_SERVOS
#define SERVO0_PIN 15
#endif

你知道它是什么吗?

问候

阿图尔


直接回复此电子邮件或在 GitHub 上查看它 https://github.com/ErikZalm/Marlin/issues/690

AT90USB1287 上的伺服问题 #690

你好,

具有相同电源的相同引脚上的相同伺服与来自 arduino 的标准“扫描”示例配合得非常好。

当然,我尝试了其他引脚,带 PWM 的 B4 和不带 PWM 的 F0、F1、F2。但仅在C5 舵机上有响应。

问候

阿图尔

Wiadomość napisana przez Gord Christmas notifications@github.com w dniu 20 gru 2013, o godz。15:56:

有几件事要尝试:
用万用表检查 +5 上的电压电平,
它是否低于 5 伏?
另一个舵机,确定您尝试的那个是否坏了。
使用另一个引脚,问题是否随之而来?
如果您手头有 arduino,请将伺服演示脚本上传到它以
隔离您的 3d 打印机电子设备。

干杯,
戈德。

干杯,
戈德。

2013 年 12 月 20 日星期五凌晨 3:27,GigaBajcior notifications@github.com写道:

你好,

我在使用 AT90USB1287 连接到电路板时遇到问题。
http://www.youtube.com/watch?v=Ybvy5fhhgEM
如您所见,伺服工作但非常非常慢,而且位置不稳定。
我正在使用引脚 C5 连接伺服。

Configuration.h:
#define NUM_SERVOS 1
#define SERVO_ENDSTOPS {-1, -1, 0}
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 170,10}

pins.h:
#ifdef NUM_SERVOS
#define SERVO0_PIN 15
#endif

你知道它是什么吗?

问候

阿图尔


直接回复此电子邮件或在 GitHub 上查看它 https://github.com/ErikZalm/Marlin/issues/690


直接回复此电子邮件或在 GitHub 上查看。

AT90USB1287 上的伺服问题 #690
贡献者

可能是您的开发板正在共享一个计时器。
您在配置中指定了什么主板?

干杯,
戈德。

干杯,
戈德。

2013 年 12 月 20 日星期五上午 7:50,GigaBajcior notifications@github.com写道:

你好,

具有相同电源的相同引脚上的相同伺服与
来自 arduino 的标准“扫描”示例配合得非常好。

当然,我尝试了其他引脚,带 PWM 的 B4 和不带 PWM 的 F0、F1、F2。但
仅在C5 舵机上有响应。

问候

阿图尔

Wiadomość napisana przez Gord Christmas notifications@github.com w dniu
20 gru 2013, o godz。15:56:

有几件事要尝试:
用万用表检查 +5 上的电压电平,

是否低于 5 伏?
另一个舵机,确定您尝试的那个是否坏了。
使用另一个引脚,问题是否随之而来?
如果您手头有 arduino,请将伺服演示脚本上传到它以
隔离您的 3d 打印机电子设备。

干杯,
戈德。

干杯,
戈德。

2013 年 12 月 20 日星期五凌晨 3:27,GigaBajcior notifications@github.com写道:

你好,

我在使用 AT90USB1287 连接到电路板时遇到问题。
http://www.youtube.com/watch?v=Ybvy5fhhgEM
如您所见,伺服工作但非常非常慢,而且位置
不稳定。
我正在使用引脚 C5 连接伺服。

Configuration.h:
#define NUM_SERVOS 1
#define SERVO_ENDSTOPS {-1, -1, 0}
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 170,10}

pins.h:
#ifdef NUM_SERVOS
#define SERVO0_PIN 15
#endif

你知道它是什么吗?

问候

阿图尔


直接回复此电子邮件或在 GitHub<
https://github.com/ErikZalm/Marlin/issues/690&gt;
上查看 。


直接回复此电子邮件或在 GitHub 上查看。


直接回复此电子邮件或在 GitHub 上查看它 https://github.com/ErikZalm/Marlin/issues/690#issuecomment-31018716

AT90USB1287 上的伺服问题 #690

我做了自己的配置:

/**************************************************** ***************************************

  • 独特的一个引脚分配(AT90USB1286)
  • 需要在 Arduino IDE 中选择 Teensy++ 2.0 的 Teensyduino 软件!
    ****************************************************** ***************************************/
    #if MOTHERBOARD == 84 // Unique One
    #定义 KNOWN_BOARD 1
    #define AT90USB 1286 // 禁用 MarlinSerial 等。

#ifndef AVR_AT90USB1286
#error Oj Oj!Upewnij sie ze masz wybrane ‘Teensy++ 2.0’ w menu ‘Tools -> Boards’。
#万一

//#define LARGE_FLASH 真

#define X_STEP_PIN 28
#define X_DIR_PIN 29
#define X_ENABLE_PIN 19
#define X_STOP_PIN 25

#define Y_STEP_PIN 30
#define Y_DIR_PIN 31
#define Y_ENABLE_PIN 18
#define Y_STOP_PIN 26

#define Z_STEP_PIN 32
#define Z_DIR_PIN 33
#define Z_ENABLE_PIN 17
#define Z_STOP_PIN 27

#define E0_STEP_PIN 34
#define E0_DIR_PIN 35
#define E0_ENABLE_PIN 12
#define HEATER_0_PIN 8
#define TEMP_0_PIN 5

#define E1_STEP_PIN 14
#define E1_DIR_PIN 13
#define E1_ENABLE_PIN 11
#define HEATER_1_PIN 9
#define TEMP_1_PIN 6

#define E2_STEP_PIN -1
#define E2_DIR_PIN -1
#define E2_ENABLE_PIN -1
#define HEATER_2_PIN -1
#define TEMP_2_PIN -1

#define HEATER_BED_PIN 10
#define TEMP_BED_PIN 7

#define FAN_PIN 16

#define SDSS 20
#define SDPOWER -1
#define SDCARDDETECT -1
#ifndef SDSUPPORT
#define SCK_PIN 21
#define MISO_PIN 22
#define MOSI_PIN 23
#endif

#define LED_PIN -1
#define PS_ON_PIN -1
#define KILL_PIN -1
#define ALARM_PIN -1

//#define PHOTOGRAPH_PIN 10

#define 蜂鸣器 30

#define LCD_PINS_RS 1
#define LCD_PINS_ENABLE 41 //bylo 3
#define LCD_PINS_D4 0
#define LCD_PINS_D5 38 //bylo 2
#define LCD_PINS_D6 4
#define LCD_PINS_D7 6

#define BTN_EN1 5
#define BTN_EN2 7
#define BTN_ENC 39 //点击

#ifdef NUM_SERVOS
#define SERVO0_PIN 15
#endif

#endif // 主板 == 84

问候

阿图尔

Wiadomość napisana przez Gord Christmas notifications@github.com w dniu 20 gru 2013, o godz。17:00:

可能是您的开发板正在共享一个计时器。
您在配置中指定了什么主板?

干杯,
戈德。

干杯,
戈德。

2013 年 12 月 20 日星期五上午 7:50,GigaBajcior notifications@github.com写道:

你好,

具有相同电源的相同引脚上的相同伺服与
来自 arduino 的标准“扫描”示例配合得非常好。

当然,我尝试了其他引脚,带 PWM 的 B4 和不带 PWM 的 F0、F1、F2。但
仅在C5 舵机上有响应。

问候

阿图尔

Wiadomość napisana przez Gord Christmas notifications@github.com w dniu
20 gru 2013, o godz。15:56:

有几件事要尝试:
用万用表检查 +5 上的电压电平,

是否低于 5 伏?
另一个舵机,确定您尝试的那个是否坏了。
使用另一个引脚,问题是否随之而来?
如果您手头有 arduino,请将伺服演示脚本上传到它以
隔离您的 3d 打印机电子设备。

干杯,
戈德。

干杯,
戈德。

2013 年 12 月 20 日星期五凌晨 3:27,GigaBajcior notifications@github.com写道:

你好,

我在使用 AT90USB1287 连接到电路板时遇到问题。
http://www.youtube.com/watch?v=Ybvy5fhhgEM
如您所见,伺服工作但非常非常慢,而且位置
不稳定。
我正在使用引脚 C5 连接伺服。

Configuration.h:
#define NUM_SERVOS 1
#define SERVO_ENDSTOPS {-1, -1, 0}
#define SERVO_ENDSTOP_ANGLES {0,0, 0,0, 170,10}

pins.h:
#ifdef NUM_SERVOS
#define SERVO0_PIN 15
#endif

你知道它是什么吗?

问候

阿图尔


直接回复此电子邮件或在 GitHub<
https://github.com/ErikZalm/Marlin/issues/690&gt;
上查看 。


直接回复此电子邮件或在 GitHub 上查看。


直接回复此电子邮件或在 GitHub 上查看它 https://github.com/ErikZalm/Marlin/issues/690#issuecomment-31018716


直接回复此电子邮件或在 GitHub 上查看。

AT90USB1287 上的伺服问题 #690
贡献者

So that means you are defaulting to a single timer option:
https://github.com/ErikZalm/Marlin/blob/Marlin_v1/Marlin/Servo.h

Your board will end up in the “everything else” branch.

Cheers,
Gord.

Cheers,
Gord.

On Fri, Dec 20, 2013 at 8:03 AM, GigaBajcior notifications@github.comwrote:

I made my own configuration:

/****************************************************************************************

  • Unique One pin assignments (AT90USB1286)
  • Requires the Teensyduino software with Teensy++ 2.0 selected in Arduino
    IDE!
    ****************************************************************************************/

#if MOTHERBOARD == 84 // Unique One
#define KNOWN_BOARD 1
#define AT90USB 1286 // Disable MarlinSerial etc.

#ifndef AVR_AT90USB1286

喜欢 (0)