Can use analogWrite in ESP32? if not what is option?

spc6000
Posts: 1
Joined: Sat Jan 28, 2017 2:22 pm

Can use analogWrite in ESP32? if not what is option?

Postby spc6000 » Sat Jan 28, 2017 10:06 pm

Hi,

I would like to use ESP32 to control DC motor via motor module which require 2 PMW inputs (direction and speed).
All work fine in Arduino uno however the analogWrite funciton is not available.

Any suggestion?

Thanks

James

ESP_Sprite
Posts: 2843
Joined: Thu Nov 26, 2015 4:08 am

Re: Can use analogWrite in ESP32? if not what is option?

Postby ESP_Sprite » Sun Jan 29, 2017 2:38 am

Moved to the Arduino forum.

seopyoon
Posts: 23
Joined: Thu Dec 08, 2016 8:25 am

Re: Can use analogWrite in ESP32? if not what is option?

Postby seopyoon » Fri Feb 03, 2017 1:08 am

I used ledc example and its library for generating PWM on my application.

Who is online

Users browsing this forum: No registered users and 12 guests