ESP32 PWM with Arduino IDE

Поділитися
Вставка
  • Опубліковано 12 лис 2024

КОМЕНТАРІ • 37

  • @RuiSantosdotme
    @RuiSantosdotme  6 років тому +3

    You can find the complete project details (schematics + source code), visit ► randomnerdtutorials.com/esp32-pwm-arduino-ide/

    • @amadomedina5364
      @amadomedina5364 6 років тому

      Good evening sorry for the inconvenience but I wanted to see if you can guide me in some doubts that I have esque I have the following project thought
      The project consists of 5 simulated lamps with a led each connected to a NodeMCU8266 which will be lit at a low intensity at a specific time while no connection is detected from the vehicle that will be simulated with another NodeMCU8266 the lamps will be stable mesh connection (Maya) between them to communicate with each other and turn on the lamps in series when a signal is received that will be sent from a simulated car with another nodeMCU that would have to be the root node, as soon as the car comes close to the lamps will detect the signal in the lamps and one another will increase their intensity of light, finally when the car has already finished passing the lamps they will return to their low intensity since they will not be receiving the signal from the car.
      But the problems I have had are the mesh connection between the NodeMCU8266 modules, hence the programming of the lamp's intency.
      I would really appreciate your help

  • @aer_edupez5424
    @aer_edupez5424 Місяць тому +4

    what do I do if I get " Compilation error: 'ledcSetup' was not declared in this scope"

  • @gwtomsic
    @gwtomsic 3 роки тому +2

    OUTSTANDING STUFF! You guys are great teachers!

  • @eduardoanonimo3031
    @eduardoanonimo3031 5 років тому +2

    Youre good, short and efficient.

  • @ThibautLamadon
    @ThibautLamadon 9 місяців тому

    great video, straight to the point, really great stuff!!!

  • @morningbae
    @morningbae 5 років тому

    FANTASTIC and WELL EXPLAINED video, helped me a lot.

  • @MalcolmHelicopter
    @MalcolmHelicopter 2 роки тому

    Brilliant 🤩! Thank you. More please! Stepper motors ?

  • @ctr_4869
    @ctr_4869 2 роки тому +2

    Should i download any library?

  • @supermamaoo
    @supermamaoo 4 роки тому

    Very good.
    That's exactly what i was looking for.
    Thanks so much

  • @thibaultjn
    @thibaultjn 4 роки тому

    Very clear, well explained. Thanks a lot !

  • @ezangrobotsvideos9286
    @ezangrobotsvideos9286 3 роки тому

    Thanks, great tutorials - learning a lot - be well

  • @allbionics
    @allbionics Рік тому +1

    Verified the code and with the exception of the includes, all OK (#include were not part of the shared code)

  • @ODevCientista
    @ODevCientista 6 місяців тому

    So can I controll the led brightless using a potenciometer followin this rules but makin chnges in yhe codes?

  • @randysonnicksen9475
    @randysonnicksen9475 Рік тому

    Rui, I copied the code exactly, and the circuit exactly. Any clues why my output isn't pulsing. I'm getting a low output continuously. The output is high if I remove the LED circuit. Are there any registers I can print to get a clue as to what is going on?

  • @jack91522
    @jack91522 Рік тому +1

    I'm outputting a 38KHz pwm with an esp32-s3 and I'm seeing a few missing pulses every ~200ms. I think the phase is off. Not sure how to ensure it's in phase but it's something everyone should be cognizant of because this unintended behavior is hard to spot and can ruin a project.

  • @subrahmanyamv6690
    @subrahmanyamv6690 2 роки тому

    what is the minimum frequency we can configure? Can we have 1 to 5 Hz?

  • @ezangrobotsvideos9286
    @ezangrobotsvideos9286 3 роки тому

    Thanks, great tutorials, be well

  • @danmeuse496
    @danmeuse496 2 роки тому

    could i use this to control a brushless motor ESC?

  • @Sanchez9241
    @Sanchez9241 Місяць тому +1

    getting error that function Compilation error: 'ledcSetup' was not declared in this scope. reinstalled esp32 core and still getting that error

    • @Zeddify
      @Zeddify 14 днів тому

      I have the same problem bro and I don’t know how to fix it 😭

    • @jatinprajapati8987
      @jatinprajapati8987 10 днів тому

      ​@@Zeddifybrooo same problem if you found solution please share

  • @paulmeynell8866
    @paulmeynell8866 2 роки тому

    Excellent video thankyou

  • @ahmadshamim3289
    @ahmadshamim3289 4 роки тому

    Outstanding. Thank you!

  • @samiranDuttavlogz21
    @samiranDuttavlogz21 3 роки тому

    Can I use for fan dimmer?

  • @MSouzaa
    @MSouzaa 4 роки тому

    how to add a button for the fade to start when pressed and stop when released?

  • @sarita1667
    @sarita1667 Рік тому

    Hello Sir
    I want to control more pwm point of esp32 But I failed to do that.
    Can you tell me solution of it.

  • @helderrocha3228
    @helderrocha3228 3 роки тому

    Ola Rui Santos,
    Será é possível expandir portas pwm em " Mcp23017 i2c relação 16bit i/o módulo de extensão"? Se não, qual poderá ser outra solução? Estou a construir um AGV com 7 motores controlado por pwm.
    Parabéns pela apresentação, explicação muito boa, (e o meu inglês é mau :-) )

  • @marcinbiaecki9731
    @marcinbiaecki9731 2 роки тому

    Thanks :)

  • @developerandroid5932
    @developerandroid5932 5 років тому

    Why do you need the resistor?

    • @elian0213
      @elian0213 5 років тому +1

      for safety of ur mcr

  • @LukBukkit
    @LukBukkit 5 років тому

    A warning for everyone who's using MOSFETS:
    If you are using MOSFETs for example to control your RGB led strip, please don't use a PWM frequency 5000Hz. My MOSFETs broke. Use a frequency roundabout 100Hz. That's enough.

    • @AlessioSangalli
      @AlessioSangalli 5 років тому

      There must be something else that needs to be addressed. Most MOSFETs should be able to switch very well into the low kHz range. I would also argue that a 100Hz switching speed for LEDs would likely be seen by the human eye as strobing, especially when the head is moved and the light is seen by the side of the eye

    • @LukBukkit
      @LukBukkit 5 років тому +1

      @@AlessioSangalli Yeah you're right, somehow there was something wrong with my breadboard. I rebuild everything and now it works without any damage.

    • @AlessioSangalli
      @AlessioSangalli 5 років тому

      @@LukBukkit breadboards can add a lot of capacitive load that might make it harder to switch those mosfets. However 5kHz is still a very low frequency even for that