Sounds interesting, definitely interested!I use a shield from Sparkfun, not all pins are exposed there (notably VPRG), but for now it'll do. I actually wanted to ask if there is anyone interested in code like this. Maybe I should just put it on Sourceforge?
TLC5940
#21
Posted 09 May 2012 - 10:49 AM
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#22
Posted 09 May 2012 - 11:29 AM
I'm working on a driver for the Tlc5940 for Netduino. I use the PWM ports from the Netduino to control the BLANK and GSCLK cycles, and the output looks pretty smooth to me, no flicker whatsoever. I have a GSCLK period of 2 microseconds, BLANK on 4096 times that, so roughly 10 ms per PWM cycle. Communication on the SPI port runs at about 40 MHz (if I can believe the documentation ), I don't see any noticable interruptions when switching the signals.
I use a shield from Sparkfun, not all pins are exposed there (notably VPRG), but for now it'll do. I actually wanted to ask if there is anyone interested in code like this. Maybe I should just put it on Sourceforge?
...mmmmmmm... why do you think I could be interested? :-))))))))))
Apart from jokes, I already thank you so much, moreover, I hope you can share the schematic too, I'm only a software guy, and I found a lot of problems to wire cables and components correctly...
I'm *really* waiting for you! :-)
Thanks again
Andrea
P.S. You can also attach files just here... :-)
#23
Posted 09 May 2012 - 02:11 PM
P.S. You can also attach files just here... :-)
Ok, let's start with that. I think the driver will need some work still. I'll post code and pictures when I get back home tonight.
#24
Posted 09 May 2012 - 06:54 PM
Ok, let's start with that. I think the driver will need some work still. I'll post code and pictures when I get back home tonight.
I hope to find you online... in which timezone are you? What do you mean by 'tonight'? :-)
Andrea
#25
Posted 09 May 2012 - 06:55 PM
#26
Posted 09 May 2012 - 07:11 PM
#27
Posted 09 May 2012 - 07:16 PM
#28
Posted 09 May 2012 - 07:29 PM
#29
Posted 09 May 2012 - 07:42 PM
Goedenavond@Andrea: Netherlands. Can't seem to find how to edit that in my profile :/ I was at work this afternoon, this is just hobbying arounf at home.
You can edit your profile here: http://forums.netdui...rcp&tab=members
According to the schematic, it's not such a difficult set-up.In the datasheet, it says that the resistor to ground programs the max current per channel. On my board it's apparently about 2k2. Do you have the datasheet? I think the 2k2 gives about 20 mA max current.
The 2k2 resistors are, according to the description "to make this board suitable for use with servos".
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#30
Posted 09 May 2012 - 08:14 PM
Goedenavond
According to the schematic, it's not such a difficult set-up.
The 2k2 resistors are, according to the description "to make this board suitable for use with servos".
This is really strange: at the end of page 14 of the datasheet (http://www.ti.com/li...ink/tlc5940.pdf) there is the formula to use for the resistor.
Iout = 39.06 / R (simplified)
with the range of 5mA and 120mA.
I use a 100 Ohm resistor (but I could never light any led!) giving an output of 39mA, with your resistor you should have 0.017mA, way under the lower limit.
Are you sure there are no other components wired to Iref?
Andrea
#31
Posted 09 May 2012 - 08:16 PM
#32
Posted 09 May 2012 - 08:22 PM
#33
Posted 09 May 2012 - 09:09 PM
#34
Posted 09 May 2012 - 09:10 PM
@nzc: why did you say vprg is not wired out? From the pictures and the schematic, it looks just right there!
Andrea
It's wired, but you cannot set a value directly on it on the Sparkfun board. It's not wired to a terminal. There are a bunch of small holes, I guess I could solder it to one of those if needed. I just hooked it up to a small scope, and the output looks fine to me. I am hooking up an RGB led to it. I see red and blue ok, but somehow the signal collapses quite a bit when the LED is connected. Oh well, that's for tomorrow. Off to bed for me
#35
Posted 09 May 2012 - 09:14 PM
@NZC
I thank you really much, because at last I found my problem: one of the wires I use on my breadboard was partially broken, or better, could not make a right contact on the netduino. Since I saw that the led pulsed erratically, I started to change the wires one by one, and I found the faulty one. Once I changed it, everything was ok!!! :-((((((((((
If you didn't gave me all the indications to have a functioning solution (thanks to the schematic on sparkfun too!) I could never think to a faulty wire! :-)
Andrea
NP! Happy to help. I'll brush up the code a bit and put it on sourceforge or so. Isn't there a central repo to place modules like this?
#36
Posted 09 May 2012 - 09:28 PM
#37
Posted 09 May 2012 - 09:30 PM
Not a central one, I manage a repo myself at www.netmftoolbox.com though. Setting up a codeplex repo isn't difficult at allNP! Happy to help. I'll brush up the code a bit and put it on sourceforge or so. Isn't there a central repo to place modules like this?
My .NETMF projects: .NETMF Toolbox / Gadgeteer Light / Some PCB designs
#38
Posted 10 May 2012 - 11:31 AM
#39
Posted 10 May 2012 - 11:37 AM
#40
Posted 10 May 2012 - 04:52 PM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users