💬 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
-
💬 ESP8266 Gateway
OpenHardware.io • 18 Feb 2018, 21:52 • openhardware.io 21 Mar 2018, 06:31 -
💬 MDMSNode "Lighting"
OpenHardware.io • 7 Sept 2016, 19:43 • openhardware.io 30 Mar 2019, 11:22 -
Best dimmable countertop lights?
Hardware • 23 Mar 2016, 21:10 • mfalkvidd 25 Mar 2016, 19:37 -
Which presentation to use for a Turbidity Sensor?
My Project • 19 Mar 2020, 02:37 • Shiny 19 Mar 2020, 02:37 -
💬 Button size radionode
OpenHardware.io • 17 May 2016, 17:49 • openhardware.io 19 Oct 2020, 08:53 -
Multiple RFM69 networks / gateways in range
General Discussion • 11 Apr 2023, 19:02 • ferro 12 Apr 2023, 20:10 -
All in one board with apple phone charger brick wrap.
Hardware • 13 Jan 2015, 16:58 • destos 18 Apr 2015, 14:53 -
Can't get ESP8266 gateway to work anymore
My Project • 8 Aug 2021, 22:17 • Zwer2k 12 Aug 2021, 09:05