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. Development
  3. Digital Poti on same Pins as NRF24L01+ how can I solve this?

Digital Poti on same Pins as NRF24L01+ how can I solve this?

Scheduled Pinned Locked Moved Development
6 Posts 3 Posters 2.0k Views 2 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.
  • M Offline
    M Offline
    Meister_Petz
    wrote on last edited by
    #1

    HI,

    I would like to use a digital poti (MCP 4131). It uses the SPI.h and PINs 10/11/13 which collides with the NRF24L01+ pins.

    How can I solve this?

    Many Thanks

    Petz

    1 Reply Last reply
    0
    • H Offline
      H Offline
      HarryDutch
      wrote on last edited by
      #2

      Maybe this will help:

      http://forum.arduino.cc/index.php?topic=138812.0

      1 Reply Last reply
      0
      • OitzuO Offline
        OitzuO Offline
        Oitzu
        wrote on last edited by
        #3

        Because SPI is an Bus, both devices (the MCP 4131 and the NRF24L01+), share the pins 11 (MOSI), 12 (MISO) and 13 (SCK). The fourth pin 10 (CS) needs to be unique to each device. For this any free pin can be used.
        One of both libarys (mysensors or mcp4131) needs to be reconfigured to use another pin for CS then pin 10.

        1 Reply Last reply
        1
        • M Offline
          M Offline
          Meister_Petz
          wrote on last edited by
          #4

          The Poti only uses SPI.h no other library is involved. And I don't find anything about PIN 10 in the mysensors.h. Where can I change that for the NRF24L01+?

          Thanks

          Petz

          1 Reply Last reply
          0
          • OitzuO Offline
            OitzuO Offline
            Oitzu
            wrote on last edited by Oitzu
            #5

            @Meister_Petz said:

            The Poti only uses SPI.h no other library is involved. And I don't find anything about PIN 10 in the mysensors.h. Where can I change that for the NRF24L01+?

            Thanks

            Petz

            You can construct an instance of the rf24 radio :

            MyTransportNRF24 transport(RF24_CE_PIN, RF24_CS_PIN, RF24_PA_LEVEL_GW);
            

            At this point you can define an custom CE and CS Pin.

            But it should be also possible to modify the poti code. What code are you using to read it?

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Meister_Petz
              wrote on last edited by
              #6

              sorry... I'm blind...
              maybe I can change it here:

              int CS = 10;
              

              sorry again

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


              8

              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