Adafruit ESP32-S2 Feather triggered over WiFi?

For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
efc
 
Posts: 16
Joined: Sat Nov 20, 2021 11:00 am

Adafruit ESP32-S2 Feather triggered over WiFi?

Post by efc »

I am wondering if the Adafruit ESP32-S2 Feather https://www.adafruit.com/product/5000 can be used to trigger actions when it is contacted over WiFi. I have never built anything of this sort before, total newbie here. Lots of software experience, but I'm finding reading the descriptions of this hardware a bit confusing. In my normal computer world I would SSH to a remote server over WiFi and run a script. But this is a microcontroller, so I am a bit at sea.

Please let me know if (A) the Adafruit ESP32-S2 Feather is capable of being triggered over WiFi, and (B) if there is some sample project out there (preferably CircuitPython) that demonstrates how this is done.

Thanks!

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit ESP32-S2 Feather triggered over WiFi?

Post by mikeysklar »

Accessing the ESP32-S2 based boards remotely is typically done using WipperSnapper or Adafruit IO.

https://learn.adafruit.com/quickstart-a ... persnapper
https://io.adafruit.com/

So you get your board on WiFi and set it up with a custom AIO key where you can have a web dashboard and read / write sensors / actuators.

User avatar
efc
 
Posts: 16
Joined: Sat Nov 20, 2021 11:00 am

Re: Adafruit ESP32-S2 Feather triggered over WiFi?

Post by efc »

WipperSnapper looks really cool, and I appreciate the pointer. But it looks like an awful lot of overhead, not to mention a dependency on an outside service (AIO) I don't really want.

Isn't there some way I can just tickle my ESP32-S2 Feather directly? If it is on my local network, how can I kick off a process on the microcontroller from another machine on the network over WiFi? If AIO can reach the Feather, then there must be a way for me to reach it directly, no?

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Adafruit ESP32-S2 Feather triggered over WiFi?

Post by mikeysklar »

WipperSnapper is super minimalistic, but I can understand wanting work without depending on the AIO infrastructure.

You can take a look at ampule and WSGI as web server options to run directly on an ESP32-S2 with CircuitPython.

https://github.com/adafruit/Adafruit_CircuitPython_WSGI
https://github.com/deckerego/ampule

It probably makes more sense to go with a plug and play webserver running Arduino code on the ESP32-S2.

https://learn.adafruit.com/esp8266-temp ... he-esp8266
https://randomnerdtutorials.com/esp32-w ... duino-ide/

User avatar
efc
 
Posts: 16
Joined: Sat Nov 20, 2021 11:00 am

Re: Adafruit ESP32-S2 Feather triggered over WiFi?

Post by efc »

Awesome, those are great pointers. Time for me to get dirty and try to build this thing!

User avatar
efc
 
Posts: 16
Joined: Sat Nov 20, 2021 11:00 am

Re: Adafruit ESP32-S2 Feather triggered over WiFi?

Post by efc »

FYI, after purchasing the ESP32S2 Feather I found advice in this thread that helped me use its WiFi successfully... viewtopic.php?f=53&t=186099

Locked
Please be positive and constructive with your questions and comments.

Return to “Wireless: WiFi and Bluetooth”