Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

py-apple-dynamics help #5

Open
mkonwerski opened this issue Apr 9, 2022 · 0 comments
Open

py-apple-dynamics help #5

mkonwerski opened this issue Apr 9, 2022 · 0 comments

Comments

@mkonwerski
Copy link

早上好
对不起,我正在和翻译一起写。 我很高兴我在 YT 上找到了电影 py apple bot。 这个项目让我吃惊。
我买了一个ESP32、PCA96685、MPU6050、伺服来做一个机器人。
我从github下载了机器人代码,将代码上传到了esp32。
https://github.com/ToanTech/py-apple-dynamics

我运行了main.py脚本,出现了一个错误:
Traceback (most recent call last):
File "", line 2, in
File "PA_SERVO.py", line 101, in
File "PA_SERVO.py", line 73, in init
File "PA_SERVO.py", line 10, in init
File "PA_SERVO.py", line 19, in reset
File "PA_SERVO.py", line 13, in _write
OSError: [Errno 116] ETIMEDOUT

我将代码更改为:
servos = Servos(SoftI2C(scl=Pin(19), sda=Pin(18), freq=100000), address=0x40) #舵机控制板(集成)

我将代码更改为:
servos = Servos(SoftI2C(scl=Pin(22), sda=Pin(21), freq=100000), address=0x40) #舵机控制板(集成)

我得到另一个错误:
IMU启动中...
Traceback (most recent call last):
File "", line 6, in
File "padog.py", line 143, in
ValueError: freqency must be from 1Hz to 40MHz

我将代码更改为:
alarm_pin = PWM(Pin(13),freq=0, duty=0)
我将代码更改为:
alarm_pin = PWM(Pin(13),freq=1000, duty=0)
我得到另一个错误:
Traceback (most recent call last):
File "", line 48, in
File "padog.py", line 189, in start_ring
File "padog.py", line 171, in alarm
ValueError: freqency must be from 1Hz to 40MHz

我将代码更改为:
File "padog.py", line 171, in alarm
alarm_pin.freq(0)

File "padog.py", line 211, in do_connect_AP
alarm(0,0,0)

我将代码更改为:
File "padog.py", line 171, in alarm
alarm_pin.freq(1000)

File "padog.py", line 211, in do_connect_AP
alarm(0,1000,0)

应用程序已启动,
MU启动中...
Py-apple V7.2 通用控制器 by 灯哥 20210723 ESP32)
开源协议:Apache License 2.0
作者邮件:[email protected]
致命错误,重新烧录程序
热点 WIFI 已开启,WIFI名称:Py Apple Dog -菠萝狗
等待手机接入...
���机热点成功接入
MicroPython v1.18 on 2022-01-17; ESP32 module with ESP32
Type "help()" for more information.

我通过wifi连接到机器人,网站出现了。 这让我非常高兴。 不幸的是,移动操纵杆不会移动腿或伺服系统。

你知道如何在 esp32 上运行你的代码吗?
腿不动的原因是什么?
祝贺一个伟大的项目,谢谢你的帮助

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant