Difference between revisions of "How to use ESP32 as a webserver"

From Norwich Hackspace
Jump to navigation Jump to search
Line 5: Line 5:
  
 
* download current arduino IDE from arduino.cc
 
* download current arduino IDE from arduino.cc
* the one I bought from the Hackspace shop was this one:
+
* the one I bought from the Hackspace shop was [https://www.amazon.co.uk/CANADUINO-ESP32-Devkit-Wi-Fi-Bluetooth/dp/B07F1GWJ1N this one]:
 
* CANADUINO ESP32 Devkit Wi-Fi Bluetooth BLE - Ultra Low  
 
* 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
 
* 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:
+
* my mac, is running an older system, so I needed [https://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers 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:
 
* 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
+
* [https://www.youtube.com/watch?v=mBaS3YnqDaU as per this youtube video]
 
* this is the URL to type: "https://dl.espressif.com/dl/package_esp32_index.json"
 
* 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:
+
* Then [https://www.youtube.com/watch?v=ApGwxX6VVzk this video] [https://randomnerdtutorials.com/esp32-web-server-arduino-ide/ and link] give you code to make the webserver.
* https://www.youtube.com/watch?v=ApGwxX6VVzk
 
* https://randomnerdtutorials.com/esp32-web-server-arduino-ide/
 

Revision as of 11:29, 27 September 2020

£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. also amazingly, you can run nintendo NES games on it

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
  • 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:
  • after that, in the arduino IDE, you need to add a URL to the preferences in order to download the ESP32 board:
  • as per this youtube video
  • this is the URL to type: "https://dl.espressif.com/dl/package_esp32_index.json"
  • Then this video and link give you code to make the webserver.