Greetings, back playing with some PIC's
I have some 10W LED's from RobG, that uses a PWM signal, but it uses ground to disable the color, it's a BRG, at initial power all 3 LED's are on 100%, if I ground Blue, Red or Green (or all of the above) it changes color.
I was wondering if the PIC code utilizing "#define OUTPUT_NEGATIVE_TRUE" would give me that same effect or not. What I'm seeing and not sure if it's just bad programming on my part, is that using a Ren48LSD, I'm seeing 12v at all the striped Cat5 pairs without any signal and nothing on the solid cat 5 pairs. Now with the normal Ren DC PWM code I'm seeing the +12v on the striped wires and seeing GND be provided on the color strand when I tell the ren to turn on a channel.
I'm wondering inside the PIC is #define OUTPUT_NEGATIVE_TRUE" suppose to reverse this behavior or what exactly is it suppose to be doing. Just trying to see if the Ren48LSD can be modified to run these type of PWM cards or not. Obviously the Ren48LSD is running PWM pic software as standard
"#define PWM_build 1 – change from '0'#define DC_build 1 – change from '0'
#define CTR_LOCKOUT 1 – change from '15'"
But the question is what does the OUTPUT_NEGATIVE_TRUE do?
Thanks
Tory
Essentially, it just inverts the output of the PIC. When driving SSRs we normally put out an active LOW (sink) to the SSRs (or OUTPUT_NEGATIVE_TRUE). With the Ren48LSD, we are driving NPN transistors so we need an active HIGH (source) to turn them on (not OUTPUT_NEGATIVE_TRUE). I thought about your PM earlier and actually, you should not have to change this as the Ren48LSD is already an active LOW driver at the output - you should be able to connect it directly to RobG's board to drive the 10W LEDs. You will want a 5v DC IN 1 with the bypass setting. The Ren48LSD can drive SSRs directly just like any other non-SSR board (like the Ren64).
edit - - nope sorry - forgot - RobG's board is active HIGH - that is unfortunate as none of the non-SSR boards do that... Try enabling the OUTPUT_NEGATIVE_TRUE and see if it works.
budude wrote:Essentially, it just inverts the output of the PIC. When driving SSRs we normally put out an active LOW (sink) to the SSRs (or OUTPUT_NEGATIVE_TRUE). With the Ren48LSD, we are driving NPN transistors so we need an active HIGH (source) to turn them on (not OUTPUT_NEGATIVE_TRUE). I thought about your PM earlier and actually, you should not have to change this as the Ren48LSD is already an active LOW driver at the output - you should be able to connect it directly to RobG's board to drive the 10W LEDs. You will want a 5v DC IN 1 with the bypass setting. The Ren48LSD can drive SSRs directly just like any other non-SSR board (like the Ren64).edit - - nope sorry - forgot - RobG's board is active HIGH - that is unfortunate as none of the non-SSR boards do that... Try enabling the OUTPUT_NEGATIVE_TRUE and see if it works.
Thanks Brian,
didn't want to bug you again 🙂 I tried the output_negative_true and didn't see a difference. I'm going to try again (as I was not trusting that my PICS programmed correctly (had to find the pickkit2 and then tried with the new MAC software etc.etc.etc) bahh anyways. I'll give it another go, I've created a Cat 5 cable with a single end and the other side has the wires splayed out so that i can easily test what I'm getting on what. But what I saw initially was that with the output negative set, I still saw 12v on the striped wires but didn't notice anything on the solid wires (thus I was thinking that maybe my hex or PIC code was bad)
Tory
That doesn't seem to do anything actually. Was expecting my rainbow floods to turn on immediately with powering up the Ren48LSD but that's not happening with the Output negative true. I still see +12v on the striped strands but I'm not really seeing anything on the solids. Where as with this commented out, I get +12v on the striped wires and when I turn the channel on (via HLS, through the E682, I get a solid Ground on the corresponding solid wire.
So I'm confused a bit, while the behavior changes, if it's not going to give me a ground at all, not sure how it can work :)...
Oh well worth the trial..
Tory
I don't know what 'striped strands' means... The even pin numbers should go high/low for activity - the odd pins will stay solid DC+.
budude wrote:I don't know what 'striped strands' means... The even pin numbers should go high/low for activity - the odd pins will stay solid DC+.
Sorry Brian, just going by my ethernet cable colors. striped vs solid. I've not taken the time to map the colors to pin #'s. guess i should.
And My gut says High/low means that it provides Ground and then doesn't.
Tory
The solid color wires will be the even numbered pins 2, 4, 6 & 8. And the striped wires are the odd numbered pins 1, 3, 5 & 7.
Hope that helps.
What I'm citing is that that pins 1,3,5,7 are +12v as soon as they are plugged in, as you cite "the odd pins will stay solid DC+." The even or my solid colors will go high/low for activity.
1 White/Orange
2 Orange
3 White/Green
4 Blue
5 White/Blue
6 Green
7 White/Brown
8 Brown
But didn't see anything happen when I switched to the "OUTPUT_NEGATIVE_TRUE" on the even pins
Tory
Tory, I would guess that since the LSD board uses transistors to switch the ground on the even pins that changing the firmware to enable the OUTPUT NEGATIVE TRUE will not work at all. On that board the pic sends positive voltage through a current limiting resistor which causes the transistors to switch the ground and the even pins (or solid colors) will go low or grounded. The odd numbered pins (or the striped wires) will always be positive or high with what ever voltage you are supplying to DC In 1 and 2.
I'm not an expert on the LSD board but Brian will probably jump in and respond since he is the designer of the LSD board.
I don't think you can get the positive and negative outputs swapped without hacking up the board.
dvc2013 wrote:Tory, I would guess that since the LSD board uses transistors to switch the ground on the even pins that changing the firmware to enable the OUTPUT NEGATIVE TRUE will not work at all. On that board the pic sends positive voltage through a current limiting resistor which causes the transistors to switch the ground and the even pins (or solid colors) will go low or grounded. The odd numbered pins (or the striped wires) will always be positive or high with what ever voltage you are supplying to DC In 1 and 2.I'm not an expert on the LSD board but Brian will probably jump in and respond since he is the designer of the LSD board.
I don't think you can get the positive and negative outputs swapped without hacking up the board.
Thanks.. Starting to grasp this a bit better
Tory
