💬 MySensors singleLED
-
-
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.
-
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
-
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!
-
@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
Suggested Topics
-
💬 MySensors InCan double light switch
OpenHardware.io • 13 Feb 2019, 12:50 • openhardware.io 4 Jan 2020, 13:45 -
💬 NModule Two buttons capacitive touch switch shield
OpenHardware.io • 29 May 2017, 18:33 • openhardware.io 7 Jun 2017, 13:07 -
💬 Very narrow and minimal switch node
OpenHardware.io • 9 Feb 2016, 22:22 • openhardware.io 14 Nov 2016, 20:14 -
💬 Itron Aquadis+ watermeter sensor V1.0
OpenHardware.io • 14 Jan 2016, 18:12 • openhardware.io 14 Jan 2016, 18:12 -
Do we have any option to bridge NRF24L01 and RFM69?
General Discussion • 29 Aug 2018, 13:57 • jkandasa 20 Feb 2019, 20:25 -
💬 USB RF Gateway
OpenHardware.io • 6 Sept 2019, 11:44 • openhardware.io 6 Feb 2020, 11:36 -
💬 RFM69 2 relay board
OpenHardware.io • 24 Jan 2017, 13:18 • openhardware.io 28 Jan 2018, 12:49 -
Domoticz Gateway
Domoticz • 8 Apr 2021, 19:58 • WiktorDIY 11 Apr 2021, 19:32