Go Down

Topic: Problem with multiple tlc5940 (Read 8 times) previous topic - next topic

quizz_kid

Thank you again Grumpy. Very nice of you to give me the basics put into context...

I got one question though. There´s two lines for each channel in the code, and you just explained the second one.

This line: if(tlc_addFade(1, 400, 0, millis()+ duration, millis()+ duration + duration)

What about the first one, can you explain that one too?

This line: if( tlc_addFade(1, 0, 400, millis(), millis()+ duration )



When I play around with it I can´t seem to make it work proper. Guess I´m just putting values in the wrong parameters.


Grumpy_Mike

The first one has the same parameters as the second. That is they do the same thing.
The values of these paramaters are reversed so first off it fades up from 0 to 400 and also it starts immediately and ends when the second fade begins.
the value given by millis() is now, you will see the time for the first fade to end is the time that the second fade starts.

quizz_kid


dt08bdk

Hi, I have also been using 2 tlc5940 chips for a project - The circuit I had working on breadboards (now PCB, SMD), this works for about 5 seconds and then cuts out. Each time I reset the circuit it seems to work for n even shorter amount of time. Any ideas what the problem is??

Here is my circuit: http://25.media.tumblr.com/ec3be9a6a01334bbfb18df174f7876d8/tumblr_ml50ra9Hsb1so48cuo1_1280.png

I am also beginning to think I may be using the wrong component for what I want to achieve.

I am working on a project where I want 5 to 10 RGB LEDs on a prototype. The main requirements of the LEDs is to create a range of colours (maybe 7 different colours) and create and efficient level of brightness.

The product is battery powered and the rest of the circuit is 3.3V, any suggestions?

Go Up
 

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.

Note: this post will not display until it's been approved by a moderator.
Name:
Email:

shortcuts: alt+s submit/post or alt+p preview