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

Thread: Who has ESP8266 (WiFi) working with Teensy 4.0?

  1. #1
    Member
    Join Date
    Mar 2019
    Location
    Hoboken, New Jersey, USA
    Posts
    86

    Who has ESP8266 (WiFi) working with Teensy 4.0?

    I did search this forum for this, but didn't see any definitive guide or results.

    Looks like for a few dollars more I can add a WiFi to my setup.
    If anybody has it working with Teensy 4.0, please share your experience: your diagram, libraries, power consumption, noise interference, general experience.

    Thanks.

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany NRW
    Posts
    6,212
    Some time ago I just connected them via serial and flashed the AT-Firmware (a modem emulation) to the ESP.

  3. #3
    Senior Member
    Join Date
    May 2015
    Location
    USA
    Posts
    329
    More important than firmware is a nice T4 add-on board that attaches cleanly without wires. But I'd favor the ESP32 or maybe the ESP32-S2.

  4. #4
    Member
    Join Date
    Mar 2019
    Location
    Hoboken, New Jersey, USA
    Posts
    86
    Ok, thanks. I guess I'll just connect it and see how it goes. It it works, I may ditch the Bluetooth in favor of WiFi.

  5. #5
    Senior Member+ defragster's Avatar
    Join Date
    Feb 2015
    Posts
    10,598
    Wow - so long ago ... Latest commit on Dec 11, 2016

    This was used to use Teensy to pass through Serial as Arduino programmer for the ESP8266 - then share data with ESP over serial when running: github.com/Defragster/ArduinoTeensyESP8266

    Make sure the ESP has good power or it can't program if its input voltage drops.

  6. #6
    Senior Member+ MichaelMeissner's Avatar
    Join Date
    Nov 2012
    Location
    Ayer Massachussetts
    Posts
    3,485

    Cool

    Quote Originally Posted by jonr View Post
    More important than firmware is a nice T4 add-on board that attaches cleanly without wires. But I'd favor the ESP32 or maybe the ESP32-S2.
    Well one possibility is the Adafruit Airlift featherwing + Adafruit Teensy->Feather adapter. Note, I haven't used the Airlift, but I have used the feather adapter. You would have to do basic through hole soldering to join the pins.


    From the example page, it looks like it uses the following Teensy pins:
    • VUSB -- USB power
    • 3.3v -- Normal 3.3v power
    • Ground -- Ground pin
    • Pin 0 (RX1) -- AirLift firmware upload (must join a solder jumper to use)
    • Pin 1 (TX1) -- AirLift firmware upload (must join a solder jumper to use)
    • Pin 5 -- AirLift CS pin
    • Pin 6 -- AirLift Reset pin
    • Pin 9 -- AirLift busy pin
    • Pin 10 -- AirLift GPIO 0 pin (used to put the ESP32 into bootloading mode if you soldered the jumper)
    • Pin 11 -- SPI MOSI
    • Pin 12 -- SPI MISO
    • Pin 13 -- SPI SCLK

  7. #7
    Member
    Join Date
    Mar 2019
    Location
    Hoboken, New Jersey, USA
    Posts
    86
    Thanks guys.

    I found this: http://www.digikey.com/product-detai...9-1-ND/8544304
    It's $2.70, which is important because I want to sell my "super awesome sound processor" and keep the cost low.
    And it looks like it has all what's needed.

    If I get it working, I'll let you know. And even more so if I don't (ha).

  8. #8
    Member
    Join Date
    Mar 2019
    Location
    Hoboken, New Jersey, USA
    Posts
    86
    I think I'll try what @MichaelMeissner suggested. I didn't know that ESP32 had both WiFi and Bluetooth.
    I'll get this: https://learn.adafruit.com/adafruit-...erwing/arduino
    It mentions Teensy pins there, hope it works.

    There is no mentioning of Bluetooth, though. I'll see if I can make it work too.
    The good thing is that I can get the module here for $3.80: https://www.digikey.com/product-deta...0-1-ND/8544305
    I need the WiFi to be as cheap and small as possible.

    Hope it all works.

  9. #9
    Senior Member
    Join Date
    Aug 2017
    Posts
    172
    Quote Originally Posted by Andy Belov View Post
    I think I'll try what @MichaelMeissner suggested. I didn't know that ESP32 had both WiFi and Bluetooth.
    I'll get this: https://learn.adafruit.com/adafruit-...erwing/arduino
    It mentions Teensy pins there, hope it works.

    There is no mentioning of Bluetooth, though. I'll see if I can make it work too.
    The good thing is that I can get the module here for $3.80: https://www.digikey.com/product-deta...0-1-ND/8544305
    I need the WiFi to be as cheap and small as possible.

    Hope it all works.
    Here is something that I was using with the T36 and ESP8266. Not Sure if it can be adapted to to the T4 or ESP32. It is old and I am not sure if it is still being supported.
    It worked with NTP and FTP Server/Client that I was playing around with. Admittedly slow but that could have been because of my hardware setup.
    Adafruit's ESP8266 Feather.

    LInks:
    https://github.com/JiriBilek/WiFiSpi/tree/development
    And:
    https://github.com/JiriBilek/WiFiSpiESP

    I was in the process of trying to port it to the ESP32 and ran into issues with ESP32 SPI slave mode. Have not pursued it further.
    Will be interesting to what you come up with.

  10. #10
    I have an AT firmware flashed ESP8266, coupled to a Teensy 4 over serial as part of a DAB+/webradio boombox conversion, partly based off Frank B's work he mentioned above. I can confirm this setup works very well, filling the buffer can easily max out our crap aussie 5Mbps ADSL. Speed is no issue, I think an ESP32 is not needed for this.

    I did need to add 100 ohm resistors on TxD and RxD to have them work between the T4 and ESP at 2,304,000 baud. That might not be necessary with more recent Teensyduino? I think the T4 pin drive strength or slew rate was changed. But it probably wouldn't hurt.

  11. #11
    Member
    Join Date
    Mar 2019
    Location
    Hoboken, New Jersey, USA
    Posts
    86
    Thanks @prickle. Those little invisible to me things would be killing me. Never in my life I'd figure out that the damn thing doesn't work just because I need 100 Ohm resistor here or there.
    Well, I'm sure that the good people at Adafruit are packing my 2 ESP32's. Will let you know how it goes.

  12. #12
    Member
    Join Date
    Mar 2019
    Location
    Hoboken, New Jersey, USA
    Posts
    86
    Got this: https://learn.adafruit.com/adafruit-...rwing/overview
    Giving up after a few hours.
    Getting "Communication with WiFi module failed!" in C:\Users\Homer\Documents\Arduino\libraries\WiFiNIN A-master\examples\ScanNetworks\ScanNetworks.ino
    Had to modify this: C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4\Pr intable.h
    It needs this: #include <stdlib.h>

    My connection:
    VUSB -- USB power
    3.3v -- Normal 3.3v power
    Ground -- Ground pin
    Pin 5 -- AirLift CS pin
    Pin 6 -- AirLift Reset pin
    Pin 9 -- AirLift busy pin
    Pin 10 -- AirLift GPIO 0 pin (used to put the ESP32 into bootloading mode if you soldered the jumper)
    Pin 11 -- SPI MOSI
    Pin 12 -- SPI MISO
    Pin 13 -- SPI SCLK

    These are not connected. As I understand, they are needed for firmware upload only:
    Pin 0 (RX1) -- AirLift firmware upload (must join a solder jumper to use)
    Pin 1 (TX1) -- AirLift firmware upload (must join a solder jumper to use)

    Have the "3.3" jumper on the top soldered.
    If anybody has it working, please share your wiring and the rest.

  13. #13
    Junior Member
    Join Date
    Jan 2020
    Location
    Toronto, Canada
    Posts
    12
    You can have a look at

    https://github.com/khoih-prog/Blynk_Teensy

    T4 is working with ESP8266 AT-command shield, using Hardware Serial.

Posting Permissions

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