logo elektroda
logo elektroda
X
logo elektroda

ESP32 and IDF: UART pin selection, GPIO, pin numbers and tutorials

kamil3211 1524 5
ADVERTISEMENT
Treść została przetłumaczona polish » english Zobacz oryginalną wersję tematu
  • #1 20049101
    kamil3211
    Level 10  
    Hi I am starting to use ESP 32 idf. But I have some problems and questions.
    1. they state that there are 3 uart and I only see 1 https://docs.espressif.com/projects/esp-idf/e...est/esp32/_images/esp32-devkitC-v4-pinout.png.
    2. with these esp and programming in idf is it so that you can choose any pin ? That for example the uart does not have to be permanently in one place ?
    If so, what happens to the pin from which we redirected the uart ? Can it be used or is it wasted ?
    3 If it is as I write in point 2, which pin numbers should I look at ? the gpio in green or the ones on the board ?
    4 There are some cool tutorials for this. Because I can't find any that make sense maybe I'm looking wrong ?
    [/align].
  • ADVERTISEMENT
  • #2 20049120
    khoam
    Level 42  
    kamil3211 wrote:

    Better drawing and detailed pin description: Link
    Yes, there are 3 UART controllers available.

    kamil3211 wrote:
    Is it so with these esp and programming in idf that you can choose any pin ? That e.g. the uart does not have to be fixed in one place ?

    Yes, the pin assignment to the UART can be changed programmatically. Link

    kamil3211 wrote:
    There are some cool tutorials for this. Because I can't find any sensible ones maybe I am looking wrong ?
    .
    Link
    Link
  • ADVERTISEMENT
  • #3 20049164
    kamil3211
    Level 10  
    I would still like to ask if you have also perhaps used the arduino ide for the esp32. How does it compare to the idf?
    Is it possible to do something more difficult there than flashing a diode in arduino ide ? If there was no idf would you then choose it as an alternative ?
  • ADVERTISEMENT
  • #4 20049175
    khoam
    Level 42  
    kamil3211 wrote:
    Is it possible to do something more difficult there than flashing an LED in an Arduino ide ?
    .
    Yes :) There is a pretty extensive list of examples of ESP32 programming in the Arduino environment on that page I linked to in the previous post.

    kamil3211 wrote:
    If there was no idf would you then choose it as an alternative ?

    Arduino Core for ESP32 is based on ESP-IDF, so you can use both solutions for "arduino" projects.
  • ADVERTISEMENT
  • #5 20050682
    kamil3211
    Level 10  
    Is there any converter from arduino to esp idf code ? Since these are overlays ?
  • #6 20055728
    khoam
    Level 42  
    kamil3211 wrote:
    Is there any converter from arduino to esp idf code ?

    Yes :lol: .
    Link
ADVERTISEMENT