esp32-C3怎么驱动L9110S SOP-8 电机马达?

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

esp32-C3怎么驱动L9110S SOP-8 电机马达?

Postby fst202130609 » Tue Oct 26, 2021 1:54 am

官网给的例程esp-idf/examples/peripherals/rmt/step_motor好像不能驱动L9110S SOP-8 电机,型号不同,是不是就不能驱动啊

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: esp32-C3怎么驱动L9110S SOP-8 电机马达?

Postby ESP_morris » Tue Oct 26, 2021 8:08 am

example 用的是step/dir 接口的 步进电机

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

Re: esp32-C3怎么驱动L9110S SOP-8 电机马达?

Postby fst202130609 » Wed Oct 27, 2021 3:31 am

c3能用led_pwm来控制L9110S SOP-8 电机吗???

ESP_morris
Posts: 290
Joined: Wed Sep 05, 2018 6:23 am

Re: esp32-C3怎么驱动L9110S SOP-8 电机马达?

Postby ESP_morris » Wed Oct 27, 2021 5:24 am

可以

fst202130609
Posts: 171
Joined: Thu Sep 23, 2021 10:03 am

Re: esp32-C3怎么驱动L9110S SOP-8 电机马达?

Postby fst202130609 » Wed Oct 27, 2021 6:19 am

我用例程https://github.com/espressif/esp-idf/tree/master/examples/peripherals/ledc/ledc_fade编译没通过,有些参数没定义,我把库文件添加进去,但还是报错error: implicit declaration of function 'ledc_cb_register'; did you mean 'ledc_isr_register'? [-Werror=implicit-function-declaration]
ledc_cb_register(ledc_channel[ch].speed_mode, ledc_channel[ch].channel, &callbacks, (void *) counting_sem);

Who is online

Users browsing this forum: No registered users and 65 guests