You are not registered yet. Please click here to register!


 
 
plc storereviewsdownloads
This board is for PLC Related Q&A ONLY. Please DON'T use it for advertising, etc.
 
Try our online PLC Simulator- FREE.  Click here now to try it.

---------->>>>>Get FREE PLC Programming Tips

New Here? Please read this important info!!!


Go Back   PLCS.net - Interactive Q & A > PLCS.net - Interactive Q & A > LIVE PLC Questions And Answers

PLC training tools sale

Reply
 
Thread Tools Display Modes
Old February 28th, 2019, 08:14 PM   #1
ASF
Lifetime Supporting Member
Australia

ASF is offline
 
Join Date: Jun 2012
Location: Australia
Posts: 2,820
OT: RGB LED controller with digital input

A long way OT but it will be attached to a PLC, I promise!

I'm after an RGB LED controller to control the colour of some LED strip lighting. Controllers like this one abound for very low prices, but they're all using a phone app or a remote control to select the colour. I need to have two preset colours (and not just "red and green", quite specific RGB colours), and be able to switch between them with a digital signal.

Long shot, I know, but has anyone ever come across such a device?
  Reply With Quote
Old February 28th, 2019, 09:44 PM   #2
Geoff White
Member
Australia

Geoff White is offline
 
Join Date: Oct 2005
Location: Brisbane
Posts: 330
Some of the wifi rgb controllers expose a sockets interface you can send commands to.

It's not exactly digital but it sure is commodity.
  Reply With Quote
Old February 28th, 2019, 10:15 PM   #3
ASF
Lifetime Supporting Member
Australia

ASF is offline
 
Join Date: Jun 2012
Location: Australia
Posts: 2,820
Do you have an example of one handy?
  Reply With Quote
Old February 28th, 2019, 11:37 PM   #4
Geoff White
Member
Australia

Geoff White is offline
 
Join Date: Oct 2005
Location: Brisbane
Posts: 330
I used to use one for miilight bulbs (Easybulb). The bulbs used 2.4gzh radio for control and had little rf remotes to control them. There was a controller that would connect to your wifi and would you could connect to it from an app on your phone. The phone used socket comms to talk to the bridge that would send the rf signals to the bulbs.

Have a look for milight wifi box. There are people writing interfaces for home automation hacking into them. I imagine there is something similar for items like:
https://www.aliexpress.com/item/16Mi...E&gclsrc=aw.ds

Aha - the QR is Magic Home and there are projects to run them.
https://github.com/beville/flux_led
  Reply With Quote
Old March 1st, 2019, 02:45 AM   #5
Caveman
Member
United States

Caveman is offline
 
Caveman's Avatar
 
Join Date: May 2002
Location: Cadiz, Kentucky
Posts: 195
How about one of these

Banner

BNI IOL-803-102-Z036 Light tower

The demonstration was impressive.
__________________
Farmer PLC Tech
  Reply With Quote
Old March 1st, 2019, 07:32 AM   #6
Aabeck
Member
United States

Aabeck is offline
 
Aabeck's Avatar
 
Join Date: Feb 2013
Location: Detroit
Posts: 1,180
All the RGB strips have 4 pin connectors.

Red
Green
Blue
Common

All those controllers do is turn one, two or all 3 on and to get more colors vary the voltages to each color. Years ago for a hobby club we were using tri-color LED's for signal lamps. Positive DC was red, negative DC green and AC was sort of yellow, but run the AC through 2 opposing diodes and a specific resistor on each diode the yellow could be tweaked.

Try putting a potentiometer on each color lead and adjusting until you get the colors you want, then put in resistors in, or leave the pots, and use 2 digital outputs to send the DC through the resistors for the color you want. So you don't get power going to the other color either put in diodes or run them though 3+ pole relays.
__________________
Never underestimate the quality of idiots that will be running your machines
http://aabeck.com
  Reply With Quote
Old March 1st, 2019, 08:51 AM   #7
tarik1978
Member
Morocco

tarik1978 is offline
 
Join Date: Mar 2010
Location: casablanca
Posts: 445
You can build your own controller like this one
  Reply With Quote
Old March 3rd, 2019, 04:15 PM   #8
ASF
Lifetime Supporting Member
Australia

ASF is offline
 
Join Date: Jun 2012
Location: Australia
Posts: 2,820
Quote:
Originally Posted by tarik1978 View Post
You can build your own controller like this one
Thanks Tarik - after some further reading, I think we're looking at doing exactly that.
  Reply With Quote
Old March 4th, 2019, 07:23 AM   #9
Mad_Poet
Member
United States

Mad_Poet is online now
 
Join Date: Feb 2017
Location: Virginia
Posts: 288
If you are going to use a PLC . . .
You might consider using three analog output signals.
Then the PLC program could change the output volts
for the different LED's to change the color.
Poet.
  Reply With Quote
Old March 4th, 2019, 08:16 AM   #10
Dhitzfelder
Member
United States

Dhitzfelder is offline
 
Dhitzfelder's Avatar
 
Join Date: Feb 2019
Location: Montrose, Colorado
Posts: 24
Quote:
Originally Posted by Mad_Poet View Post
If you are going to use a PLC . . .
You might consider using three analog output signals.
Then the PLC program could change the output volts
for the different LED's to change the color.
Poet.
and this way, if you need to add functionality in the future, such as a third, fourth, etc color, you don't have to make any hardware changes...
  Reply With Quote
Old March 4th, 2019, 03:56 PM   #11
ASF
Lifetime Supporting Member
Australia

ASF is offline
 
Join Date: Jun 2012
Location: Australia
Posts: 2,820
Quote:
Originally Posted by Mad_Poet View Post
If you are going to use a PLC . . .
You might consider using three analog output signals.
Then the PLC program could change the output volts
for the different LED's to change the color.
Poet.

Now that's an idea...
  Reply With Quote
Old March 4th, 2019, 05:51 PM   #12
Pablox
Member
United Kingdom

Pablox is offline
 
Join Date: Oct 2010
Location: Home
Posts: 58
Have you considered an Arduino, only a few dollars and millions of options. I imagine once you got your exact colour, you could substitute fixed resisters, output to plc etc.
eg
https://www.youtube.com/watch?v=hXt2JIHCUu8
  Reply With Quote
Old March 7th, 2019, 06:35 PM   #13
onephatkiller
Member
United States

onephatkiller is offline
 
Join Date: Feb 2015
Location: Chicago, IL
Posts: 2
Intensity of the individual colors are not controlled by voltage.
It's a little something called pulse width modulation.
If you need two colors, and two only, get a three pole double throw relay and switch between two cheap led controllers.
Never over complicate things.
  Reply With Quote
Old March 7th, 2019, 06:48 PM   #14
ASF
Lifetime Supporting Member
Australia

ASF is offline
 
Join Date: Jun 2012
Location: Australia
Posts: 2,820
Quote:
Originally Posted by onephatkiller View Post
Intensity of the individual colors are not controlled by voltage.
It's a little something called pulse width modulation.
If you need two colors, and two only, get a three pole double throw relay and switch between two cheap led controllers.
Never over complicate things.
That's actually a good idea, but now that I've floated the idea of analog control and 16,777,216 colours, the customer has decided that we should go that way. I've even found an off the shelf controller that takes 3x 0-10V in and spits out PWM for the RGB LED light strips. Winning!


One other *possibility* is something like this 12 channel DMX controller which would give me infinite control of four separate LED strips, and in the process blow my customer's freaking mind! Has anyone successfully interfaced a PLC to a DMX controller before? How difficult was it? I'm using a 1769-L18ER-BB1B, so my options are Ethernet, or a 1734-ASC module. Or, there's a Windows 10 SCADA PC in the picture running an Ignition SCADA application, maybe that could do some interfacing?
  Reply With Quote
Old March 7th, 2019, 07:47 PM   #15
g.mccormick
Member
United States

g.mccormick is online now
 
Join Date: Jul 2012
Location: IN
Posts: 565
Opto22 has a modbus slave LED dimmer. It will do several different serial comms protocols, but modbus is one.

You could perhaps use 3 of these (One each color).

https://opto22.com/products/led-spcv-lv100w
  Reply With Quote
Reply
Jump to Live PLC Question and Answer Forum

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Topics
Thread Thread Starter Forum Replies Last Post
Digital offset on analog input wildcatherder LIVE PLC Questions And Answers 5 December 22nd, 2016 03:36 PM
Does any relation between Sinking/Sourcing PLC inputs and NPN/PNP sensors? Tofo LIVE PLC Questions And Answers 27 December 11th, 2013 01:26 PM
Fanuc 90/30 HMI programming CalG LIVE PLC Questions And Answers 128 February 27th, 2013 12:11 AM
AB digital fast & normal input? theripley LIVE PLC Questions And Answers 6 August 24th, 2012 01:21 AM
1756-PLS / Resolver / Digital input grison LIVE PLC Questions And Answers 6 April 13th, 2004 12:16 AM


All times are GMT -5. The time now is 09:03 AM.


.