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

Thread: Please make something wireless.

  1. #1
    Member Rena's Avatar
    Join Date
    Oct 2014
    Location
    Cambridge, Ontario, Canadia
    Posts
    33

    Please make something wireless.

    Lately I've been dabbling with some projects that involve Wifi and Bluetooth Low Energy, so I've been trying different microcontrollers. First there's ESP8266 for wifi, which has given me nothing but pain - only 5 GPIOs that can actually be used, and they're flaky as heck; crappy closed-source OS; slow, unreliable flashing process; weird bugs that seem to come from nowhere.

    Then for Bluetooth I tried a Ti chip, and that's been even worse. Between the super helpful self-destruct "security feature" that bricks the chip if a specific byte in flash isn't a specific value, and the enormously terrible enterprise software, I have yet to even program one successfully.

    Teensy is so much easier to use. I can just write bare-metal ARM code, upload it on the command line, and run it, and it does what it should. It's totally reliable and really simple. It's very difficult to brick them, as well; no matter how bad I mess up the code, I can just hit the button and reflash. It's so much easier that part of me has insane ideas about bit-banging wifi signals on the analog pins.

    If there were a Teensy with Wifi/BLE capabilities, it would be just amazing.

  2. #2
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,282
    Quote Originally Posted by Rena View Post

    If there were a Teensy with Wifi/BLE capabilities, it would be just amazing.
    Definitely, yes.
    Even if it will be "only" an official addon board.

  3. #3
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Posts
    732
    I’m curious how viable this could be on a Teensy 4.1, if I’m not mistaken enough of the pins for SDIO2 are available to use a SDIO based WiFi chip. Other options include using SDIO1 via a micro SD card breakout or trying to reverse engineer a USB WiFi adapter which isn’t easy.

  4. #4
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,450
    Even if it will be "only" an official addon board.
    I'm probably missing something, but why does it have to be an "official" addon board? Packing an ESP on a simple T3/4 breakout board and communicate to it via serial doesn't sound difficult?

  5. #5
    Senior Member vjmuzik's Avatar
    Join Date
    Apr 2017
    Posts
    732
    Quote Originally Posted by luni View Post
    I'm probably missing something, but why does it have to be an "official" addon board? Packing an ESP on a simple T3/4 breakout board and communicate to it via serial doesn't sound difficult?
    In my case I’m more interested in getting the most performance out of WiFi while still using a Teensy that I can. It’s certainly more cost effective to go with an ESP, but serial can only handle so much and I’m stuck in my ways.

  6. #6
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,282
    I'm probably missing something, but why does it have to be an "official" addon board?
    Because everyone uses a different solution then and we will still read this proposal

    I've added an ESP some years ago - yes, that works. Several other have done it, too.

  7. #7
    Senior Member+ KurtE's Avatar
    Join Date
    Jan 2014
    Posts
    9,016
    One option we have is to develop a WIFI driver for some standard USB dongle that plugs into either T3.6 or T4.x. My guess is it would be a lot of work, but would be nice.

    We do have some bluetooth support currently in. Still somewhat limited and sort held together with bailing wire. That is at some point it needs to understand more of the underlying BT protocols and more intelligent about each message. Currently it is setup to understand what several devices do and mimic what it needs to do to get those running. We were and maybe will get back to enhancing it more when some of us get inspired again.

  8. #8
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,282
    Maybe easier is to develop a program, like AT Mode for the ESP and a Teensy library. Both optimized for each other and for SPI? With 2 chipselects, perhaps, for command+data?
    Or, such a thing may exist already?

  9. #9
    Senior Member wwatson's Avatar
    Join Date
    Aug 2017
    Posts
    426
    Quote Originally Posted by Frank B View Post
    Maybe easier is to develop a program, like AT Mode for the ESP and a Teensy library. Both optimized for each other and for SPI? With 2 chipselects, perhaps, for command+data?
    Or, such a thing may exist already?
    Maybe this?
    https://forum.pjrc.com/threads/59020...hlight=wifispi
    Post #9

    I was using SPI2 on the T3.6. The fastest reliable speed was 12MHz.

  10. #10
    Senior Member+ Frank B's Avatar
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    8,282
    Mm, might be not worth the effort and easier to just use serial @ 6Mbit... no code needed,can use the cheapest esp8266 with default AT Firmware und just works.
    Maybe i'll do a tutorial someday...

  11. #11
    Senior Member
    Join Date
    Dec 2016
    Location
    Montreal, Canada
    Posts
    3,701
    I needed BLE support for my Teensy 4.0 project, rather than deal with 2 mcus i added CANbus support TO ESP32 and have teensy use CAN to control the BLE devices programmed on the ESP32

Posting Permissions

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