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. General Discussion
  3. Just starting out have a question

Just starting out have a question

Scheduled Pinned Locked Moved General Discussion
gatewaynewbie
5 Posts 3 Posters 2.5k Views 1 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.
  • ChaoticC Offline
    ChaoticC Offline
    Chaotic
    wrote on last edited by
    #1

    So I'm just starting out and in an effort to get wife approval I plan on making a night light for our son. I have all the parts on order and want to add in a radio so that I can hook into it later on.

    The problem is I don't have a gateway yet (still reading up on the Rasberry Pi 2/OpenHab/MQTT which is my current intended gateway system.)

    So the question is it possible to set up a node prior to the gateway or would I have to recode the light once I get the gateway set up?

    Also is it possible to power the NRF24Lo1 radio from the 3.3V output of an Arduino Uno? or is it better to get a voltage regulator?

    I plan on making my nodes with Pros or Nanos but this light is going to be using an Uno and I have a second one for prototyping and want to play with the radios and don't want to fry them.

    D 1 Reply Last reply
    0
    • ChaoticC Chaotic

      So I'm just starting out and in an effort to get wife approval I plan on making a night light for our son. I have all the parts on order and want to add in a radio so that I can hook into it later on.

      The problem is I don't have a gateway yet (still reading up on the Rasberry Pi 2/OpenHab/MQTT which is my current intended gateway system.)

      So the question is it possible to set up a node prior to the gateway or would I have to recode the light once I get the gateway set up?

      Also is it possible to power the NRF24Lo1 radio from the 3.3V output of an Arduino Uno? or is it better to get a voltage regulator?

      I plan on making my nodes with Pros or Nanos but this light is going to be using an Uno and I have a second one for prototyping and want to play with the radios and don't want to fry them.

      D Offline
      D Offline
      doctor64
      wrote on last edited by
      #2

      @Chaotic I can answer second question - you can power radio from on-board 3.3V regulator from Uno or Leonardo. I use this setup without any problems.
      First question - not complete understand it. If you manage assign node ID to sensor (using gateway or manually edit EEPROM) - sensor node can operate without controller/gateway

      1 Reply Last reply
      0
      • P Offline
        P Offline
        pete1450
        wrote on last edited by pete1450
        #3

        You can certainly have a node set up but it would just sit there asking for a node ID all day. If you want to be able to control it until you get a controller set up, slap a NRF24Lo1 on another arduino and use it plugged into a computer as a serial gateway. You'll need to send the node id manually(no controller to do it for you) through the serial consol and then it will start sending the mysensors encoded messages. You can also send commands in the same format so you'll need to read up on the API.

        Once you get a controller remember for flash the eeprom clear sketch so it can request a new node ID.

        ChaoticC 1 Reply Last reply
        0
        • P pete1450

          You can certainly have a node set up but it would just sit there asking for a node ID all day. If you want to be able to control it until you get a controller set up, slap a NRF24Lo1 on another arduino and use it plugged into a computer as a serial gateway. You'll need to send the node id manually(no controller to do it for you) through the serial consol and then it will start sending the mysensors encoded messages. You can also send commands in the same format so you'll need to read up on the API.

          Once you get a controller remember for flash the eeprom clear sketch so it can request a new node ID.

          ChaoticC Offline
          ChaoticC Offline
          Chaotic
          wrote on last edited by Chaotic
          #4

          @pete1450 said:

          You can certainly have a node set up but it would just sit there asking for a node ID all day. If you want to be able to control it until you get a controller set up, slap a NRF24Lo1 on another arduino and use it plugged into a computer as a serial gateway. You'll need to send the node id manually(no controller to do it for you) through the serial consol and then it will start sending the mysensors encoded messages. You can also send commands in the same format so you'll need to read up on the API.

          Once you get a controller remember for flash the eeprom clear sketch so it can request a new node ID.

          That is an option I hadn't thought of. I already have 2 radios (bought a 2 pack of amazon to test/learn)

          I'll probably end up doing this since I a (very) quick read didn't show a way to set a variable with the current library which is one of the things I'd want to do with it. It is going to have a RTC on it and I plan on having it start/stop at a time controlled by a variable. Might change the colors via a variable too if I can figure that out (using neopixels so I think it should be possible)

          Any examples you could give of setting up something like that would be great ;-)

          Looking at the API again it looks like there tell it your setting a custom variable I'll have to play around some more. Will give me something to do while I wait for the rest of my hardware to get here.

          1 Reply Last reply
          0
          • ChaoticC Offline
            ChaoticC Offline
            Chaotic
            wrote on last edited by
            #5

            slight bump to this topic rather than starting a new one since I have some more questions

            Are there any example sketches for setting variables on a node? Thinking I'd want at least 2 variables.

            Is there a proper way for a node to report time to the controller or other nodes? This one will be powered 100% of the time so responding to messages shouldn't be a problem.

            I'm pretty sure I know the answer to this one but best way to set up a sketch to report the temp every X when it isn't the main function of the node.

            Thanks in advance.

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


            18

            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