defragster
Senior Member+
Looking to make a way to use WifiNina device connect to Teensy.
For devices without USB like AdaFruit 4201 Breakout - or even USB.
See post #21 after the introduction - got it working with a generic ESP32 PICO D4 DevKit board. Using the same GPIO numbers as AdaFruit dies in their board with their custom WiFiNina 1.7.7_BIN and it is working just like the AdaF board on sample sketches. The ProxyDual sketch works for Program and Reset when the correct WiFiNina BIN needs to be placed on the ESP32.
This sketch works with the '4201' Breakout and today with a DevKit Pico V4.1 - Pin connects are commented in the sketch: ProxyDual
4201 Breakout has no USB so UART upload is required - Teensy can be used in place of FTDI. The DevKit PICO has USB and buttons - but none would take to program mode but above sketch worked.
Build ProxyDual with "USB: Dual Serial" and primary USB echos anything the UART transfers. It also takes two commands 'r'eset of the ESP32 and enter ESP32 to 'p'rogram mode. 'p' then readies USB1 port as presented to host to perform upload. When complete 'r' will reset the ESP32 to run. This is the same as 9 years ago for ESP8266 - but Dual Serial makes it better to control and see the actions as above.
Updated the 4201 Breakout with the latest NINA_W102-1.7.7.bin AdaFruit release using the above and it worked to run samples from Teensy 4.0 and 4.1.
That uses an older WROOM-32E Module and wondering about using a newer Pico D4 the Espressif DevKit version arrived today. Used it USB connector to put on the 1.7.7 firmware but SPI connect showed 'no wifi' in scanner sketch. It came in Download Ready condition so upload was easy.
Is an MS-Dos/Command box, knowing the proper USB port { direct to device or the Teensy 2nd USB1 - here COM15 } and in the folder with the .BIN to upload with the path to your local install of esptool.exe:
and DualProxy worked to upload a second copy of the released NINA_W102-v1.5.0.bin
{ wasn't meant to start this thread yet - and it was going to be more complete but ...}
PROBLEM/QUESTION: << SOLVED - Post #21 >>
What are the default ESP32 pins used by the WifiNina software?
> supposing it uses the 'default' ESP32 SPI instance pins {cs=5, MOSI=23, MISO=19, SCK=18} seem to be right for the DevKit Pico D4 in use
BUT> What pin is used for BUSY? : This is a feedback pin from the ESP32 to 'host' indicating when the ESP32 is busy.
So the DevKit PICO is not connecting - even for simple SCAN sketch, and the BUSY pin is unknown and that may be why? Or maybe it uses HSPI as default instead of VSPI - but without BUSY known it can't be expected to function at all.
Anyone know where in the sources this pin is defined where the source if Espressif IDE coded? SRC files are the links above 1.7.7 and 1.5.0.
For devices without USB like AdaFruit 4201 Breakout - or even USB.
See post #21 after the introduction - got it working with a generic ESP32 PICO D4 DevKit board. Using the same GPIO numbers as AdaFruit dies in their board with their custom WiFiNina 1.7.7_BIN and it is working just like the AdaF board on sample sketches. The ProxyDual sketch works for Program and Reset when the correct WiFiNina BIN needs to be placed on the ESP32.
This sketch works with the '4201' Breakout and today with a DevKit Pico V4.1 - Pin connects are commented in the sketch: ProxyDual
TeensySketches/ProxyDual at main · Defragster/TeensySketches
things. Contribute to Defragster/TeensySketches development by creating an account on GitHub.
github.com
4201 Breakout has no USB so UART upload is required - Teensy can be used in place of FTDI. The DevKit PICO has USB and buttons - but none would take to program mode but above sketch worked.
Build ProxyDual with "USB: Dual Serial" and primary USB echos anything the UART transfers. It also takes two commands 'r'eset of the ESP32 and enter ESP32 to 'p'rogram mode. 'p' then readies USB1 port as presented to host to perform upload. When complete 'r' will reset the ESP32 to run. This is the same as 9 years ago for ESP8266 - but Dual Serial makes it better to control and see the actions as above.
Updated the 4201 Breakout with the latest NINA_W102-1.7.7.bin AdaFruit release using the above and it worked to run samples from Teensy 4.0 and 4.1.
That uses an older WROOM-32E Module and wondering about using a newer Pico D4 the Espressif DevKit version arrived today. Used it USB connector to put on the 1.7.7 firmware but SPI connect showed 'no wifi' in scanner sketch. It came in Download Ready condition so upload was easy.
Is an MS-Dos/Command box, knowing the proper USB port { direct to device or the Teensy 2nd USB1 - here COM15 } and in the folder with the .BIN to upload with the path to your local install of esptool.exe:
Code:
"C:\Users\somebody\AppData\Local\Arduino15\packages\esp32\tools\esptool_py\4.5.1/esptool.exe" --port COM15 --before no_reset --baud 115200 write_flash 0 NINA_W102-1.7.7.bin
and DualProxy worked to upload a second copy of the released NINA_W102-v1.5.0.bin
{ wasn't meant to start this thread yet - and it was going to be more complete but ...}
PROBLEM/QUESTION: << SOLVED - Post #21 >>
What are the default ESP32 pins used by the WifiNina software?
> supposing it uses the 'default' ESP32 SPI instance pins {cs=5, MOSI=23, MISO=19, SCK=18} seem to be right for the DevKit Pico D4 in use
BUT> What pin is used for BUSY? : This is a feedback pin from the ESP32 to 'host' indicating when the ESP32 is busy.
So the DevKit PICO is not connecting - even for simple SCAN sketch, and the BUSY pin is unknown and that may be why? Or maybe it uses HSPI as default instead of VSPI - but without BUSY known it can't be expected to function at all.
Anyone know where in the sources this pin is defined where the source if Espressif IDE coded? SRC files are the links above 1.7.7 and 1.5.0.
Last edited: