Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Troubleshooting
  3. Connection ESP32 and NRF24

Connection ESP32 and NRF24

Scheduled Pinned Locked Moved Troubleshooting
7 Posts 3 Posters 111 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tonbor
    wrote on last edited by
    #1

    Have bought a ESP32 Dev with 38 pins. Try to connect my NRF24, got a problem with CSN and CE, there is no standard pin. GPIO 5 for CSN is ok CE on GPIO17 is blocking u2TXD I need. Try with #define MY_RF24_CE_PIN 12 to get CE to GPIO 12 no luck. Somebody did the job before, and did succeed, how?

    1 Reply Last reply
    0
    • electrikE Offline
      electrikE Offline
      electrik
      wrote on last edited by
      #2

      This should work:
      https://github.com/mysensors/MySensors/blob/d88506fbc62dac72d6b8b08c1fa3e179143c4542/hal/architecture/ESP32/MyHwESP32.h#L26

      T 1 Reply Last reply
      0
      • electrikE electrik

        This should work:
        https://github.com/mysensors/MySensors/blob/d88506fbc62dac72d6b8b08c1fa3e179143c4542/hal/architecture/ESP32/MyHwESP32.h#L26

        T Offline
        T Offline
        tonbor
        wrote on last edited by tonbor
        #3

        @electrik no it does not, CE to 17 is just my problem, with the ESP32 wroom-32u pin 17 is the serial2 txpin I need for Nextion output. And #define MY_RF24_CE_PIN 12 does not Work.

        1 Reply Last reply
        0
        • electrikE Offline
          electrikE Offline
          electrik
          wrote on last edited by
          #4

          And you are using the gpio numbers I guess? Can you post your sketch?

          T 1 Reply Last reply
          0
          • electrikE electrik

            And you are using the gpio numbers I guess? Can you post your sketch?

            T Offline
            T Offline
            tonbor
            wrote on last edited by
            #5

            @electrik, yes I use gpio numbers. Sketch is very very long, I am porting it from esp8266 to esp32 wroom. Fixed different timers, from os_timer_t to hw_timer_t, less relevant, now the nrf24 switch. CE attached to gpio 17 the nrf24 Works fine, want to move to gpio 12, with the #define i mentioned, CE just stays at gpio 17

            mfalkviddM 1 Reply Last reply
            0
            • T tonbor

              @electrik, yes I use gpio numbers. Sketch is very very long, I am porting it from esp8266 to esp32 wroom. Fixed different timers, from os_timer_t to hw_timer_t, less relevant, now the nrf24 switch. CE attached to gpio 17 the nrf24 Works fine, want to move to gpio 12, with the #define i mentioned, CE just stays at gpio 17

              mfalkviddM Offline
              mfalkviddM Offline
              mfalkvidd
              Mod
              wrote on last edited by
              #6

              Is the define placed before including MySensors.h?

              T 1 Reply Last reply
              0
              • mfalkviddM mfalkvidd

                Is the define placed before including MySensors.h?

                T Offline
                T Offline
                tonbor
                wrote on last edited by
                #7

                @mfalkvidd That did it, thanks

                1 Reply Last reply
                1
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                15

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • MySensors
                • OpenHardware.io
                • Categories
                • Recent
                • Tags
                • Popular