Forum Rule: Always post complete source code & details to reproduce any issue!
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 25 of 76

Thread: Wiki Coming - Please link worthy posts

  1. #1
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    5,183

    Wiki Coming - Please link worthy posts

    A bug has gotten traction to make a WIKI to catalog the world of Teensy: https://forum.pjrc.com/threads/28793...s)-need-a-Wiki

    This one created as a collection point when YOU come across a post that Paul or someone made that explains or exemplifies how to do something from the Libraries, Hardware or otherwise that made something clear or provided a good resource - or touched on a subject you'd bookmark to find again.

    I'll start with a couple : to get the shortcut 'right click' on the post's '#xx" to the upper right and 'Copy Shortcut' - then come to this thread and add it to your own post here with a Thread title or Subject Note and META tag(s) to help organizing them later. ( can also click the number - then pull the URL from the address bar ) [After posting click your link to verify]

    If you have your own set of links or reference info - maybe post them on a good thread and link that post here. If this is just short and to the point it may be a better reference to draw from. Just hit the KEY post - other details can filter to the wiki from there.

    Need not be limited to FORUM posts - I see GITHUB links for libraries - and for areas with definitive outside info that lets hardware work under Teensy. Outside links can go stale - but when the wiki comes together that can be considered then if posted now.
    Last edited by defragster; 06-12-2015 at 12:36 AM.

  2. #2
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    5,183
    My best help for Initial and troubleshooting of Teensy Connectivity:
    SAMPLE blink sketch and steps and notes to connect a Teensy when it won't seem to connect.

    TEENSY Timers and PWM:
    https://forum.pjrc.com/threads/28714...ll=1#post73823

    Teensy Quick Reference: Code Examples, Tips and Tricks
    https://forum.pjrc.com/threads/25395...ips-and-Tricks

    ADC library, with support for Teensy 3.0, 3.1 and LC
    https://forum.pjrc.com/threads/25532...ll=1#post45376

    ASM on Teensy 2
    https://forum.pjrc.com/threads/28862...ll=1#post75210

    Assembly coding for Teensy3.1
    https://forum.pjrc.com/threads/25317...ll=1#post43724

    Assembler for optimization on Teensy in action
    https://forum.pjrc.com/threads/28161...ll=1#post68937

    TyQt to manage multiple Teensy devices
    https://forum.pjrc.com/threads/27825...ll=1#post65310

    METRO and elaspedMillis and elapsedMicros - a MultiTask'ish way to track passing time without delay()
    http://www.pjrc.com/teensy/td_libs_Metro.html
    elaspedMillis and elapsedMicros
    >> Of course Wiki Treatment applies to all the Teensy\LIBs from PJRC

    I see SNOOZE got posted below - but some threads ask leading questions that result in good HOW_TO info:
    https://forum.pjrc.com/threads/28700...etup-Questions

    Teensy Timer changes during run-time - good ref info and refers to SNOOZE to exemplify
    https://forum.pjrc.com/threads/28161...ll=1#post68934

    Pin to port group association for bulk digital I/O
    https://forum.pjrc.com/threads/17532...ll=1#post21228
    Last edited by defragster; 06-09-2016 at 07:19 PM. Reason: wiki additions - same post

  3. #3
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    2,573
    Some of these are probably on the Teensy Quick reference link, and some are more general microprocessor links, but here are some of the links I've collected over the years:

    Capacitive sensors with Teensy 3.0 (touchRead):
    http://http://njhurst.com/blog/01356576041
    http://dangerousprototypes.com/forum...?t=4606#p45520

    Cutting VIN/Vusb:
    https://forum.pjrc.com/threads/19228...4024#post44024

    New improved i2c library meta thread:
    https://forum.pjrc.com/threads/21680...ry-for-Teensy3

    Two of the threads about getting nRF24L01+ radios to work with Teensy:
    https://forum.pjrc.com/threads/24307...5992#post35992
    https://forum.pjrc.com/threads/25922...8850#post48850

    Duff's snooze library (there may be newer versions):
    https://github.com/duff2013/Snooze

    Radiohead:
    http://www.airspayce.com/mikem/arduino/RadioHead/

    Jimmyhugh's method of attaching pins underneath the Teensy 3.0/3.1:
    https://forum.pjrc.com/threads/26071...-with-a-socket

    Hacking the Teensy for SWD debugging:
    http://mcuoneclipse.com/2014/08/09/h...swd-debugging/

    A collection of pointers to Teensy projects done by others
    https://www.hackster.io/teensy/projects

    Paul's DorkbotPDX post about Display and SPI Optimization techniques (there are probably newer threads that I didn't mark down):
    http://www.dorkbotpdx.org/blog/paul/...i_optimization

    Effects of varying i2c pullups:
    http://www.dsscircuits.com/articles/...l-up-resistors

    Nick Gammon's i2c tutorial:
    http://www.gammon.com.au/forum/?id=10896

    I2c scanner from Arduino.cc:
    http://playground.arduino.cc/Main/I2cScanner

    Nick Gammon's spi tutorial:
    http://www.gammon.com.au/spi

    3.3v neopixel (ws2812) level shifters on the Teensy:
    http://happyinmotion.com/?p=1247

    Calculate resistor needed for LEDs:
    http://led.linear1.org/1led.wiz
    https://liudr.wordpress.com/2011/05/...stor-for-leds/

    Paul's DorkbotPDX article about keeping a USB charger powered on when a Teensy doesn't draw enough power:
    http://www.dorkbotpdx.org/blog/paul/battery_pack_load

    The lightsaber sound cookbook:
    http://www.dblondin.com/071807.html

    Instructable on how to build an 'Apple II' watch with a Teensy 3.1:
    http://www.instructables.com/id/Appl...atch/?ALLSTEPS

    Brief bit on setting up a Teensy 3.0/3.1's real time clock:
    http://pjrc.com/teensy/td_libs_Time.html#teensy3
    Last edited by MichaelMeissner; 06-11-2015 at 02:48 PM.

  4. #4
    Senior Member
    Join Date
    Jan 2013
    Posts
    964
    Here's a link list not to posts on the forum but to a (short) list of alternatives to the Arduino IDE :

    Arduino Eclipse IDE/Plugin (Linux, Mac, Windows):
    http://www.baeyens.it/eclipse/index.html

    EmbedXCode ( Mac ):
    http://embedxcode.weebly.com

    Sublime Text (Mac) :
    http://www.sublimetext.com

    There is a host of excellent others e.g. Visual Studio with the Visual Micro Plugin, but I do all my "stuff" on a Mac so I let other users post links to those.

  5. #5
    Administrator Robin's Avatar
    Join Date
    Oct 2012
    Location
    PJRC Global Headquarters
    Posts
    258
    How to repair a broken USB connector on Teensy 3
    https://forum.pjrc.com/threads/19336...-USB-connector

  6. #6
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,828
    Quote Originally Posted by Headroom View Post
    Here's a link list not to posts on the forum but to a (short) list of alternatives to the Arduino IDE :

    Arduino Eclipse IDE/Plugin (Linux, Mac, Windows):
    http://www.baeyens.it/eclipse/index.html

    EmbedXCode ( Mac ):
    http://embedxcode.weebly.com

    Sublime Text (Mac) :
    http://www.sublimetext.com

    There is a host of excellent others e.g. Visual Studio with the Visual Micro Plugin, but I do all my "stuff" on a Mac so I let other users post links to those.
    Here's the URL for the free Visual Micro + free Visual Studio Community (the purchased license is for the optional hardware-less debugger). All else is free). Windows only. Compatible with Teensyduino.
    http://www.visualmicro.com/

  7. #7
    Senior Member
    Join Date
    Mar 2013
    Posts
    617
    A known bugs/issues page would really help, I spent hours on a problem not to long ago only to find out it was an issue with pin 33.
    https://forum.pjrc.com/threads/24823...s-teensy/page2

    I will help where I can, I can think of a few things that would help in the power and adc sections, mainly hardware.

  8. #8

  9. #9
    Senior Member pictographer's Avatar
    Join Date
    May 2013
    Location
    San Jose, CA
    Posts
    602

  10. #10
    Member
    Join Date
    Feb 2014
    Location
    Southern Oregon
    Posts
    56

    Section on software enhancements & language extensions specific to Teensyduino?

    Should there be a specific section on software enhancements & language extensions specific to Teensyduino?

    Serial.printf...
    https://forum.pjrc.com/threads/26971-Serial-printf

    I finally found what I was looking for in an old thread, and that highligheted yet another good reason for the imminent wiki.

    Having just read Jp3141's formatted post yesterday, I wondered where or how to get Serial.printf. I was only able to find that thread, externally using Google and "teensy forum serial.printf". I'm sure the info is somewhere else too, just not easy to find.

    While we're discussing things like this, I have to say thanks Paul for adding things like this to Teensyduino, even if it's hard to find them.

    --Jon
    Last edited by epicycloid; 07-06-2015 at 05:44 PM.

  11. #11
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    5,183
    I2c pullups::
    Quote Originally Posted by jbliesener View Post
    yes, you definitely need a pullup on teensy 3 (, 3.1, lc). 4.7k is the recommended value. See https://www.pjrc.com/teensy/td_libs_Wire.html
    Voltage check on Teensy 3.3v - low voltage gives hot chip from high current draw
    Teensy-3-1-powering-other-devices

    Integer only sprintf :: siprintf doesn't bring in software floating point code
    https://forum.pjrc.com/threads/23874...ll=1#post33105

    Porting code with printf can use this:: #define printf Serial.printf
    https://forum.pjrc.com/threads/23874...ll=1#post78083
    Last edited by defragster; 07-23-2015 at 06:20 AM.

  12. #12
    Senior Member
    Join Date
    Dec 2013
    Location
    Brasilia, Brazil
    Posts
    160

  13. #13
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    5,183
    Last edited by defragster; 08-15-2015 at 06:51 PM.

  14. #14
    Senior Member pictographer's Avatar
    Join Date
    May 2013
    Location
    San Jose, CA
    Posts
    602
    I often see stuff go by that I think I might need someday, but I don't have a good enough record-keeping system to capture it.

    And often see stuff that I'd be glad to post complements on, but don't want to clutter up the thread with "me too!" noise or come across as presumptuously passing judgement on everything.

    It would be great to have a convenient (one click) way of nominating a post as "important reference material" or "admirable for whatever reason".

  15. #15
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    5,183
    Quote Originally Posted by pictographer View Post
    It would be great to have a convenient (one click) way of nominating a post as "important reference material" or "admirable for whatever reason".
    This was noted as important somewhere back when this all started - about a PLUS ONE LIKE - button for threads. A way to make future threads have a means of rating. Feeling was no 'demote' button. That will come about based on the FORUM actually in use after any migration and the WiKi starts.

    RTFM: A tip on reading the freescale doc - here in context of FTM's - (Flex TiMers)
    https://forum.pjrc.com/threads/29421...ll=1#post79993

    Wiki Bonus content might also give a summary of the common TLA's: i.e. PIT and FTM and maybe another dozen or so.
    Last edited by defragster; 09-03-2015 at 07:14 AM.

  16. #16
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    2,573
    Pictographer, one thing I do with things I want to visit again is add the link to a folder in my bookmarks file. On Chrome, I have bookmark folders for various major categories (work, hack forums, steampunk/renaissance faire stuff, etc.), and within there sub-directories (teensy vs. raspberry pi vs. arduino, etc.). If I see something interesting, I go into the bookmark manager, and go to the appropriate sub-directory, and add a link. It is more than just one click, but it allows me to save the information simply. Since chrome syncs its data to the cloud, I will get the same link on my work computer, home desktop, laptop, etc.

  17. #17

  18. #18

  19. #19
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    5,183
    DMA based hardware Serial - up to 6,000,000 bps:
    https://github.com/duff2013/UartEvent

    Teensy 3.1 / 3.2 Serial works well at 4M and 6M baud - and hardware control RTS/CTS implemented:
    https://forum.pjrc.com/threads/29446...ontrol-RTS-CTS

    ARM Cortex processor handles interrupts with a lot of special work
    https://forum.pjrc.com/threads/17760...ll=1#post28111

    Teensy 3.x and LC have nested priority interrupts
    https://forum.pjrc.com/threads/30058...ll=1#post82944

    Troubleshooting Common Problems
    http://pjrc.com/teensy/troubleshoot.html
    Last edited by defragster; 09-25-2015 at 06:10 AM.

  20. #20
    Member
    Join Date
    Feb 2014
    Location
    Southern Oregon
    Posts
    56

  21. #21
    Senior Member pictographer's Avatar
    Join Date
    May 2013
    Location
    San Jose, CA
    Posts
    602
    Practical audio shield questions and answers:
    https://forum.pjrc.com/threads/30751...r-Board-Shield

  22. #22
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    5,183
    Good adds! pictographer: I read the Audio shield and saw it as good but didn't think to post here! epicycloid: good watchdog info - made me think this on interrupts could be useful too showing how they can cascade.

    https://github.com/PaulStoffregen/XPT2046_Touchscreen
    Using The Interrupt Pin :: XPT2046 Touchscreen Arduino Library

    The XPT2046 chip has an interrupt output, which is typically labeled T_IRQ on many low cost TFT displays. No special software support is needed in this library. The interrupt pin always outputs a digital signal related to the touch controller signals, which is LOW when the display is touched. It also is driven low while software reads the touch position.

    The interrupt can be used as a wakeup signal, if you put your microcontroller into a deep sleep mode. Normally, you would stop reading the touch data, then enable the interrupt pin with attachInterrupt(), and then configure your processor to wake when the interrupt occurs, before enter a deep sleep mode. Upon waking, you would normally disable the interrupt before reading the display, to prevent false interrupts caused by the process of reading touch positions.

    You can also use the interrupt to respond to touch events. Setup might look similar to this:
    SPI.usingInterrupt(digitalPinToInterrupt(pin))
    attachInterrupt(digitalPinToInterrupt(pin), myFunction, FALLING);


    However, inside your interrupt function, if the display is no longer being touched, any attempt to read the touch position will cause the interrupt pin to create another falling edge. This can lead to an infinite loop of falsely triggered interrupts. Special care is needed to avoid triggering more interrupts on the low signal due to reading the touch position.

    For most applications, regularly reading the touch position from the main program is much simpler.

  23. #23
    Member
    Join Date
    Feb 2014
    Location
    Southern Oregon
    Posts
    56
    It's the subtle little things, like the last sentence of this post by Paul, that reinforces the need for a KB of all the Teensy & Teesny Loader tid-bits...

    Teensy Loader instance check

  24. #24

  25. #25
    Administrator Robin's Avatar
    Join Date
    Oct 2012
    Location
    PJRC Global Headquarters
    Posts
    258
    I'm considering making this page a sticky. There's a good collection of links accumulating on this thread and I want to see it grow so that when the wiki is finally up an running, we can include this content right away.

    I know that you've heard it before, but the Wiki really is coming, it's just taking a little longer than we want. There is some IT infrastructure stuff that needs to happen first. Unfortunately these IT tasks have been pushed down on Paul's to-do list as he works on things like his HackADay SuperCon workshop, new products, new features, bug fixes, and other stuff. I keep hearing things like "blah blah blah 5v tolerance" coming from his office. Then I interrupt him with things like "this part isn't available, I need a cross now so that I get this build going..." I digress...

    I promise the Wiki is coming. I've done some testing on Vault Wiki and think it will work for what we want. We just need to make a little time for that pesky IT 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
  •