Forum Rule: Always post complete source code & details to reproduce any issue!
Page 12 of 22 FirstFirst ... 2 10 11 12 13 14 ... LastLast
Results 276 to 300 of 550

Thread: Coming Soon: Teensy-LC (low cost Teensy)

  1. #276
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    2,200
    wow. i've used multimeter temp sensor and LC's internal temp sensor to measure chip temp just doing i++ and prints, and I measure about 32C. do you have a thermometer? (or you could see what LC"s internal temp sensor reports -- some assembly required)

  2. #277
    Senior Member
    Join Date
    Sep 2013
    Location
    Hamburg, Germany
    Posts
    891
    Maybe that explains the odd graphics problems I'm seeing....

  3. #278
    Senior Member
    Join Date
    Sep 2013
    Location
    Hamburg, Germany
    Posts
    891
    I could read the internal temp sensor and also attach a thermocouple. Using the camera was just the quickest way, and it doesn't get out of its cage too often... I don't have much spare time at the moment.

  4. #279
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,583
    If you disconnect all the wires and just run a LED blink, does it still get hot?

  5. #280
    Senior Member
    Join Date
    Sep 2013
    Location
    Hamburg, Germany
    Posts
    891
    Two variants of LED blinking:

    Using delay(): cold to the touch
    Code:
    void setup()
    {
      pinMode(LED_BUILTIN, OUTPUT);
    }
    void loop()
    {
      delay(500);
      digitalWriteFast(LED_BUILTIN, !digitalReadFast(LED_BUILTIN));
    }
    Using elapsedMillis(): cold to the touch
    Code:
    void setup()
    {
      pinMode(LED_BUILTIN, OUTPUT);
    }
    void loop()
    {
      static elapsedMillis timer;
      if (timer >= 500)
      {
        timer = 0;
        digitalWriteFast(LED_BUILTIN, !digitalReadFast(LED_BUILTIN));
      }  
    }
    Continuous SPI transfers: cold to the touch
    Code:
    #include <SPI.h>
    void setup()
    {
      SPI.begin();
      SPI.beginTransaction(SPISettings(12000000, MSBFIRST, SPI_MODE3));
    }
    void loop()
    {
      SPI.transfer(0xFF); DOUT connected to DIN
    }
    So it must be my display (or the wiring), but it should (by far) not draw more than the allowed 100 mA.

    Edit: Had a look at the datasheet: the display draws about 30 mA when the whole area is turned on. When the teensy LC chip got hot I supplied the display from the teensy's 3.3V regulator. Now I have it on 5V and the LC does not get hot. The display has its own on-board regulator, but it is said to have a 3..5V input range. So all was within the specifications I had.
    Last edited by christoph; 02-23-2015 at 02:30 PM. Reason: more info

  6. #281
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,583
    22 more of the early boards are shipping today. These are the ones with green solder mask with gold plating, the same PCB material that will be used for the final products. This leaves only a few early boards left, and I believe those are cases where Robin doesn't have info.

    I had originally planned ship these 22 last Monday. The release of Arduino 1.6.0 on Feb 9th pretty much set all my plans back by 1 week. On the plus side, 1.21-beta6 is looking really good.

    These 22 are the first boards that will be able to upgrade their bootloader. The earlier ones (purple and green with tin plating) can not upgrade. At this point, the main need for the upgrade before the full Teensy-LC release will be adding low power support.

    If anyone who got one of those first round *really* wants to play with low power modes within the next 3 weeks, please contact Robin directly by email and we'll arrange to send you another board. These are hand soldered by Erin, so please only request a 2nd board if you really do plan to do something with the low power modes before we fully release Teensy-LC next month.

    Edit: here's a high-res photo:

    Click image for larger version. 

Name:	teensylc.jpg 
Views:	337 
Size:	152.1 KB 
ID:	3624
    (click for full size)
    Last edited by PaulStoffregen; 02-23-2015 at 03:49 PM.

  7. #282
    Senior Member duff's Avatar
    Join Date
    Jan 2013
    Location
    Las Vegas
    Posts
    969
    Yay, I was waiting for this, sweet! I'll contact Robin now.

  8. #283
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    2,200
    Quote Originally Posted by christoph View Post
    The display has its own on-board regulator, but it is said to have a 3..5V input range. So all was within the specifications I had.
    Did you get a chance to measure how much current your setup was drawing? Which OLED ?

  9. #284
    Senior Member
    Join Date
    Sep 2013
    Location
    Hamburg, Germany
    Posts
    891
    Quote Originally Posted by manitou View Post
    Did you get a chance to measure how much current your setup was drawing? Which OLED ?
    Adafruit's SSD1351 1,5" OLED: http://www.adafruit.com/product/1431

    I'll try to remember measuring the current later today... <- fail.
    Last edited by christoph; 02-25-2015 at 08:20 AM. Reason: added fail

  10. #285
    Senior Member+ manitou's Avatar
    Join Date
    Jan 2013
    Posts
    2,200
    Quote Originally Posted by christoph View Post
    I'll try to remember measuring the current later today...
    I did a quick temperature check using LC internal chip temp sensor and various resistive loads on 3.3v pin.

    15ma 33C
    31ma 35C
    54ma 38C
    84ma 40C

    nothing too hot.

  11. #286
    Senior Member
    Join Date
    Feb 2013
    Posts
    563
    quick question re beta testing -- I've replied to Robin's email with my address about 2 weeks ago, but I've heard nothing since. does one/do we get a notification when the board is shipped?

    (not complaining, just wondering ... )

  12. #287
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    5,679
    The LC is quite robust. I connected by mistake a 5 volt I2C ( with 4k7 pullup to 5V) display ...
    It worked for hours (and is still living... :-).

    But please do not try this !
    According to the datasheet , the max IO pin input voltage is VDD + 0.3 Volt

  13. #288
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,265
    Mxx: I gave Robin my address some time ago. I did not get advance notification of the LC being shipped, and it arrived at my work address yesterday (I work just west of Boston).

  14. #289
    Administrator Robin's Avatar
    Join Date
    Oct 2012
    Location
    PJRC Global Headquarters
    Posts
    313
    Recently I sent out a batch of Teensy-LC beta boards, but I got distracted and didn't get the shipping notices out. Sorry about that. Some people can expect a pleasant surprise in the mail.

  15. #290
    Senior Member Pensive's Avatar
    Join Date
    Aug 2014
    Location
    Basingstoke, UK
    Posts
    562
    Quote Originally Posted by Frank B View Post
    The LC is quite robust. I connected by mistake a 5 volt I2C ( with 4k7 pullup to 5V) display ...
    It worked for hours (and is still living... :-).

    But please do not try this !
    According to the datasheet , the max IO pin input voltage is VDD + 0.3 Volt
    I've also overloaded 8 of the analogue pins @ 5v for extended periods (up to an hour at a time, sometimes more). Back in the land of 3.3v now - They still seem to work ok, one of them is fluctuating a bit but otherwise they work great

  16. #291
    Senior Member
    Join Date
    Oct 2012
    Location
    Portland OR
    Posts
    676
    Thanks for including me in the beta; the LC board arrived today!
    Click image for larger version. 

Name:	IMG_2281.JPG 
Views:	170 
Size:	131.2 KB 
ID:	3683Click image for larger version. 

Name:	IMG_2282.JPG 
Views:	185 
Size:	125.0 KB 
ID:	3684

  17. #292
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,749
    Paul: Not sure if you finished the cheater card - but since you wrote "17-5V" on the silkscreen - you might stick with that on the card in some fashion.

  18. #293
    Senior Member
    Join Date
    Oct 2012
    Location
    Portland OR
    Posts
    676
    How do I get started with my Beta LC board?

    I'm on Win7_64 with Arduino 1.6.0 and Teensyduino 1.21-beta6, Teensy Loader 1.21-beta6.
    When I plug Teensy LC in, no serial port appears and pushing the load button on the board does nothing.
    The board voltage is OK: +5V USB and +3.3V appear as expected on the board pins.

    When I plug an old Teensy 3.0 into the same USB cable, Win7 says "installing device driver software..." and then it shows up as a "Teensy USB Serial" device with a COMxx number and it can be programmed and works as expected. So the USB cable, the PC and the software install seems OK.

    UPDATE: holding down the button, releasing it, then pressing again gives me "Installing device driver..." and then "Device driver software was not successfully installed. Unidentified Device X device unplugged"
    Last edited by JBeale; 02-26-2015 at 10:10 PM.

  19. #294
    Senior Member
    Join Date
    Jun 2013
    Location
    So. Calif
    Posts
    2,828
    load a blinky example for the LC into the IDE. Compile and tell IDE to push download the result of the compile/build. Shouldn't need to push button on Teensy unless code it was last downloaded crashes.
    I think they ship LCs with a blinky already installed, But put your own in with different blink timing.

    May need to use older IDE - 1.6 is all still beta.

  20. #295
    Senior Member duff's Avatar
    Join Date
    Jan 2013
    Location
    Las Vegas
    Posts
    969
    I have been using 1.6.0 for a while now and it works as expected with the LC, just some IDE bugs but all the TeensyLC sketches and libraries I've used work as advertised.

  21. #296
    Senior Member
    Join Date
    Oct 2012
    Location
    Portland OR
    Posts
    676
    I rebooted my laptop, opened the IDE, connected Teensy LC. The LC board looks dead (nothing blinking), Windows sees no serial port or device, and the IDE says no serial ports available. I think many people would conclude it's broken at that point. I select Teensy LC in the IDE and click the "checkmark" button to compile (but not load) "Blink". Suddenly, Windows loads a device driver, COM20 appears, and now blink is loaded on the board and working. So it works, maybe that is the way it is supposed to work, but I don't remember it working this way before? Or maybe it did and I forgot, or maybe my other (non-beta) Teensy 2, 3.0, 3.1 boards had something preloaded already. Anyway, onwards...

  22. #297
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    9,749
    At the end of TeensyDuino Install it says (in some fashion): CLICK COMPILE ONLY the first time. I've not seen other commentary on that event - but I've done it and not seen an issue with the Beta on v3.1's. Somehow it forces the first compile of the CORE or something that makes the system work though.

  23. #298
    Senior Member
    Join Date
    Jan 2013
    Location
    Dallas, TX USA
    Posts
    106
    Paul,
    Teensy-LC is now working with openGLCD on the GLCD test bed.

    It worked "out of the box", with the latest code; however, because the board
    was unknown, the library uses defaults, and the default pins are different pinout
    from what Teensy 3 and 3.1 used with the GLCD test bed.

    I've added support for this board to use the same pinout as the Teensy 3 and 3.1 since they
    are digital pin pinout compatible.

    I have a question and need a bit of help in one area.

    Currently I went back to use a h/w level shifter.
    My question is can the Teensy-LC use the 10k series resistors to simply
    limit the back current when connecting 5v outputs to the Teensy 3v input pins like on Teensy 3.0 or will it require a real level shifter?

    Also, the nanosecond delay code you gave me doesn't work on the processor used on the Teensy-LC
    so the code is slowed down because it has to use Arduino API functions for its delays which
    are considerably longer than necessary.

    This is the code that breaks:
    Code:
    static __inline__ void      /* exactly 4 cycles/loop, max 2**32 loops */
    _delay_loop_2_x( uint32_t __n )
    {                                               /* cycles per loop      */
        __asm__ volatile (                          /* __n..one        zero */
                    "L_%=__delay_loop_2_x:"               "\n\t"
                    "subs   %0, #1"                         "\n\t"
    //                "nop"                                   "\n\t"
                    "bne    L_%=__delay_loop_2_x"         "\n"
                    : "+r" (__n) :
        );
    }
    The assembler complains with this error
    Error: instruction not supported in Thumb16 mode -- `subs r3,#1'

    I don't know gcc/gas arm syntax or I'd fix it myself.

    --- bill
    Last edited by bperrybap; 02-27-2015 at 06:35 AM.

  24. #299
    Senior Member Constantin's Avatar
    Join Date
    Nov 2012
    Location
    In the yard with a 17' Dia. Ferris Wheel
    Posts
    1,408
    Just got mine! Very nice soldering work. Now it's time to reciprocate the favor with some testing. BTW, are you transitioning to a new bootloader chip just for the Teensy? This one seems smaller than the mini 54 I remember on the Teensy 3.x series.

  25. #300
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,583
    Quote Originally Posted by bperrybap View Post
    The assembler complains with this error
    Error: instruction not supported in Thumb16 mode -- `subs r3,#1'
    Try "sub" instead of "subs".

    Really, the assembler should accept "subs", since the status bits are always updated. But this looks like a quick in the assembler.

    But you'll need a #ifdef, to use "sub" on Teensy-LC and "subs" on the others. Yeah, it's messy.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •