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. My Project
  3. Wall mounted 'mood light'

Wall mounted 'mood light'

Scheduled Pinned Locked Moved My Project
23 Posts 10 Posters 16.1k Views 15 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.
  • hekH Offline
    hekH Offline
    hek
    Admin
    wrote on last edited by
    #10

    S_INFO inly exist in the dev branch.

    That also means you have to convert the 1.5 sketch. Convert instructions here:
    https://docs.google.com/document/d/1NKq5uuNdnxF5jWnum7VT32mbKLjuvqlx2A5D1qQ-H3Q/edit#

    1 Reply Last reply
    0
    • A Offline
      A Offline
      Adam McCartney
      wrote on last edited by
      #11

      @mickaelr30 , did you ever get this working with 1.5?

      i've got the upgrade instructions, but struggling to reverse it so it works with my current setup. Don't think i'm quite ready to upgrade all my nodes to dev quite yet.

      AWIA 1 Reply Last reply
      0
      • A Adam McCartney

        @mickaelr30 , did you ever get this working with 1.5?

        i've got the upgrade instructions, but struggling to reverse it so it works with my current setup. Don't think i'm quite ready to upgrade all my nodes to dev quite yet.

        AWIA Offline
        AWIA Offline
        AWI
        Hero Member
        wrote on last edited by
        #12

        @Adam-McCartney add these lines in the header and you will have it working with the production version...

        // V_TEXT & V_INFO when not using the DEVELOPMENT version 
        const byte V_TEXT = 47 ;					// values taken from development edition MyMessage.h
        const byte S_INFO = 36 ;
        
        1 Reply Last reply
        1
        • A Offline
          A Offline
          Adam McCartney
          wrote on last edited by
          #13

          @AWI said:

          // V_TEXT & V_INFO when not using the DEVELOPMENT version
          const byte V_TEXT = 47 ; // values taken from development edition MyMessage.h
          const byte S_INFO = 36 ;

          awesome, thanks!

          I'm more of a butcher than a surgeon. I can quite happily take things apart, but fixing things usually goes right over my head!!

          1 Reply Last reply
          0
          • M Offline
            M Offline
            Mehdi HAMIDA
            wrote on last edited by
            #14

            I really love this project.
            May I can include it in all of my sensors (doorbell, thermostat, alarm,...).

            Really sounds great, thanks

            1 Reply Last reply
            0
            • M Offline
              M Offline
              Mehdi HAMIDA
              wrote on last edited by
              #15

              Is there a way to get your wiring schema ?

              AWIA 1 Reply Last reply
              0
              • M Mehdi HAMIDA

                Is there a way to get your wiring schema ?

                AWIA Offline
                AWIA Offline
                AWI
                Hero Member
                wrote on last edited by
                #16

                @Mehdi-HAMIDA There is nothing to it. A standard MySensors node (5v) with the strip connected to D5 and a button between ground and D4.

                const int stripPin = 5 ;                                    // pin where 2812 LED strip is connected
                const int buttonPin = 4 ;                                   // push button
                
                M 1 Reply Last reply
                1
                • AWIA AWI

                  @Mehdi-HAMIDA There is nothing to it. A standard MySensors node (5v) with the strip connected to D5 and a button between ground and D4.

                  const int stripPin = 5 ;                                    // pin where 2812 LED strip is connected
                  const int buttonPin = 4 ;                                   // push button
                  
                  M Offline
                  M Offline
                  Mehdi HAMIDA
                  wrote on last edited by
                  #17

                  @AWI OK, just ordered the PCB
                  thx

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

                    @AWI: Won't this part of your sketch create sort of an endless loop?

                            case RGB_TextColorChild:                            // Text color from controller
                                if (message.type == V_TEXT) {                   // if get color from text child
                                    gw.request(RGB_TextColorChild, V_TEXT);
                    
                    AWIA 1 Reply Last reply
                    1
                    • mfalkviddM mfalkvidd

                      @AWI: Won't this part of your sketch create sort of an endless loop?

                              case RGB_TextColorChild:                            // Text color from controller
                                  if (message.type == V_TEXT) {                   // if get color from text child
                                      gw.request(RGB_TextColorChild, V_TEXT);
                      
                      AWIA Offline
                      AWIA Offline
                      AWI
                      Hero Member
                      wrote on last edited by
                      #19

                      @mfalkvidd Good observation. Probably the the result of an 'efficient' copy/paste :flushed:

                      The line

                          gw.request(RGB_TextColorChild, V_TEXT);
                      

                      I there with no reason, can be deleted...

                      1 Reply Last reply
                      2
                      • Tore André RosanderT Offline
                        Tore André RosanderT Offline
                        Tore André Rosander
                        wrote on last edited by
                        #20

                        Im building the same light, but i use 12v LED strips controlled with mosfets. Is it possible to use the same scetch?

                        AWIA 1 Reply Last reply
                        0
                        • Tore André RosanderT Tore André Rosander

                          Im building the same light, but i use 12v LED strips controlled with mosfets. Is it possible to use the same scetch?

                          AWIA Offline
                          AWIA Offline
                          AWI
                          Hero Member
                          wrote on last edited by
                          #21

                          @Tore-André-Rosander If you use standard 12v strips it won't work as such. The ws2812/11 chips in the strip used make it possible to address the individual led's.

                          Tore André RosanderT 1 Reply Last reply
                          0
                          • AWIA AWI

                            @Tore-André-Rosander If you use standard 12v strips it won't work as such. The ws2812/11 chips in the strip used make it possible to address the individual led's.

                            Tore André RosanderT Offline
                            Tore André RosanderT Offline
                            Tore André Rosander
                            wrote on last edited by Tore André Rosander
                            #22

                            @AWI Is this code for version 1.5?
                            Im trying to compile it for the dev (v2) but i get a lot of errors.
                            Mostly alot of code that "was not declared in this scope".

                            EDIT: Just found your link to the "Conversion guide", will have look at it!

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

                              A version for MySensors 2 is available at https://forum.mysensors.org/topic/4934/wall-mounted-mood-light-v2

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


                              16

                              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