Forum Rule: Always post complete source code & details to reproduce any issue!
-
10-07-2016, 09:34 PM
#526
-
10-10-2016, 10:47 AM
#527
Can Teensy LC be re-programmed with new code after using as usb midi controller with pc.???
-
10-10-2016, 10:50 AM
#528
Senior Member+
-
10-10-2016, 12:01 PM
#529
Thank u sir ,,, can i get direct link of all needed softwares for pc window 7(to make my own usb midi controller from teensy LC)
Last edited by charnjit; 10-10-2016 at 12:32 PM.
-
10-10-2016, 12:38 PM
#530
Please reply if any member from INDIA
-
10-10-2016, 01:07 PM
#531
Senior Member

Originally Posted by
charnjit
can i get direct link of all needed softwares for pc
http://www.pjrc.com/teensy/td_download.html
-
10-30-2016, 04:45 AM
#532
I'm fiddling with getting the LC working with the TLC5940 library, but so far my bit of hackery hasn't had any effect. The LC isn't officially supported by the library, but I assume that's just because the LC was released after the most recent update to the library and not because of some actual incompatibility. Before I dig too much deeper, does anybody know anything that would prevent the LC from working with this library the same as the 3.0/1/2?
For reference: https://www.pjrc.com/teensy/td_libs_Tlc5940.html
-
10-30-2016, 05:07 AM
#533
Senior Member+
Note, the LC uses an ARM Cortex M0, while the 3.0/3.1/3.2 use variants of the M4 (and the 3.5/3.6 use variants of the M4F). The library plays with the underlying timers, pin configurations, and pin interrupts. So, you will likely need to delve deep into the datasheet of both the LC and the 3.2.
-
10-30-2016, 06:44 AM
#534
Senior Member

Originally Posted by
Omnigamer
The LC isn't officially supported by the library, but I assume that's just because the LC was released after the most recent update to the library
By the time Teensy LC was released, that ancient TLC5940 had long become obsolete. Many better chips have replace it, and the need for PWM LED chips is much less now that WS2812B and APA102 addressable LEDs are so commom.
and not because of some actual incompatibility.
Teensy LC lacks the CMT timer peripheral which exists in all the Teensy 3.x boards.
-
10-30-2016, 06:46 AM
#535
Senior Member
You might look at ShiftPWM, using 74HCT595 chips and resistors. ShiftPWM was ported to Teensy LC.
-
10-30-2016, 08:29 AM
#536
Senior Member
Apologies if you read my post - it was related to the pca9685 not the TLC5940, therefore irrelevant and now deleted
-
10-31-2016, 07:34 AM
#537
My specific application requires constant-current all the time, so I was hoping to make use the DC mode on the TLC5940 rather than any of the PWM management. In the end I decided it was easier to write my own small library for interacting with it; works fine for the time being.
-
11-07-2016, 11:54 AM
#538
I want to make a midi controller using teensy LC . I have also code for this . Teensy loader is installed on pc. In Arduino 1.6.12 ,there is not option to select teensy lc in board. There is also no option to select midi in Usb Type. So , please tell me which version of Arduino is correct to make midi controller from teensy lc board ? ,,,,,,,, can be made midi controller from teensy lc using c or c++ ? ,,,,,,,,,Please give me any solution
-
11-07-2016, 12:35 PM
#539
Senior Member+
You have to install the Teensydunio overlay to Arduino 1.6.12 (http://www.pjrc.com/teensy/td_download.html). The Teensydunio installation is a lot more complex than the Arduino board overlay system can handle.
-
11-09-2016, 04:32 AM
#540
2 push buttons are used to control 1 parameter in midi controller using teensy LC board.if I want connect only push buttons for maximum parameters. How many maximum buttons and how many maximum parameters can be control from teensy LC ?
Last edited by charnjit; 11-09-2016 at 04:38 AM.
-
11-11-2016, 04:51 AM
#541
Three Questions:
#1. The two pin header holes marked 3.3v I assume get 3.3v output voltage from the VOUT33 pin on the processor. So these are not in any way used as input 3.3v to power the chip...correct?
#2. Why would I need to cut the jumper between VUSB and VIN. If I cut it, won't I will always need Battery power at VIN...even when using a USB cable for flashing or in a user program that employs USB?
#3. In applications where USB won't be used (no USB cable), we therefore need to power the board with 5v from an external source. What is the difference in powering externally through the VUSB header vs. the VIN header? I don't want to cut the jumper because I do want retain the option of powering the board solely off of a USB cable. But, if there is no USB cable present, I don't see any difference in powering externally from either VIN or VUSB. That's certainly what the schematic seems to show.
The bottom line is:
- if the board is being powered off a USB Cable, you should have 5 volts ouput power at both VUSB and VIN.
- if there is no USB cable present you can power with 5volts at VUSB...and draw 5volts at VIN....or...you can power with 5volts at VIN...and draw 5volts at VUSB.
Isn't that correct?
Last edited by Burly; 11-11-2016 at 05:07 AM.
-
11-11-2016, 05:25 AM
#542
Senior Member+

Originally Posted by
Burly
Three Questions:
#1. The two pin header holes marked 3.3v I assume get 3.3v output voltage from the VOUT33 pin on the processor. So these are not in any way used as input 3.3v to power the chip...correct?
Note, I'm a software guy, but.... You can power the Teensy through the 3.3v pins providing you have no power on the VIN pin (and VUSB if it is connected to VIN). As I understand it, USB won't work (if the VIN->VUSB solder pad is cut), because it needs 5v.

Originally Posted by
Burly
#2. Why would I need to cut the jumper between VUSB and VIN. If I cut it, won't I will always need Battery power at VIN...even when using a USB cable for flashing or in a user program that employs USB?
You might want to cut the connection if you are powering the Teensy by feeding it power through VIN. For example, you might need more watts than a typical USB connection might make. Or perhaps you have a lipo battery that powers the Teensy, and uses the 5v from VUSB to recharge the battery (for example, https://www.tindie.com/products/oneh...ttery-charger/). Yes, if you cut the VUSB/VIN solder pad, you will need to provide appropriate voltage to VIN to power the Teensy when doing a download.

Originally Posted by
Burly
#3. In applications where USB won't be used (no USB cable), we therefore need to power the board with 5v from an external source. What is the difference in powering externally through the VUSB header vs. the VIN header? I don't want to cut the jumper because I do want retain the option of powering the board solely off of a USB cable. But, if there is no USB cable present, I don't see any difference in powering externally from either VIN or VUSB. That's certainly what the schematic seems to show.
The bottom line is:
- if the board is being powered off a USB Cable, you should have 5 volts ouput power at both VUSB and VIN.
- if there is no USB cable present you can power with 5volts at VUSB...and draw 5volts at VIN....or...you can power with 5volts at VIN...and draw 5volts at VUSB.
Isn't that correct?
In general, things are simpler if have power coming from only one source. If it comes from two sources without something like diodes to block the power going backwards, whichever power source is weaker will have current coming in from the strong source. As I said, you can use diodes to make the power go in one direction, but diodes take power also. Or you can do like I do, and just only plug in one source at a time.
-
11-11-2016, 06:36 AM
#543
Hi Michael,
I totally agree about only having one source of power.
And I don't want to loose the ability to power strictly off of USB...so cutting the jumper is a non-starter.
I want to either be pulling power off the USB cable if one is plugged in.
Or, I want to be sourcing 5v externally when the USB cable is not present.
And in this case there is no battery charging involved.
But I'm still scratching my head over the schematic.
I'm spinning a new Base Board that will use the Teensy LC as a Riser Board.
When the USB cable is not present, I want to power with an external 5v source, by going in through the VUSB header.
It's much more convenient from a layout perspective than going through the VIN header.
I can't see where it would be an issue.
Last edited by Burly; 11-11-2016 at 06:42 AM.
-
11-11-2016, 01:38 PM
#544
VUSB and VIN are one and the same if the trace/jumper is not cut. You can supply 5V through either header to power the on-board voltage regulator, but do not connect a USB cable from your computer to the board at the same time. If you do, you will have 2 5V supply outputs connected directly to each other.
If you will never have external power applied when you have the USB cable hooked up between the Teensy and computer, you do not need to cut the trace. If you intend to not unplug your external 5V power before reprogramming or otherwise utilizing the USB connector, you need to cut the trace, and then yes you will have to always apply the external power.
You can also supply a regulated 3V3 source to any of the labeled pins, but again you will need to cut the trace unless this power is disconnected before the USB is connected.
I removed this need on a custom Teensy-based solution I made by using an in-line diode for each of the VUSB and VIN pins. Yes, it wastes some power, but I can either leave my batteries hooked up or not when I connect the USB cable to the computer.
-
11-11-2016, 03:12 PM
#545
Thank's MadMatt,
You're describing just how I thought things worked.
I wanted to confirm because I'm about send a board design off to OSH Park...
I didn't want any gotchas...
The rule of thumb is USB Cable...or External 5V Power...but never both at the same time.
Thanks again.
-
11-11-2016, 05:22 PM
#546

Originally Posted by
Burly
The rule of thumb is USB Cable...or External 5V Power...but never both at the same time.
Correct, you can leave the trace alone then. And 5V through VUSB, the USB connector itself, or VIN.
-
03-08-2017, 09:43 AM
#547
One comment, something you could fix/update on the Teensy LC web page (https://www.pjrc.com/teensy/teensyLC.html)?
The table there says three "FTM Type" timers. But 3.8.1.1 of the manual (https://www.pjrc.com/teensy/KL26P121M48SF4RM.pdf) says the "device contains three low power TPM modules". So I guess the web page should say "TPM Type" timers, i.e. the old timers, not the new fancy extra versatile FTMs.
Similarly Teensyduino 1.35 header files do define FTM0_SYNC and FTM1_SYNC but these FTM things are not actually found in the manual, only TPM related registers and fields are listed. So perhaps also a header file bug...?
-
03-09-2017, 01:02 AM
#548
Senior Member
[QUOTE=JanWagner;136039]One comment, something you could fix/update on the Teensy LC web page (https://www.pjrc.com/teensy/teensyLC.html)?
I've updated the web page to say "TPM / FTM" with a footnote about their difference. Hopefully that helps?
-
03-13-2017, 02:34 AM
#549

Originally Posted by
PaulStoffregen
I've updated the web page to say "TPM / FTM" with a footnote about their difference. Hopefully that helps?
Thanks! The footnote helps! Table change, hmm, to clearly show which board offers which type of timer, perhaps you could expand the table like this?
Code:
Timers LC 3.2
TPM Type* 3 0
FTM Type 0 3
PWM Outputs 10 12
-
12-09-2018, 09:46 AM
#550
Senior Member+
It seems I am just seeing this OLD thread - at least in context to a 2/1/15 post - so old it predates my start here by some 13 days.
I haven't created a thread yet - just posts to get feedback on the debug_t3 library where I pulled PJRC's Stack Dump and keep up the USB polling with a define in the lib for the weak fault handlers - and blink the LED ( or other pin ).
Indeed having the USB polling allows the faults I've found software reprogram and to do extended USB output - even bi-directional SerMon commands (reset/bootloader/continue) and call into user code to a declared weak function the user can define to do as they choose.
I haven't gotten much feedback yet - as faults are rare. It has a long TODO list and needs a rewrite to allow use/test of any Serial#. It may be handy with T_4 - if it can run similarly there … and odd things happen porting other stuff.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules