Difference between revisions of "Esp32cam"

From RevSpace
Jump to navigation Jump to search
(platformio)
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
   |Picture=ESP32-CAM.jpg
 
   |Picture=ESP32-CAM.jpg
 
   |Omschrijving=Cheap webcams with Wifi, what could possibly go wrong?
 
   |Omschrijving=Cheap webcams with Wifi, what could possibly go wrong?
   |Status=Initializing
+
   |Status=In progress
 
   |Contact=noopwafel
 
   |Contact=noopwafel
 
   |Contact1=Sebastius
 
   |Contact1=Sebastius
 +
  |Contact2=bertrik
 
   }}
 
   }}
  
Line 15: Line 16:
 
* http://wiki.aithinker.com/esp32-cam
 
* http://wiki.aithinker.com/esp32-cam
 
* [[bertrik]] ordered [https://aliexpress.com/item/ESP32-CAM/32947577882.html this board on AliExpress]
 
* [[bertrik]] ordered [https://aliexpress.com/item/ESP32-CAM/32947577882.html this board on AliExpress]
 +
 +
To install the camera, *flip* the black part of the camera connector UP, insert the camera connector (contacts towards the PCB), then flip the black part back into the flat position.
 +
 +
Pins (ESP32 cam to USB serial converter):
 +
* ESP-32 5V to USB serial 5V
 +
* ESP-32 GND to USB serial GND
 +
* ESP-32 UAR to USB-serial TX
 +
* ESP-32 UAT to USB-serial RX
 +
* ESP-32 IO0 looped to ESP-32 GND (they are next to each other), you can use a jumper or a dupont wire. CLOSED for flashing, OPEN for running.
  
 
== Software ==
 
== Software ==
Line 20: Line 30:
 
* https://github.com/donny681/ESP32_CAMERA_QR
 
* https://github.com/donny681/ESP32_CAMERA_QR
 
* [https://youtu.be/q7Z_XnBYFhY Step by step video guide to getting it up and running with Arduino IDE and the Expressif CameraWebServer example]
 
* [https://youtu.be/q7Z_XnBYFhY Step by step video guide to getting it up and running with Arduino IDE and the Expressif CameraWebServer example]
 +
* https://github.com/geeksville/TenDollarWebcam
  
 
=== platformio ===
 
=== platformio ===
[[bertrik]] made an attempt to build the CameraWebServer example as a platformio project: https://github.com/bertrik/CameraWebServer
+
The CameraWebServer example can be compiled as a platformio project: https://github.com/bertrik/CameraWebServer
  
 
To build the code, clone the git repo above, cd into it, then type
 
To build the code, clone the git repo above, cd into it, then type
 
   pio run
 
   pio run
  
To upload it to the board:
+
To upload it to the board (put a jumper between IO0 and GND):
 
   pio run -t upload
 
   pio run -t upload
  
To watch the debug output:
+
To watch the debug output (remove the jumper):
 
   pio device monitor
 
   pio device monitor
  
 
Platformio can be installed on a Debian Linux system as follows:
 
Platformio can be installed on a Debian Linux system as follows:
   sudo apt-get install python-pip
+
   sudo apt install python-pip
 
   sudo pip install platformio
 
   sudo pip install platformio
 
   pio upgrade
 
   pio upgrade

Latest revision as of 14:03, 6 February 2020

Project ESP32-CAM
ESP32-CAM.jpg
Cheap webcams with Wifi, what could possibly go wrong?
Status In progress
Contact noopwafel, Sebastius, bertrik
Last Update 2020-02-06


Introduction

It's an ESP32 board with a camera, running a web server, so it acts as an inexpensive webcam.

Hardware

To install the camera, *flip* the black part of the camera connector UP, insert the camera connector (contacts towards the PCB), then flip the black part back into the flat position.

Pins (ESP32 cam to USB serial converter):

  • ESP-32 5V to USB serial 5V
  • ESP-32 GND to USB serial GND
  • ESP-32 UAR to USB-serial TX
  • ESP-32 UAT to USB-serial RX
  • ESP-32 IO0 looped to ESP-32 GND (they are next to each other), you can use a jumper or a dupont wire. CLOSED for flashing, OPEN for running.

Software

platformio

The CameraWebServer example can be compiled as a platformio project: https://github.com/bertrik/CameraWebServer

To build the code, clone the git repo above, cd into it, then type

 pio run

To upload it to the board (put a jumper between IO0 and GND):

 pio run -t upload

To watch the debug output (remove the jumper):

 pio device monitor

Platformio can be installed on a Debian Linux system as follows:

 sudo apt install python-pip
 sudo pip install platformio
 pio upgrade