andre-lehnert / tlc5940arduino Goto Github PK
View Code? Open in Web Editor NEWAutomatically exported from code.google.com/p/tlc5940arduino
Automatically exported from code.google.com/p/tlc5940arduino
What steps will reproduce the problem?
1. Download Arduino.png
2. Try to open it in an image viewer
What is the expected output? What do you see instead?
When I run the AnimationCreator it fails with a NullPointerException. I thought
it was an issue with Java ImageIO libs, but it turned out to be an issue with
the actual image.
What version of the product are you using? On what operating system?
Current trunk of tlc5940arduino, Windows 7
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 24 Sep 2013 at 7:11
I know it is somewhat new, but it there any plans for supporting the Arduino
Due with this library? I understand it is an arm / floating point processor, a
bit different than the AVR chips.
Thanks,
Rich
Original issue reported on code.google.com by [email protected]
on 1 Jul 2013 at 5:23
What steps will reproduce the problem?
1. java AnimationCreator
What is the expected output? What do you see instead?
produce an animation file.
Instead I get errors.
command I entered: "sudo java AnimationCreator"
Writing ani_arduino.h
Exception in thread "main" java.lang.NullPointerException
at AnimationCreator.autoProcess(AnimationCreator.java:46)
at AnimationCreator.main(AnimationCreator.java:25)
Tried with and without "sudo". No difference in errors.
What version of the product are you using? On what operating system?
Mac OSX 10.6.x
Arduino 1.0.1
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 5 Aug 2012 at 1:00
What steps will reproduce the problem?
If you set the maximum angle value in tlc_servox.h greater than 255, the
behaviour of the package is wrong, due to an overflow problem.
All the functions in tlc_servoc.h erroneously use uint8_t instead of uint16_t.
What is the expected output? What do you see instead?
If you set SERVO_MAX_ANGLE greater than 255, you get a wrong behaviour.
Overflow.
What version of the product are you using? On what operating system?
Trunk version from svn.
Please provide any additional information below.
All the functions in tlc_servos.h have to be changed from uint8_t
to unit16_t.
The functions in Tlc5940.h and cpp are correct and the input and
return values are uint16_t, but the tlc_servos.h calls those functions passing
a uint8_t (trunked version) value instead of a uint16_t.
Original issue reported on code.google.com by [email protected]
on 28 Aug 2012 at 7:02
Hi.
I want to use 2 TLC5940 to get 32 PWM outputs. To control them, I want to use
analogs inputs and a 16x2 LCD display.
When I load the firmware on the UNO, works good but the output looks blinky.
When I open the tlc_config.h and I modify the constant NUM_TLCS to 1,
everything works good (LCD+buttons+TLCs outputs)...
But without changing nothing in the code, when I pass the constant NUM_TLCS to
2, so I have the correct outputs, but it blinks...
Someone have some experience with daisy-chained TLCs and LCD display?
Regards.
Original issue reported on code.google.com by [email protected]
on 23 Jan 2014 at 6:55
Something I use along with the tlc servo library, useful to set servos at rest :
void tlc_servoTorqueOff() {
TCCR1B &= ~(_BV(CS12) | _BV(CS11) | _BV(CS10));
}
void tlc_servoTorqueOn() {
TCCR1B |= _BV(CS11);
}
The caveat is that it applies to all servos connected, but still proves useful.
Original issue reported on code.google.com by [email protected]
on 16 Jun 2011 at 10:30
Did somebody managed to make the TLC5940mux version of the library to compile
and run with no
errors.
Is somebody using the library in a non arduino board?
thanks
Original issue reported on code.google.com by [email protected]
on 25 Apr 2010 at 4:46
I want to change PN10 because I need it for an ethershield. I tried to change
it in the config file but
this doesn't seem to work. If its on another pin than 10 the LEDs are
flickering and making strange
things. If I use it on PIN10 with the ethershield the LEDs are always at 100%
lightness.
Original issue reported on code.google.com by [email protected]
on 18 Oct 2009 at 7:00
What steps will reproduce the problem?
1. Make all 16 servo's move
2. Add Wire.H
3. Setup as slave {onReceive & onRequest)
What is the expected output? What do you see instead?
All servo's work fine without the Wire library, once the Wire library is added
the servos twitch 5 degrees left and right every 500ms. Even if nothing is
being sent/received on the I2C buss. Even when I don't instruct the servo's to
move, they still twitch.
What version of the product are you using? On what operating system?
TLC5940_r014
Original issue reported on code.google.com by [email protected]
on 15 Feb 2012 at 11:54
The circuit diagram here
http://tlc5940arduino.googlecode.com/svn/trunk/Tlc5940Mux/tlc5940mux_circuit_exa
mple.png
is clear. I'm trying to use the second option (ie using a shift register on one
side. Problem is the code example TL5940Mux->Matrix describes a set up with a
3:8 line decoder. Do you have a code example that matches the diagram please?
Thanks for your work with the library.
Original issue reported on code.google.com by [email protected]
on 23 Oct 2012 at 4:45
Since it isn't covered in the documentation, I thought I'd just confirm that it
does indeed work.
Now that I think about it, I don't see why it wouldn't work. But still, I
thought I'd put it out there just in case there is any confusion among amateurs
like myself.
Original issue reported on code.google.com by [email protected]
on 17 Jul 2014 at 3:39
What steps will reproduce the problem?
1. Include <Wire.h>
2. Add Wire.Begin() and Wire.OnRecieve() handler to Setup() loop
3. Add the OnRecieve function
(all copied from the Wire Library Slave demo)
What is the expected output? What do you see instead?
With another Arduino acting as the Master, I anticipated the slave to
print the received integers via Serial. The slave is the chip controlling
the TLC.
I confirmed that my I2C setup was correct by commenting out all of the TLC-
related code, and the receive handler worked perfectly.
I began adding the TLC code back, one piece at a time. Including the
libraries didn't break I2C, but once I uncommented Tlc.init(); it stopped
working. I tried placing the init function before and after the Wiring
setup functions to see if that made a difference, but there was no change.
What version of the product are you using? On what operating system?
I am using an Arduino Diecimila, ATMega168, Arduino IDE 0016, and it's on
an amd64 Ubuntu box. My TLC version is r014.
Programming at this level isn't my forte, but from what I can tell, the
TLC5940 uses serial communication to control it. I'm guessing it's
something similar to I2C, but the data sheet doesn't mention it. I'm
pretty sure that the TLC's serial requirements are what's breaking the I2C
stuff....but how do we get around it? Since the ultimate goal is to get my
slave Arduino to be a standalone device, I would like to avoid having the
added bulk of the USB or Serial connections.
Thanks!
Original issue reported on code.google.com by [email protected]
on 31 Dec 2009 at 2:38
What steps will reproduce the problem?
1. Try including tlc_servo.h in a library
What is the expected output? What do you see instead?
Expect clean compilation - instead you get multiple definitions of the
functions in the header file.
Please provide any additional information below.
This can be cured by either not having the functions in the header file (read
up on the function of the "utility" folder of the Arduino library system), or
marking the functions as "inline" so they get compiled directly as inline code
and never get linked as separate functions. Yes, this increases the code size,
but fixes the problem.
Note: You never ever include full functions in a header file unless they are
INLINE. Functions go in C or CPP files, NOT header files!
Original issue reported on code.google.com by [email protected]
on 5 Apr 2013 at 11:23
I am working on a servo controller using an TLC9540.
Problem is that I am not able to turn the servos more than +- 60 degrees using
the standard program for controlling servo's with an TLC9540. (the servo is
able to rotate 180 degrees)
What can cause this?
Thanks in advance!
What is the expected output? What do you see instead?
On what operating system?
Windows 7
Please provide any additional information below.
Servo: RS-2 Modelcraft
Arduino: Diecimila with Arduino 0022 program
TLC9540 shield
Original issue reported on code.google.com by [email protected]
on 30 Nov 2011 at 12:17
The Teensy 2.0++ is a cheap Arudino/Teensyboard, but the library currently
doesn't support this board.
Original issue reported on code.google.com by [email protected]
on 7 Feb 2011 at 10:20
What steps will reproduce the problem?
1. Arduino 0017 Mac OS X 10.6.x
2. cd
Applications/Arduino.app/Contents/Resources/Java/hardware/libraries/Tlc5940/exam
ples/Basic
Animations/
3. java AnimationCreator.java
What is the expected output? [created .h files for animation] What do you see
instead?
Exception in thread "main" java.lang.NoClassDefFoundError: AnimationCreator/java
Caused by: java.lang.ClassNotFoundException: AnimationCreator.java
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:319)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:330)
at java.lang.ClassLoader.loadClass(ClassLoader.java:254)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:399)
What version of the product are you using?
Current version 2009-05-xx
On what operating system? Mac OS X 10.6. / Arduino 0017
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 28 Nov 2009 at 12:50
What steps will reproduce the problem?
1. Try tu upload a program working on Decimalia/Uno onto Arduino Mini
2. Chip/Pinout not supported
3.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Please provide any additional information below.
Is it possible to remap the pins to make it compatible with Arduino Mini?
Original issue reported on code.google.com by [email protected]
on 11 Jun 2013 at 3:16
What steps will reproduce the problem?
1. If you include the TLC5490 library the delay() and millis() function is not
working anymore as expected.
What version of the product are you using? On what operating system?
Arduino UI + ATMEGA8
Please provide any additional information below.
In the file Tlc5940.h is the Timer1 configured like this:
/** Enables the Timer1 Overflow interrupt, which will fire after an XLAT
pulse */
#define set_XLAT_interrupt() TIFR |= _BV(TOV1); TIMSK = _BV(TOIE1)
/** Disables any Timer1 interrupts */
#define clear_XLAT_interrupt() TIMSK = 0
#else
/** Enables the Timer1 Overflow interrupt, which will fire after an XLAT
pulse */
#define set_XLAT_interrupt() TIFR1 |= _BV(TOV1); TIMSK1 = _BV(TOIE1)
/** Disables any Timer1 interrupts */
#define clear_XLAT_interrupt() TIMSK1 = 0
#endif
In the ATMEGA8 is TIMSK for all times.
By setting the Enable overflow bit for timer1 the '=' should be changed by '|='
to leave the other bits in this register as they are.
Also by disabling timer1 should only the TOIE1 bit cleared and not the whole
register.
Change:
#define set_XLAT_interrupt() TIFR |= _BV(TOV1); TIMSK = _BV(TOIE1)
#define clear_XLAT_interrupt() TIMSK = 0
to:
#define set_XLAT_interrupt() TIFR |= _BV(TOV1); TIMSK |= _BV(TOIE1)
#define clear_XLAT_interrupt() TIMSK &= ~(_BV(TOIE1))
then the TOIE0 will stay like it is and the delay and millis will work as
expected.
Greetings
Walter
Original issue reported on code.google.com by [email protected]
on 5 Dec 2013 at 9:31
I'm trying to understand how to wire up a multiplexed display using the
TlcMux version of the library.
From reading the code, I think I've got it -- it looks like your code
running in the Arduino loop() needs to call TlcMux_shiftRow() with the new
row number while also changing the row select via hardware (turning off one
transistor, turning on another).
Is there some way to automate this? What about using the timer interrupt
to automatically call a "row change" routine? I've not yet worked enough
with the timers to know if that's possible, but it seems triggering row
change on BLANK transition would work nicely.
Thanks!
Original issue reported on code.google.com by ben.combee
on 19 Aug 2009 at 3:36
First of all I may be wrong with these timer calculations (I am new at arduino
timers) but after reading this page
"http://arduino.cc/en/Tutorial/SecretsOfArduinoPWM", while I was studying your
tlc5940.cpp file I realized that there are "8190 * 2 = 16380" cycles (16380 *
62.5ns) between your falling and rising edge of the BLANK signal. And If am not
wrong I calculated that your GSCLK signal is generated 62.5ns of every 250ns (1
of 4 cycles). That means between falling and rising edge of the BLANK signal,
there could only be squeezed 4095 GSCLK pulses. This means that you may need to
change PWM period to at least 8194 while GSCLK is 3. Time between falling and
rising edge of BLANK will be (8194 - 2) * 2 * 62.5ns is equal to 4096 * 250ns.
Then we meet up the time requirements to generate 4096 GSCLK pulses between
falling and rising edge of the BLANK signal.
Original issue reported on code.google.com by [email protected]
on 8 Jul 2014 at 11:03
Attachments:
When you use eg. a N-channel MOSFET to boost the output current, the signal is
inverted. This is easily fixed in software. Add the define in tlc_config.h
Original issue reported on code.google.com by [email protected]
on 19 Aug 2015 at 8:50
Attachments:
What steps will reproduce the problem?
1. Wired one TLC5940 to ATmega8 according to this
http://arduino.cc/en/uploads/Hacking/Arduino-To-Atmega8-Pins.png
2. So it looked like this:
13 -> PB5
11 -> PB3
10 -> PB2
9 -> PB1
3 -> PD3
mega8 was getting its power from the programming cable and the TLC + leds
were connected to external 5V PSU and they were drawing 0.31A with all the
leds off
3. Burned the Arduino Bootloader and the tlc5940 Basic Use example to the
chip with Arduino 0017
What is the expected output? What do you see instead?
expected Knight Rider. Got nothing, most of the times all the leds stayed
off. When I switched the power on and off random leds would light up and
stay on forever.
What version of the product are you using? On what operating system?
ATmega8 running at 16 MHz
USBTinyISP
Arduino 0017 (Arduino NG w/ ATmega8 selected)
avrdude 5.8
Please provide any additional information below.
Original issue reported on code.google.com by [email protected]
on 6 Sep 2009 at 12:50
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.