Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 12 of 12

Thread: Micropython

  1. #1

    Micropython

    I thought I'd use an old Teensy 3.2 board to test Micropython, is it correct that there is no mounted USB drive on the host O/S and that each time I make a code change I need to recompile and re-load?

  2. #2
    Started playing around with PlatformIO and that seems to work just fine with the automated upload after build

  3. #3
    Junior Member
    Join Date
    Nov 2019
    Posts
    17
    Quote Originally Posted by ilium007 View Post
    I thought I'd use an old Teensy 3.2 board to test Micropython, is it correct that there is no mounted USB drive on the host O/S and that each time I make a code change I need to recompile and re-load?
    The last updated MicroPython firmware for Teensy 3.2, with many features, is the "teensy-rtc" branch dhlands MicroPthon fork :
    https://github.com/dhylands/micropyt...nsy-rtc/teensy

    You are right, there is no internal file system in MicroPython on Teensy 3.2. So you can test MicroPython using REPL, then any final code should be frozen in the firmware (so the need to compile MicroPython)

    But MicroPython on Teensy 3.5/3.6 has a file system mounted if a microSD card is inserted, so you can have boot.p and main.py on microSD.

    See more details here :
    https://github.com/dhylands/micropyt...unning-scripts

  4. #4
    I think I have a Teensy 3.5/3.6 here, of course it would help if the Teensy boards had markings on them to state what model they are. But looking through the Micropython source for the Teesny port it doesn't look like there are libraries for I2C or SPI.

  5. #5
    It’s odd that the product has no branding / model info on the board. I’m sure a there a good reason.

    Looks like its a 3.6 from the MCU markings.

    Click image for larger version. 

Name:	2078FA47-C1EC-460D-8C67-EAFFC52DED4D.jpeg 
Views:	10 
Size:	149.6 KB 
ID:	23865

    Click image for larger version. 

Name:	BB0F8590-D551-4681-A23F-77991CAB105D.jpeg 
Views:	11 
Size:	224.7 KB 
ID:	23866

  6. #6
    Junior Member
    Join Date
    Nov 2019
    Posts
    17
    MicroPython on Teensy 3.x doesn't support : DAC, I2C, SPI, etc.

    The most complete option is CircuitPython (a little bit different from MicroPython) on Teensy 4.0/4.1 :
    https://circuitpython.org/board/teensy40/
    https://circuitpython.org/board/teensy41/

  7. #7
    Yeah, I think I'll stick with the STM32F405RG uC's for my project.

  8. #8
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,756
    Quote Originally Posted by ilium007 View Post
    It’s odd that the product has no branding / model info on the board. I’m sure a there a good reason.

    Looks like its a 3.6 from the MCU markings.

    ...
    That is a T_3.6.

    Reason: The T_3.5 and T_3.6 share the exact same PCB.

    Differences are:

    MCU Marked as MK66 on that T_3.6 picture and the T_3.5 would have an MK64.

    Also on that the row of 5 inner pin holes for USBHost have all parts populated two towards the USB connector by those 5 pins would be open pads with no part inside the PCB marking silkscreen boxes. That board has the large CAP and 6 legged IC along those 5 USBHost pins. Also a smaller cap across the cap from that IC is vacant on a T_3.5.

  9. #9
    I just don’t understand why there wasn’t a silkscreen “Teensy 3.6” somewhere!!

  10. #10
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    13,756
    Quote Originally Posted by ilium007 View Post
    I just don’t understand why there wasn’t a silkscreen “Teensy 3.6” somewhere!!
    Not sure if that was crosspost? But the same PCB builds both 3.5 and 3.6 - unless 3.5 was hidden under the big USB CAP - all else is common.

  11. #11
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    23,999
    Quote Originally Posted by ilium007 View Post
    I just don’t understand why there wasn’t a silkscreen “Teensy 3.6” somewhere!!
    Two things...

    1: The same PCB is used for both Teensy 3.5 and 3.6.

    2: This was my first BGA and first 6 layer PCB design, which was done under time pressure for a Kickstarter campaign launch. A *lot* of work when into the tech details and stuff like branding got neglected.

  12. #12
    All good! I was just curious!

Posting Permissions

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