ChihChuanCheng / LightWeightAircraftReceiver_V7RC

3 stars 2 forks source link

您好,请问这个怎么用? #1

Open jpfree opened 1 year ago

jpfree commented 1 year ago

您好,无意中看到了您这个项目,感觉很不错,请问 这个是在车载端用EPS8266配合手机V7RC APP用吗?

ChihChuanCheng commented 1 year ago

您好,這份开源编程是给接收板使用的,可烧录至esp8266,再使用手机安装V7RC APP後,即可連上接收板进行操控。

jpfree commented 1 year ago

谢谢,改天我试试。

jpfree commented 1 year ago

电调不能初始化,我把普通的三线双向有刷ESC接在 THROTTLE GPIO12上,上电后电调好像没收到信号一样,有自检的声音,但是不能运转,可如果把电调的信号线接到GPIO4(本来是给舵机用的),电机就可以正常运转了,请问这是怎么回事呢?

10:01:13.384 -> 10:01:13.384 -> Rudder: 90 throttle: 167 10:01:13.384 -> SRV1500179015001500 10:01:13.384 -> 20 10:01:13.384 -> V,1500,1790,1500,1500,1500,1500,1500,1500,, 10:01:13.415 -> 10:01:13.415 -> Rudder: 90 throttle: 201 10:01:13.447 -> SRV1500190715001500 10:01:13.447 -> 20 10:01:13.447 -> V,1500,1907,1500,1500,1500,1500,1500,1500,, 10:01:13.447 -> 10:01:13.447 -> Rudder: 90 throttle: 231 10:01:13.447 -> SRV1500190715001500 10:01:13.447 -> 20 10:01:13.447 -> V,1500,1907,1500,1500,1500,1500,1500,1500,, 10:01:13.447 -> 10:01:13.447 -> Rudder: 90 throttle: 231 10:01:13.493 -> SRV1500195315001500 10:01:13.493 -> 20 10:01:13.493 -> V,1500,1953,1500,1500,1500,1500,1500,1500,, 10:01:13.493 -> 10:01:13.493 -> Rudder: 90 throttle: 243 10:01:13.533 -> SRV1500197515001500 10:01:13.533 -> 20 10:01:13.533 -> V,1500,1975,1500,1500,1500,1500,1500,1500,, 10:01:13.533 ->

ChihChuanCheng commented 1 year ago

電調接受的控制波型和GPIO4舵機的控制波型一致,如 servoRudder.write(rudder);

https://howtomechatronics.com/how-it-works/how-servo-motors-work-how-to-control-servos-using-arduino/

GPIO12輸出的是PWM波型,需要透過MOS驅動直流電機,用來接電調不會有動作,因為控制波型不同 analogWrite(THROTTLE, throttle);

https://blog.upverter.com/2019/11/21/using-pwm-for-dc-motor-control/

jpfree commented 1 year ago

電調接受的控制波型和GPIO4舵機的控制波型一致,如 servoRudder.write(rudder);

https://howtomechatronics.com/how-it-works/how-servo-motors-work-how-to-control-servos-using-arduino/

GPIO12輸出的是PWM波型,需要透過MOS驅動直流電機,用來接電調不會有動作,因為控制波型不同 analogWrite(THROTTLE, throttle);

https://blog.upverter.com/2019/11/21/using-pwm-for-dc-motor-control/

谢谢解答,不是太懂这个。

目前我把这2个GPIO对调,可以正常工作。

即电调信号线接GPIO4,舵机信号线接GPIO12,电机和舵机都可以正常运行,再次表示感谢。