Pages: 1 [2] 3   Go Down
Author Topic: 12v RGB LED Strand Button configuratoin  (Read 2148 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok....so, i'm grateful I ordered two arduino's (the nano v3.0 and the uno with the starter kit)  I plugged the pins that were in the uno into the nano (2 to 2 5v to 5v and gnd to gnd on the nano)...pushed the button press with serial count output and it worked instantly.  maybe there is something wrong with my arduino uno?  or maybe my atmega chip on the uno?  ugh...i'll have to do consistency checks on it...but at least I have THAT part figured out.


so, in your opinion (which is actually very helpful and highly valuable and if anything comes of it I'll be sure to remember in an appropriate gracious form).   Would you suggest a "physical" switch between the red and the green?  By use of mosfets (like the AND and the NOT gates similar to that of a solar yard light)  or should I use the arduino for this?  I want to learn more on the arduino anyway for build of a smaller controller.)   I can use a car usb adapter to control the voltage output and keep it at the 5v 1-2 amp (really 1amp max would be all i would need i would assume to act as a signal).

thank you again for this.  I felt like a moron not even being able to do button test.  >_<
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

ok, so pin 2 connects to pin 4 on the atmega.  top and bottom of the atmega (solder points) connect just fine.  so maybe the atmega internal is bad?  however, when connected via usb the 5v output pin only pushes out 4.5v.   it sits at 4.8v from the power pints and 2.44v from the data pins of the usb (after connection is made to the arduino uno).  however, that is what the mosfet and other components are for on the board...boost it and keep it at 5v.  however, i don't think that is directly the problem.  any suggestions on how to debug if the atmega is actually bad or not? 

I'll play with the little guy for now instead since the big one isn't responding well.  smiley-sad
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

oh man!  that was SO much faster after realizing my uno board was bad.  >_<   so freaking excited!  I got the red and green to power switch in a few small lines of code, got everything else good and running smoothly, minus one small detail.  the red, green, and blue lights are on simply when I supply voltage to the board.  they aren't being keyed on.  so i'm assuming something somewhere is giving them voltage from the main power supply.  I'll have to trace that around.  what do you think would cause these lights to still draw power without the signal call from the mosfets?
I'm using this diagram for powering the leds
http://www.jerome-bernard.com/blog/2013/01/12/rgb-led-strip-controlled-by-an-arduino/

pulling out the mosfet I see that the power still goes through...maybe I have a dirty ground somewhere?  i dunno, i'll trace it out tomorrow.  i'm just excited that i have the red and green doing what I want.  smiley-kitty  ready to prep for christmas colors too!  smiley  lol  >_<
Logged

Texas
Offline Offline
Edison Member
*
Karma: 25
Posts: 1298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I have been out of pocket for a couple days, and have not been available to reply.
You think the uno is bad. Did you try some basic examples like blink?

Your led strip stays on without the control pins?
Mystery to me, maybe that strip is designed to do that. Not all strips are created equal. Or, maybe you have wired it wrong?

Logged

Good luck, Jack

Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

no, strip doesn't do that when it is connected to micro led controller (IR).  only on my board.  maybe I need a diode?  or to move a resistor somewhere or something?  without the mosfets it still lights up with only power.  (it is very dim...but very noticeable still...plus,a draw is a draw that I don't need when supposed to be "off"

I did some very basic tests that required input for output.  it's the input that is having a problem.  so the button push test for instance.  it should yield a serial print to the system...it does not.
http://arduino.cc/en/Tutorial/ButtonStateChange?action=sourceblock&num=1

but on the nano it does just fine.  smiley-sad   maybe I need to change out the atmega chip?
Logged

Texas
Offline Offline
Edison Member
*
Karma: 25
Posts: 1298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well, I still suggest that you try the blink example. That is about as simple as it gets.

For the led strip lighting dimly. It may have its own amplifiers, and with an open input it could do that. May try putting a pull down (or pull up) resistor on the line. About 10k should be a good range. Put one side of resistor to the ground, and the other side to the input for that color.

Logged

Good luck, Jack

Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

it will control my rgb strip just fine so long as it has the commands to do what it is supposed to do without influence.  but receiving a signal  (on pin 2 at least) doesn't work.  I should try other pins just to see if it's only that pin.  but I think maybe the atmega is damaged in some internal points? 

so, I do have 10k ohm resistors on each signal feed and that does nothing.  the Collector pin (per the drawing included in the prior links).  :/  I'll have to look around and see if others are having this problem.  also, my red isn't near as  bright as the strip is on the other IR mini driver.  :/     

however, this is extremely exciting that it is working at least.  smiley
Logged

Texas
Offline Offline
Edison Member
*
Karma: 25
Posts: 1298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Glad you are getting some results. Keep looking.
Logged

Good luck, Jack

Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks.  smiley  i'll also go see if I can find some type of voltage regulator (something that takes a range of voltage and drops it to 5v).  I believe I've seen some mosfet looking types before that do this.  this is fun.  always good to see when something goes through successfully.  smiley
Logged

Texas
Offline Offline
Edison Member
*
Karma: 25
Posts: 1298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Maybe something like this?
http://www.ebay.com/itm/CAR-LED-Waterproof-DC-DC-Buck-Converter-12V-to-5v-3A-/261158898952
Logged

Good luck, Jack

Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

why something so bulky?  when I can use a voltage regulator about the size of a mosfet that drops it down and then stabilize the current with caps?   much smaller, more efficient, and can fit into a smaller box.  smiley   i found some regulators already too.  smiley
Logged

Texas
Offline Offline
Edison Member
*
Karma: 25
Posts: 1298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

There are lots of ways to get voltage regulation. If you have a preference then go with it.
I just like these kind because it seems they are more efficient, and have better regulation, can be hooked up with out a circuit board and solder.
Logged

Good luck, Jack

Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

this is very true.  i'm a minimalist and I like small.  smiley-kitty  i'll have to send you pics when i'm done.  and when I do get something comfortable working i'll be sure to share with you.  smiley-kitty  (if you are interested).  smiley  right now I have a small regulator that works nicely for testing.  smiley
Logged

Texas
Offline Offline
Edison Member
*
Karma: 25
Posts: 1298
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Sure I am interested. Even tho I try to help people on the forum, I also learn a lot in the process. I am all ears. LOL
Logged

Good luck, Jack

Offline Offline
Newbie
*
Karma: 0
Posts: 41
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

smiley-kitty  awesome!  smiley-kitty  so, random question pertaining to my uno.  my 5v is outputing less than 5v..  it's about 4.6v  is this normal?
Logged

Pages: 1 [2] 3   Go Up
Jump to: