How to use ESP32 as a webserver
Revision as of 11:23, 27 September 2020 by Nicholas w (talk | contribs)
£10 ESP32 is a 240mhz dual-CPU computer (with 4mb ram) and can run a webserver - so can be controlled from your phone/computer. Amazing. These are the steps I took to get it working:
- download current arduino IDE from arduino.cc
- the one I bought from the Hackspace shop was this one:
- CANADUINO ESP32 Devkit Wi-Fi Bluetooth BLE - Ultra Low
- https://www.amazon.co.uk/CANADUINO-ESP32-Devkit-Wi-Fi-Bluetooth/dp/B07F1GWJ1N
- the IC chip (which controls the USB interface with the computer?) is: CP2104
- my mac, is running an older system, so I needed this driver for the CP2104:
- https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers
- after that, in the arduino IDE, you need to add a URL to the preferences in order to download the ESP32 board:
- https://www.youtube.com/watch?v=mBaS3YnqDaU
- this is the URL to type: "https://dl.espressif.com/dl/package_esp32_index.json"
- Then this video + link give you code to make the webserver:
- https://www.youtube.com/watch?v=ApGwxX6VVzk
- https://randomnerdtutorials.com/esp32-web-server-arduino-ide/