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. Feature Requests
  3. Easy way to configure ID / channel

Easy way to configure ID / channel

Scheduled Pinned Locked Moved Feature Requests
6 Posts 3 Posters 2.3k 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.
  • K Offline
    K Offline
    kr0815
    wrote on last edited by
    #1

    I built various sensors for me, friends,...
    I have to use several because of to heavy walls

    I learned here how to add a Jumper to clear eeprom during boot, so i could handle out sensors to anybody, then the sensor is once started with the Jumper, then ready for it´s new place

    But now trouble starts with channel / ID - i have to use different ones, because of the different Gateways
    I expect that even to be a problem chrashing my ESP8266-Gateway

    Does anybody have a good idea how to handle that`?

    My idea is to have a box full of sensors, take one, and adapt it to the desired gateway
    I can´t flash each one again to the desired ID, because as all of you know, which was the right IDE, which was the right sketch,....

    For the start, it should at least be in the sketch itself, not in another file....

    1 Reply Last reply
    0
    • mfalkviddM Offline
      mfalkviddM Offline
      mfalkvidd
      Mod
      wrote on last edited by
      #2

      How about using a rotary encoder for selecting the channel?

      1 Reply Last reply
      0
      • K Offline
        K Offline
        kr0815
        wrote on last edited by kr0815
        #3

        I was already thinking about that, BCD-encoded, but as there are many genious People here, maybe there are better Solutions ?
        Something like if the sensor is 20 cm away from the Gateway, and a button pressed on the Gateway, or such things ?

        As i understood mysensors beginner-friendly, maybe that´s something that´s needed ?

        1 Reply Last reply
        0
        • YveauxY Offline
          YveauxY Offline
          Yveaux
          Mod
          wrote on last edited by
          #4

          @kr0815 said:

          which was the right IDE, which was the right sketch,....

          IMHO That's just a matter of administration.

          Anyway, if the number of combinations you want to support is small and board space/IO's are limited, you could use a voltage divider consisting of 2 resistors and hook them up to an analog input of the microcontroller.

          More or less like the schematic below, but by only using one switch:

          analog_read_dipswitch.jpg

          By reading the analog input you can determine which resistor configuration is present and thus which channel is selected.

          http://yveaux.blogspot.nl

          1 Reply Last reply
          0
          • K Offline
            K Offline
            kr0815
            wrote on last edited by
            #5

            I will try it with 2 Jumpers to select between 4 different channels

            but how to define the channel in the sketch, not in MyConfig.h ?

            YveauxY 1 Reply Last reply
            0
            • K kr0815

              I will try it with 2 Jumpers to select between 4 different channels

              but how to define the channel in the sketch, not in MyConfig.h ?

              YveauxY Offline
              YveauxY Offline
              Yveaux
              Mod
              wrote on last edited by Yveaux
              #6

              @kr0815 Currently you cannot change the channel dynamically, as it is set
              to RF24_CHANNEL in MyTransportNRF24::init().
              You could change the implementation of MyTransportNRF24::init() and pass the channel as a parameter.

              http://yveaux.blogspot.nl

              1 Reply Last reply
              0
              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.0k

              Posts


              Copyright 2019 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