Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« on: February 27, 2012, 01:13:54 am » |
Seeing as how the atmega328 is a atmel and the Attiny is from atmel as well i figured here would be the best place to ask. The library for the TLC5940, would that work as is with the Attiny85? I need to run 2 TLC5940s and i'm looking for the smallest option.
-thankS!
|
|
|
|
« Last Edit: March 03, 2012, 09:33:32 pm by funkyguy4000 »
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6372
|
 |
« Reply #1 on: February 27, 2012, 07:51:47 am » |
They act as shift registers and can be cascaded (see Figure 12 of the datasheet) so you can connect more then one to a single SPI port or use shiftOut() to implement Software SPI on any three data pins.
It's not clear what you mean by "the library for the TLC5940". The chip is easy enough to use that you shouldn't need a library.
|
|
|
|
|
Logged
|
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #2 on: February 27, 2012, 09:03:37 am » |
There is an arduino library for the TLC5940's and i wanted to know if that would port over from the avr atmega to the avr attiny. What acts like shift registers? Attiny or TLC
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6372
|
 |
« Reply #3 on: February 27, 2012, 09:10:26 am » |
It's the TLC that acts like a shift register.
|
|
|
|
|
Logged
|
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #4 on: February 27, 2012, 12:38:59 pm » |
So i would need to get used to using the ShiftOut command eh?
How would i make the ShiftOut command work like the TLC5940 Library addFade command and updateFades
the addFade is usually addFade(channel, start value, max value, start millis, end millis);
how would the shift out work like that?
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #5 on: March 03, 2012, 05:27:49 pm » |
So I'm confused still, I've researched it and all. I can't figure out how to control the TLC5940 with the ATtiny without a library.
I'm not at the point to where i can look at a datasheet for a microcontroller and then program it to tell it how to control a driver, anybody wanna help out?
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #6 on: March 03, 2012, 09:33:51 pm » |
anybody?
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
Massachusetts, USA
Offline
Tesla Member
Karma: 96
Posts: 6372
|
 |
« Reply #7 on: March 04, 2012, 10:48:18 am » |
It is possible that the TLC5940 library you want to use will work on the ATtiny85. I recommend you get your program working on the Arduino UNO first. Once it is working there you can worry about porting it to the smaller chip (1/4 the program space and 1/4 the RAM space).
Is there some reason why you must port it to the ATtiny85?
|
|
|
|
|
Logged
|
|
|
|
|
Wisconsin
Offline
God Member
Karma: 4
Posts: 994
I LOVE THIS STUFF!!!!
|
 |
« Reply #8 on: March 05, 2012, 01:06:26 am » |
I have little space on the project board and I may need to add some caps for the project to work, those caps have no room on the board with the atmega.
|
|
|
|
|
Logged
|
Accelerate to 88 miles per hour.
|
|
|
|
|