Skip to content

Instantly share code, notes, and snippets.

@anecdata
Last active January 10, 2021 16:25
Show Gist options
  • Save anecdata/3f3a212b4c22133f688f47a9784dc33f to your computer and use it in GitHub Desktop.
Save anecdata/3f3a212b4c22133f688f47a9784dc33f to your computer and use it in GitHub Desktop.
ItsyBitsy M4 + ESP32 power configurations
(1) USB power to ItsyBitsy M4 + ESP32 Breakout
typical output:
Retrying ESP32 connection
Error response to command
...
Retrying ESP32 connection
Timed out waiting for SPI char
...
Can't find ESP32
...
Failed to connect, retrying
Timed out waiting for SPI char
...
Failed to connect, retrying
Error response to command
(2) USB power to ItsyBitsy M4; separate 5v power to ESP32 Breakout
this works!
@anecdata
Copy link
Author

anecdata commented Apr 3, 2019

Always supplying USB from computer USB3 port, no external hubs. Should allow 500mA. Feather M4 + Feather ESP32 combination seems to behave better. Changed config from photos to use ItsyBitsy M4 pin D7 instead of D5, but no change in behavior. ItsyBitsy M4 + Feather ESP32 has similar behavior to ItsyBitsy M4 + ESP32 Breakout. Yet to try: Feather M4 + ESP32 Breakout.

@otherguy
Copy link

Hey, did you ever find a fix for this? I ran into the same issue adafruit/Adafruit_CircuitPython_ESP32SPI#123

@anecdata
Copy link
Author

anecdata commented Jan 10, 2021

@otherguy

Hey, did you ever find a fix for this? I ran into the same issue adafruit/Adafruit_CircuitPython_ESP32SPI#123

I generally don't see this any more. I chalked it up mainly to to flaky connections and the assumption that the SPI communications will glitch now and then. I have several similar configs, all on solderless breadboards, running on my desk for many months:
• a number of Feather M4 + Airlift Featherwing (stacked)
• ItsyBitsy M4 + Airlift BitsyWing
• ItsyBitsy M4 + ESP32 Breakout (like the photos)
• Teensy 4.x + Airlift Breakout
• Teensy 4.0 with Feather adapter + Airlift FeatherWing

I've successfully tried many combinations of Adafruit MCU + Adafruit ESP32 variant, including TinyPICO as wi-fi co-processor, and even ESP32-S2 Feather + Airlift FeatherWing https://twitter.com/anecdat/status/1327472474624323585

Main differences to note since this initial testing a year and a half ago:
• triple-checking soldering and wiring when errors are frequent or persistent
• NINA firmware updated to at least 1.6.0 on all co-processors
• try/except in software on all NINA calls (this cures a world of ills)
• I try to avoid external USB hubs now, even powered hubs

@otherguy
Copy link

Thanks for getting back to me so quickly :)

For me it's not flaky, it just never works. I might need to update the firmware on the AirLift then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment