Page 1 of 1

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

Posted: Tue Oct 26, 2021 1:54 am
by fst202130609
官网给的例程esp-idf/examples/peripherals/rmt/step_motor好像不能驱动L9110S SOP-8 电机,型号不同,是不是就不能驱动啊

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

Posted: Tue Oct 26, 2021 8:08 am
by ESP_morris
example 用的是step/dir 接口的 步进电机

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

Posted: Wed Oct 27, 2021 3:31 am
by fst202130609
c3能用led_pwm来控制L9110S SOP-8 电机吗???

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

Posted: Wed Oct 27, 2021 5:24 am
by ESP_morris
可以

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

Posted: Wed Oct 27, 2021 6:19 am
by fst202130609
我用例程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);