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. OpenHardware.io
  3. 💬 MySensors singleLED

💬 MySensors singleLED

Scheduled Pinned Locked Moved OpenHardware.io
rfm69ledmysensors
5 Posts 4 Posters 1.7k 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.
  • openhardware.ioO Offline
    openhardware.ioO Offline
    openhardware.io
    wrote on last edited by openhardware.io
    #1

    https://www.openhardware.io/view/563/MySensors-singleLED

    1 Reply Last reply
    0
    • NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by
      #2

      Very cool. I especially like your case design.

      What are the part numbers for the SMD JST header thing and the corresponding adapter plug? I'm not sure where to find those.

      1 Reply Last reply
      0
      • ThetaDevT Offline
        ThetaDevT Offline
        ThetaDev
        wrote on last edited by
        #3

        Hello NeverDie,
        nice that you're interested in my project. I've also planned some other MySensors devices like an easy-to-use Raspberry Pi Gateway or battery-powered temperature and windows sensors.

        To your questions:

        I have written instructions on how to solder the adapter cables for ISP and Serial programming. They can be found on my website (https://thdev.org/?Projects___misc___micro_JST). There is a link in the building instructions, too.

        I've purchased the 8pin connectors and cables from AliExpress. Here are the links to the offers. I have bad experience putting these in the BOM since AliExpress offers often expire quickly but these are still online.
        https://www.aliexpress.com/item/10PCS-1-25mm-Connector-Horizontal-Type-Straight-Pin-Female-JST-Socket-2-3-4-5-6/32787273682.html
        https://www.aliexpress.com/item/10-Set-1-25mm-Pitch-Male-Connector-Wire-15CM-Long-28AWG-2-3-4-5-6/32787305004.html
        If these should expire, just search for "jst 1.25", "smd jst 1.25mm" or similar.

        Hope that I could answer your questions
        ThetaDev

        1 Reply Last reply
        1
        • K Offline
          K Offline
          krisztian
          wrote on last edited by
          #4

          Hello! I really like your job! I've been building it and working it nicely. I had so many questions about how to change the code so that two or more separately controllable LED strips can be operated with multiple pushbuttons. So double the original program.
          Excuse me for weird English, I do not really know English.
          Thank you very much for your help!

          ThetaDevT 1 Reply Last reply
          0
          • K krisztian

            Hello! I really like your job! I've been building it and working it nicely. I had so many questions about how to change the code so that two or more separately controllable LED strips can be operated with multiple pushbuttons. So double the original program.
            Excuse me for weird English, I do not really know English.
            Thank you very much for your help!

            ThetaDevT Offline
            ThetaDevT Offline
            ThetaDev
            wrote on last edited by
            #5

            @krisztian
            Hi krisztian,
            the singleLED board - as its name suggests - features only one LED output. If you want to have a setup with multiple LED strips you need to design a board with multiple outputs. I have already designed a board with 4 outputs, but I haven't built it.

            In terms of software you need to register multiple sensors in your program like this:

            #define numCh 4 //the number of outputs
            
            const byte ledPins[] = {9,6,5,3};
            byte ledLevel[numCh];
            boolean ledDimWay[numCh];
            
            //in the setup function request the dim levels from the gateway
            for(byte i=0; i<numCh; i++) request(i, V_DIMMER);
            
            //in the presentation function register multiple lights
            for(byte i=0; i<numCh; i++) present(i, S_DIMMER);
            
            //if you receive a signal, you need to check for the sensor id
            setLED(message.sensor, requestedLevel);
            
            //to set the LED level (function: setLED) you need to use the sensor id to determine brightness and pin
            //Fade LED to set level
              int delta = (level - ledLevel[child]) < 0 ? -1 : 1;
            //Write to LED
            analogWrite(ledPins[child], map(ledLevel[child],0,100,0,255));
            

            I will probably publish the whole code once I have built and tested the 4LED controller (i call it "MySensors rainbowLED")

            Hope I could help you
            ThetaDev

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


            14

            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