Reef Central Online Community
Premium Aquatics

Go Back   Reef Central Online Community > General Interest Forums > Do It Yourself
Blogs FAQ Calendar Mark Forums Read

Notices

User Tag List

Reply
Thread Tools
Unread 11/13/2012, 02:46 PM   #1
dwolson2
Registered Member
 
dwolson2's Avatar
 
Join Date: Feb 2011
Location: Rockledge Fl
Posts: 1,348
Converting the 0-10v signal from an APEX to a PWM signal

I am trying to convert the 0-10v signal from an APEX to a PWM signal to run some LDD drivers. Does anyone know what would be necessary to accomplish it? I would like to build the circuit myself if possible.

Also, I know Steve’s LED's has a convertor, but only for 4 channels (and for 45$)
I also know I could use an Adrino to run my lights, but I would really like to utilize my apex.


__________________
220 w/75 sump. 2 Kessil AP700s, 2- MP60, 2- MP40, 1-MP10(in sump/frag tank), Waveline DC 10000, Reef Octopus elite INT220, Radion G1(over sump/frag tank), Apex Wifi with a few extras

Current Tank Info: 220 in progress
dwolson2 is offline   Reply With Quote
Unread 11/13/2012, 03:03 PM   #2
barjam
Registered Member
 
Join Date: Jan 2002
Posts: 1,695
Quote:
Originally Posted by dwolson2 View Post
I am trying to convert the 0-10v signal from an APEX to a PWM signal to run some LDD drivers. Does anyone know what would be necessary to accomplish it? I would like to build the circuit myself if possible.

Also, I know Steve’s LED's has a convertor, but only for 4 channels (and for 45$)
I also know I could use an Adrino to run my lights, but I would really like to utilize my apex.
Sounds like you could rig up a cheap arduino board to do that with a little bit of software. I don't recall how many analog inputs they generally have or how many outputs. So a 5v wall wart, Arduino, and a hobby box and you are done. Overkill for sure though. Maybe you could use this to augment other Apex functionality.


barjam is offline   Reply With Quote
Unread 11/13/2012, 06:02 PM   #3
dwolson2
Registered Member
 
dwolson2's Avatar
 
Join Date: Feb 2011
Location: Rockledge Fl
Posts: 1,348
The manual says:
Microcontroller ATmega2560
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 54 (of which 15 provide PWM output)
Analog Input Pins 16
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA
Flash Memory 256 KB of which 8 KB used by bootloader
SRAM 8 KB
EEPROM 4 KB
Clock Speed 16 MHz


"Input Voltage (recommended) 7-12V /Input Voltage (limits) 6-20V "
So can it take in the 0-10v?


__________________
220 w/75 sump. 2 Kessil AP700s, 2- MP60, 2- MP40, 1-MP10(in sump/frag tank), Waveline DC 10000, Reef Octopus elite INT220, Radion G1(over sump/frag tank), Apex Wifi with a few extras

Current Tank Info: 220 in progress
dwolson2 is offline   Reply With Quote
Unread 11/13/2012, 10:24 PM   #4
screamingibis
Registered Member
 
Join Date: Oct 2011
Location: Maysville, GA
Posts: 375
There's a thread in RC where a couple guys made it work. Try the search function.


screamingibis is offline   Reply With Quote
Unread 11/14/2012, 06:18 AM   #5
mcgyvr
Registered Member
 
mcgyvr's Avatar
 
Join Date: Sep 2003
Location: North Carolina
Posts: 20,050
http://shop.stevesleds.com/Aquarium-...rs-harness.htm


__________________
Who me?
mcgyvr is offline   Reply With Quote
Unread 11/14/2012, 08:30 AM   #6
dwolson2
Registered Member
 
dwolson2's Avatar
 
Join Date: Feb 2011
Location: Rockledge Fl
Posts: 1,348
Quote:
Originally Posted by mcgyvr View Post
That was the second thing I pised in the OP. I was looking to DIY my own.

Quote:
Originally Posted by screamingibis View Post
There's a thread in RC where a couple guys made it work. Try the search function.
I've tried, if you know where it is, post it up.


__________________
220 w/75 sump. 2 Kessil AP700s, 2- MP60, 2- MP40, 1-MP10(in sump/frag tank), Waveline DC 10000, Reef Octopus elite INT220, Radion G1(over sump/frag tank), Apex Wifi with a few extras

Current Tank Info: 220 in progress
dwolson2 is offline   Reply With Quote
Unread 11/14/2012, 11:14 AM   #7
Jamesjkl
Registered Member
 
Join Date: Dec 2011
Posts: 82
Quote:
Originally Posted by dwolson2 View Post
The manual says:
Microcontroller ATmega2560
Operating Voltage 5V
Input Voltage (recommended) 7-12V
Input Voltage (limits) 6-20V
Digital I/O Pins 54 (of which 15 provide PWM output)
Analog Input Pins 16
DC Current per I/O Pin 40 mA
DC Current for 3.3V Pin 50 mA


"Input Voltage (recommended) 7-12V /Input Voltage (limits) 6-20V "
So can it take in the 0-10v?
The voltage that is being talked about here is the power supply not the dimmer you are going to be reading the voltage 0-10 with a input pin like a thermometer or such


Jamesjkl is offline   Reply With Quote
Unread 11/14/2012, 11:29 AM   #8
mcgyvr
Registered Member
 
mcgyvr's Avatar
 
Join Date: Sep 2003
Location: North Carolina
Posts: 20,050
I'm sure there are some PWM control IC's out there that could accomplish this without having to resort to a micro.. Too busy to look now.

Try googling "voltage controlled PWM modulator" or generator..


__________________
Who me?
mcgyvr is offline   Reply With Quote
Unread 11/14/2012, 11:41 AM   #9
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
you can get an arduino pro mini for like $10 on ebay. use a resistor voltage divider to half the input voltage and connect to one of the analog pins, then you just need a program to do an analog read, and then do an analog write to a digital pin designated as PWM. the digital pin output will be PWM, but 5 v. if you need it to be 10v PWM, then you can simply feed that to an OP amp. this can easily handle 4 channels for about $10. (plus cost of power supply to the arduino)


d0ughb0y is offline   Reply With Quote
Unread 11/14/2012, 12:40 PM   #10
dwolson2
Registered Member
 
dwolson2's Avatar
 
Join Date: Feb 2011
Location: Rockledge Fl
Posts: 1,348
Quote:
Originally Posted by Jamesjkl View Post
The voltage that is being talked about here is the power supply not the dimmer you are going to be reading the voltage 0-10 with a input pin like a thermometer or such
Ok, but can those inputs take in 10v?(quoted below that they only can take 5, but want to know if you have a different experience)
Quote:
Originally Posted by mcgyvr View Post
I'm sure there are some PWM control IC's out there that could accomplish this without having to resort to a micro.. Too busy to look now.

Try googling "voltage controlled PWM modulator" or generator..
I will look into this, but it appears as if I may be going with an adrino now.

Quote:
Originally Posted by d0ughb0y View Post
you can get an arduino pro mini for like $10 on ebay. use a resistor voltage divider to half the input voltage and connect to one of the analog pins, then you just need a program to do an analog read, and then do an analog write to a digital pin designated as PWM. the digital pin output will be PWM, but 5 v. if you need it to be 10v PWM, then you can simply feed that to an OP amp. this can easily handle 4 channels for about $10. (plus cost of power supply to the arduino)
Do i need to add the resisto voltage divider if I only send out 5v max from my apex? Is it more of a failsafe incase the apex sends out 10v(someone pushes the on for the VSP) or is it for controlability*or both.
The drivers I am planning on using have the following specs:
2.5 ~ 6VDC and 100 ~ 1KHz


After looking at the adrino, I am thinking of going big, with the Mega2560, then adding a touch screen so I can play with it as well(going to more than likely use the jardino code) Was thinking of making it the redundant controller for my apex. So I would add PH and temp probes. If an out of range condition existed, have the adrino email me(through a wireless card) Why have 2 controllers, in case one of the controllers froze, I would still be ok. I also thought about*although not sure if I can/how* having the adrino close a circuit going to the apex if there was an out of range condition(so if the temp was too high(and the temp probe on my apex went out) it would close a switch on my break out box, alerting the apex to power off the lights/heaters/etc.


__________________
220 w/75 sump. 2 Kessil AP700s, 2- MP60, 2- MP40, 1-MP10(in sump/frag tank), Waveline DC 10000, Reef Octopus elite INT220, Radion G1(over sump/frag tank), Apex Wifi with a few extras

Current Tank Info: 220 in progress
dwolson2 is offline   Reply With Quote
Unread 11/14/2012, 01:06 PM   #11
d0ughb0y
Registered Member
 
d0ughb0y's Avatar
 
Join Date: Mar 2008
Location: sf bay area
Posts: 5,165
I say start small and simple. solve the pwm problem first.
you will need to use voltage divider even if your apex output is 5v only. because that represents 50%. if you do not divide, then 5v becomes 100%. arduino pwm frequency is 500hz, so it will work for what you need.
building a full blown controller is not trivial.


d0ughb0y is offline   Reply With Quote
Unread 11/14/2012, 01:15 PM   #12
dwolson2
Registered Member
 
dwolson2's Avatar
 
Join Date: Feb 2011
Location: Rockledge Fl
Posts: 1,348
Quote:
Originally Posted by d0ughb0y View Post
I say start small and simple. solve the pwm problem first.
you will need to use voltage divider even if your apex output is 5v only. because that represents 50%. if you do not divide, then 5v becomes 100%. arduino pwm frequency is 500hz, so it will work for what you need.
building a full blown controller is not trivial.
I don't expect it to be. Its just a future plan(which is why I plan on getting the larger adrino from the get go)

I looked more into it, and I will need a voltage divider for sure. I'm not too worried about it, but I do like to keep the circuits as simple as possible(I say that but plan on running 2 controllers... yea I know)


__________________
220 w/75 sump. 2 Kessil AP700s, 2- MP60, 2- MP40, 1-MP10(in sump/frag tank), Waveline DC 10000, Reef Octopus elite INT220, Radion G1(over sump/frag tank), Apex Wifi with a few extras

Current Tank Info: 220 in progress
dwolson2 is offline   Reply With Quote
Unread 11/14/2012, 01:16 PM   #13
mcgyvr
Registered Member
 
mcgyvr's Avatar
 
Join Date: Sep 2003
Location: North Carolina
Posts: 20,050
discrete solution that should work.. I glanced it quickly
http://pcbheaven.com/circuitpages/Vo...PWM_Generator/

Or if you already plan to use an arduino its trivial to use the resistor divider to an analog input and use that to control a PWM output pin controlling a mosfet/transistor with a 10V supply.


__________________
Who me?
mcgyvr is offline   Reply With Quote
Unread 03/14/2013, 12:39 AM   #14
frogg21
Registered Member
 
frogg21's Avatar
 
Join Date: Jan 2009
Location: Fragstaff, AZ
Posts: 341
"Also, I know Steve’s LED's has a convertor, but only for 4 channels (and for 45$)
I also know I could use an Adrino to run my lights, but I would really like to utilize my apex. "
I'm in the same boat

Here's the function http://arduino.cc/en/Tutorial/AnalogInOutSerial
the benefit of buying your own arduino is you're not limited to 4 channels.. (and its cheaper)

I'm not getting why it's necessary to use a resistor to reduce the signal in half from the Apex, why can't you just set up your Apex to max out at half intensity which would be 5 volts? Then just read that value from one pin and write it to a pwm pin with the 'map' function above..?

from the Apex manual:
RAMP PROFILE TYPE
The Ramp Profile is used to ramp the port output voltage (up or down) from one
intensity to another over a period of time. It is typically used to ramp lights on of
off but can also be used with pumps to simu
late varying intensity of tidal currents
for example.
Ramp Time:
period in minutes over which the ramp should occur.
Start Intensity:
the starting intensity in percent
End Intensity:
the ending intensity in percent
We just keep this under 5 volts, aka 50%



Last edited by frogg21; 03/14/2013 at 12:47 AM.
frogg21 is offline   Reply With Quote
Unread 03/14/2013, 12:32 PM   #15
dwolson2
Registered Member
 
dwolson2's Avatar
 
Join Date: Feb 2011
Location: Rockledge Fl
Posts: 1,348
If you accidentally turned it on, or the APEX were to screw up and go over 50%, you could fry the APEX or the arduino or both.


__________________
220 w/75 sump. 2 Kessil AP700s, 2- MP60, 2- MP40, 1-MP10(in sump/frag tank), Waveline DC 10000, Reef Octopus elite INT220, Radion G1(over sump/frag tank), Apex Wifi with a few extras

Current Tank Info: 220 in progress
dwolson2 is offline   Reply With Quote
Unread 05/11/2013, 09:52 AM   #16
kriv4o
Registered Member
 
kriv4o's Avatar
 
Join Date: Aug 2011
Location: Ocean Pines, MD
Posts: 509
Has anybody used Steve's convertor with LDD drivers? I contacted them and the answer I got is that the MeanWell LDDs have inverted PWM signal(not really sure what that means) and that their convertor can not be used with those drivers. Any info and/or link greatly appreciated.
P.S I tried the search function but this is the only thread I got.


__________________
40b DT, with a 20l DIY sump
10g clam lagoon plumbed together with^
10g stand alone NANO,
JBJ 24g NanoCube rescue project
kriv4o is offline   Reply With Quote
Unread 05/11/2013, 11:22 AM   #17
O2Surplus
Registered Member
 
Join Date: Aug 2011
Location: "The Land of Fruits & Nuts"
Posts: 879
Quote:
Originally Posted by kriv4o View Post
Has anybody used Steve's convertor with LDD drivers? I contacted them and the answer I got is that the MeanWell LDDs have inverted PWM signal(not really sure what that means) and that their convertor can not be used with those drivers. Any info and/or link greatly appreciated.
P.S I tried the search function but this is the only thread I got.

Somebody at SteveLeds doesn't know what they're talking about. The MeanWell LDD does not use an inverted PWM signal. "Frogg21" and I are working on a 10V Analog/ 5V PWM convertor for the APEX right now and will post the plans and software for it, just as soon as we're done. Here's a photo of the convertor that we've created. The cost should be less than $20 for anyone that wants to build one for themselves.




Last edited by O2Surplus; 05/11/2013 at 11:28 AM.
O2Surplus is offline   Reply With Quote
Unread 05/11/2013, 11:28 AM   #18
kriv4o
Registered Member
 
kriv4o's Avatar
 
Join Date: Aug 2011
Location: Ocean Pines, MD
Posts: 509
Finally some good news. Keep us posted.
Officially adding this in the projects pile
Would your converter be useable with ReefKeeper controllers?


__________________
40b DT, with a 20l DIY sump
10g clam lagoon plumbed together with^
10g stand alone NANO,
JBJ 24g NanoCube rescue project
kriv4o is offline   Reply With Quote
Unread 05/11/2013, 11:45 AM   #19
O2Surplus
Registered Member
 
Join Date: Aug 2011
Location: "The Land of Fruits & Nuts"
Posts: 879
Quote:
Originally Posted by kriv4o View Post
Finally some good news. Keep us posted.
Officially adding this in the projects pile
Would your converter be useable with ReefKeeper controllers?

I'm not sure? It's designed to be compatible with any lighting controller than outputs a 10 Volt analog control signal- if that answers your question?


O2Surplus is offline   Reply With Quote
Unread 05/11/2013, 11:50 AM   #20
kriv4o
Registered Member
 
kriv4o's Avatar
 
Join Date: Aug 2011
Location: Ocean Pines, MD
Posts: 509
It does kinda lol. I guess there is only one way to figure that one out.......


__________________
40b DT, with a 20l DIY sump
10g clam lagoon plumbed together with^
10g stand alone NANO,
JBJ 24g NanoCube rescue project
kriv4o is offline   Reply With Quote
Unread 05/13/2013, 08:08 AM   #21
dwolson2
Registered Member
 
dwolson2's Avatar
 
Join Date: Feb 2011
Location: Rockledge Fl
Posts: 1,348
That is a bit of a teaser picture you know....


__________________
220 w/75 sump. 2 Kessil AP700s, 2- MP60, 2- MP40, 1-MP10(in sump/frag tank), Waveline DC 10000, Reef Octopus elite INT220, Radion G1(over sump/frag tank), Apex Wifi with a few extras

Current Tank Info: 220 in progress
dwolson2 is offline   Reply With Quote
Unread 05/13/2013, 03:12 PM   #22
ToTaLCHaoS13
Registered Member
 
ToTaLCHaoS13's Avatar
 
Join Date: Feb 2006
Location: Cartersville, GA
Posts: 379
Tagging along...!


ToTaLCHaoS13 is offline   Reply With Quote
Unread 05/13/2013, 03:22 PM   #23
ToTaLCHaoS13
Registered Member
 
ToTaLCHaoS13's Avatar
 
Join Date: Feb 2006
Location: Cartersville, GA
Posts: 379
Just found this...

LCM-60DA - 60W Multiple-Stage Output Current LED Power Supply by Meanwell

No idea when it will be available to purchase but looks promising.


ToTaLCHaoS13 is offline   Reply With Quote
Unread 08/15/2013, 12:41 AM   #24
skydancer
Registered Member
 
skydancer's Avatar
 
Join Date: May 2004
Location: Dallas, Texas
Posts: 438
Quote:
Originally Posted by O2Surplus View Post
Somebody at SteveLeds doesn't know what they're talking about. The MeanWell LDD does not use an inverted PWM signal. "Frogg21" and I are working on a 10V Analog/ 5V PWM convertor for the APEX right now and will post the plans and software for it, just as soon as we're done. Here's a photo of the convertor that we've created. The cost should be less than $20 for anyone that wants to build one for themselves.
Any more updates? Does the board support multiple channels? Looks like it does 4, is that true?


__________________
...You are free... because of the BRAVE...

Current Tank Info: 300G reef, 800lb LR, APEX, Deltec AP702, LEDs, PF601, KM500, UV, RODI, Ozone, carbon, Biopellets
skydancer is offline   Reply With Quote
Unread 08/15/2013, 06:58 AM   #25
O2Surplus
Registered Member
 
Join Date: Aug 2011
Location: "The Land of Fruits & Nuts"
Posts: 879
Quote:
Originally Posted by skydancer View Post
Any more updates? Does the board support multiple channels? Looks like it does 4, is that true?
Yep- 4 channels. I've built and released about 16 of these little convertors to users here and on other Forums, and from what I've heard, they work quite well.


O2Surplus is offline   Reply With Quote
Reply

Thread Tools

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 On



All times are GMT -6. The time now is 10:19 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.
Powered by Searchlight © 2022 Axivo Inc.
Use of this web site is subject to the terms and conditions described in the user agreement.
Reef CentralTM Reef Central, LLC. Copyright ©1999-2022
User Alert System provided by Advanced User Tagging v3.3.0 (Pro) - vBulletin Mods & Addons Copyright © 2022 DragonByte Technologies Ltd.