Do you have a question about the AirLift Shield ESP32 and is the answer not in the manual?
Questions and answers
Summary of Contents for Adafruit AirLift Shield ESP32
Page 1
Adafruit AirLift Shield - ESP32 WiFi Co-Processor Created by Brent Rubell Last updated on 2021-03-29 01:04:51 PM EDT...
Page 2
CircuitPython BLE UART Example Adafruit AirLift ESP32 Shield Wiring Update the AirLift Firmware Install CircuitPython Libraries Install the Adafruit Bluefruit LE Connect App Copy and Adjust the Example Program Talk to the AirLift via the Bluefruit LE Connect App Arduino WiFi...
Page 4
Overview Give your Arduino project a lift with the Adafruit AirLift Shield (https://adafru.it/F6v) - a shield that lets you use the powerful ESP32 as a WiFi or BLE co-processor. You probably have your favorite Arduino- compatible (like the Metro M4 (https://adafru.it/A5S)
Page 21
CircuitPython WiFi It's easy to use the Adafruit AirLift breakout with CircuitPython and the Adafruit CircuitPython ESP32SPI (https://adafru.it/DWV) module. This module allows you to easily add WiFi to your project. The ESP32SPI library requires a microcontroller with ~128KB of RAM or more. The SAMD21 will not work.
Page 22
Next you'll need to install the necessary libraries to use the hardware--carefully follow the steps to find and install these libraries from Adafruit's CircuitPython library bundle (https://adafru.it/uap). Our CircuitPython starter guide has a great page on how to install the library bundle (https://adafru.it/ABU).
Page 24
Connect to WiFi OK now you have your secrets setup - you can connect to the Internet using the ESP32SPI and the Requests modules. First make sure you are running the latest version of Adafruit CircuitPython (https://adafru.it/Amd) for your board.
Page 25
(https://adafru.it/Awz) so you are at the CircuitPython >>> prompt. Into your folder. Once that's done, load up the following example using Mu or your favorite editor: # SPDX-FileCopyrightText: 2019 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import board import busio...
Page 28
"crafting" them and provides helpful methods for parsing the response from the server. Here's an example of using Requests to perform GET and POST requests to a server. # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT...
Page 29
"utf-8"), "\tRSSI:", esp.rssi) # Initialize a requests object with a socket and esp32spi interface socket.set_interface(esp) requests.set_socket(socket, esp) TEXT_URL = "http://wifitest.adafruit.com/testwifi/index.html" JSON_GET_URL = "http://httpbin.org/get" JSON_POST_URL = "http://httpbin.org/post" print("Fetching text from %s" % TEXT_URL) response = requests.get(TEXT_URL) print("-" * 40) print("Text Response: ", response.text)
Page 30
= DigitalInOut(board.D9) esp32_ready = DigitalInOut(board.D10) esp32_reset = DigitalInOut(board.D5) HTTP GET with Requests The code makes a HTTP GET request to Adafruit's WiFi testing website http://wifitest.adafruit.com/testwifi/index.html (https://adafru.it/FpZ). . We're also going to save the response from the server To do this, we'll pass the URL into requests.get()
Page 32
Want to send custom HTTP headers, parse the response as raw bytes, or handle a response's http status code in your CircuitPython code? We've written an example to show advanced usage of the requests module below. # SPDX-FileCopyrightText: 2021 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import board...
ESP32 if it gets into a bad state, etc. Here's a more advanced example that shows the WiFi manager and also how to POST data with some extra headers: # SPDX-FileCopyrightText: 2019 ladyada for Adafruit Industries # SPDX-License-Identifier: MIT import time...
Page 36
Adafruit AirLift ESP32 Shield Wiring If you have an Adafruit AirLift ESP32 Shield, you will need to solder three jumpers closed on the bottom side of the board to enable BLE. The rest of the ESP32 pins you need are already jumpered to certain shield pins.
Page 37
Install the Adafruit Bluefruit LE Connect App The Adafruit Bluefruit LE Connect iOS and Android apps allow you to connect to BLE peripherals that provide a over-the-air "UART" service. Follow the instructions in the Bluefruit LE Connect Guide (https://adafru.it/Eg5)
You can use an AirLift with Arduino. Unlike CircuitPython, it work work with just about any Arduino board, even a classic Arduino UNO. However, if you want to use libraries like Adafruit IO Arduino, ArduinoJSON, or add sensors and SD card, you'll really want an ATSAMD21 (Cortex M0) or ATSAMD51 (Cortex M4), both of which have plenty or RAM.
Page 42
(https://adafru.it/EVv) If you don't see this, you may have the wrong WiFiNINA library installed. Uninstall it and re-install the Adafruit one as above. Arduino Microcontroller Pin Definition Next, you'll need to need to modify the pin definition above for the AirLift Shield. Replace the...
Page 50
You'll be turning your Arduino board into a USB to Serial converter. To do this, you'll need a special Arduino sketch named SerialESPPassthrough.ino and an Arduino-compatible board with Native USB support such as the Adafruit Metro M4. You will also need to make the following connections between the board and the AirLift Breakout:...
Need help?
Do you have a question about the AirLift Shield ESP32 and is the answer not in the manual?
Questions and answers