• Skip to main content
  • Skip to primary sidebar

RNTLab.com

The Ultimate Shortcut to Learn Electronics and Programming with Open Source Hardware and Software

  • Courses
  • Forum
    • Forum
    • Ask Question
  • Shop
  • Account
  • Blog
  • Login

ESP32 PMW question

Q&A Forum › Category: ESP32 › ESP32 PMW question
0 Vote Up Vote Down
Robert Apida asked 2 years ago

I am having problems with the concept of channels.  Why is it there? 

Question Tags: PMW Channels
2 Answers
0 Vote Up Vote Down
Steve Mercer answered 2 years ago

Channels are basically outputs or pins. The ESP32 has 16 hardware PWM channels (Although my understanding is that Espressif has only implemented 8). You could actually create software PWM but then you would need to do all the work yourself.
 
As an example, let’s say you are building a robot with 8 servo’s. Each servo would require a separate PWM channel to operate independently. You attach each channel to a GPIO pin and then you can set each servo’s position with ledcWrite calls.

0 Vote Up Vote Down
Sara Santos Staff answered 2 years ago

Hi Robert.
Yes, Steve is right.
You can think of channels as the “thing” that produces the signal. Then, we choose one GPIO when we will get the signal from.
This means that if you use the same channel for several GPIOs, they will all output the same signal.
I hope this is clear.
Regards,
Sara

Primary Sidebar

Login to Ask or Answer Questions

This Forum is private and it’s only available for members enrolled in our Courses.

Login »

Latest Course Updates

  • [eBook Updated] SMART HOME with RPi, ESP32, and ESP8266 (version 1.2) March 8, 2023
  • [eBook Updated] ESP32-CAM Projects (version 1.3) January 7, 2023

You must be logged in to view this content.

Contact Support - Refunds - Privacy - Terms - MakerAdvisor.com - Member Login

Copyright © 2013-2023 · RandomNerdTutorials.com · All Rights Reserved

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.