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

Thread: Teensy 4.0 (3.x) using esp32 wifi

  1. #1
    Junior Member
    Join Date
    Aug 2019
    Posts
    5

    Teensy 4.0 (3.x) using esp32 wifi

    Hi All,
    Im new to Teensy and just got some 4.0 boards and have been looking for guide/examples/code on how to use the esp32 wifi on Teensy 4.0, but have not been abel to find it.

    Have been working with the esp32 since it was born (Arduino Ide) - so Im abel to code both Teensy and esp32 - but wold love to have them integrated.

    So hope someone have the rigth links to make this happen ??

    Thx in advance for your support.

  2. #2
    Senior Member
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    196
    What are looking to do with the combination?

    I've built an ESP32 add-on to my Teensy 4 breakout board and have successfully gotten firmware updates to the ESP32 to work passing through the Teensy.

    I'm hoping to provide basic network capability (HTTP server as well as client, NTP, etc...) as well as Bluetooth LE services to the Teensy, but haven't decided on how to split up the functionality. Would be happy to share ideas...

  3. #3
    Junior Member
    Join Date
    Aug 2019
    Posts
    5
    Thx for your input.

    My first plan was to be abel to do OTA upgrade for both esp32 and Teensy 4.0, when working with the esp32 I like it can be upgraded without unplugging it and connect to a pc first, but it seems that is not possibel on teensy boards.

    So now step one will be the best wire connection between the two boards (have use serial between 2 esp32 before) with some basic test. Then make code to configure the esp32 from Teensy, including ssid, password, hostname, IP address, MTTQ & logserver (use esp32 as relay) etc - so that the esp32 is seen as a part of teensy and we only have to code for one unit.

    The esp32 can be both http server & client, so we should be abel to pass data to/from the Teensy via the esp32, keep the web pages and data on Teensy.

    What physical connection do you use betwen the two ?

  4. #4
    Senior Member
    Join Date
    May 2015
    Location
    USA
    Posts
    304
    Would be great to see the ESP32 as a common, easy, well integrated teensy peripheral.

    I have a derivative of blackketter's teensy/ESP32-module board coming soon. If you are in the US, I'll send you one for alpha testing. Please do post any related software.

    OTA updates of a teensy 4 are possible (search this forum for OTA).

  5. #5
    Junior Member
    Join Date
    Aug 2019
    Posts
    5
    Im based in Denmark, but if the Gerber files are free I can order some for a few US$.

    There is many threads comming up when seraching for OTA, one which you started, where the klink ind the first msg is broaken.

  6. #6
    Senior Member
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    196
    Quote Originally Posted by Agree_dk View Post
    Thx for your input.

    My first plan was to be abel to do OTA upgrade for both esp32 and Teensy 4.0, when working with the esp32 I like it can be upgraded without unplugging it and connect to a pc first, but it seems that is not possibel on teensy boards.

    So now step one will be the best wire connection between the two boards (have use serial between 2 esp32 before) with some basic test. Then make code to configure the esp32 from Teensy, including ssid, password, hostname, IP address, MTTQ & logserver (use esp32 as relay) etc - so that the esp32 is seen as a part of teensy and we only have to code for one unit.

    The esp32 can be both http server & client, so we should be abel to pass data to/from the Teensy via the esp32, keep the web pages and data on Teensy.

    What physical connection do you use betwen the two ?
    You can see the design here:

    https://github.com/blackketter/teensy4_esp32_breakout

    It uses teensy digital pins 24, 25, 26, & 28 for a serial connection and reset for serial programming.

  7. #7
    Senior Member
    Join Date
    May 2015
    Location
    San Francisco
    Posts
    196
    Quote Originally Posted by jonr View Post
    I have a derivative of blackketter's teensy/ESP32-module board coming soon.
    I'd love to see your design and improvements whenever you can share them!

  8. #8
    Take a look at the Adafruit Airlift boards and the Arduino firmware they run: https://learn.adafruit.com/adafruit-...eakout/arduino

  9. #9
    Junior Member
    Join Date
    Aug 2019
    Posts
    5
    Thx, will take a look at what they have done.

  10. #10
    Quote Originally Posted by blackketter View Post
    You can see the design here:

    https://github.com/blackketter/teensy4_esp32_breakout

    It uses teensy digital pins 24, 25, 26, & 28 for a serial connection and reset for serial programming.
    How are the pins used? Software serial asynchronous? Something else?

  11. #11
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,368
    Quote Originally Posted by tele_player View Post
    How are the pins used? Software serial asynchronous? Something else?
    Teensy pins 24 and 25 are the hardware UART port Serial6 (pin 24 is TX6, pin 25 is RX6). From the schematic, teensy pin 26 is hooked up the ESP32 IO0 pin, teensy pin 28 is hooked up to the enable pin, and the 3.3v and ground pins are also connected. This depends on the pinout of blackketter's Teensy 4.0 breakout board.

    Blackketter's board is described in this thread:

  12. #12
    Got it. I completely missed TX6 and RX6 when I looked at the board picture on my phone...

Posting Permissions

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